/* Custom Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}


/* Default Navbar Style (Keeps Background Initially) */
.navbar {
    background: #003366; /* Navy Blue (Initial Color) */
    transition: background-color 0.4s, padding 0.4s;
    padding: 7px 0;
}

/* Navbar when scrolled */
.navbar.scrolled {
    background: rgba(0, 51, 102, 0.9); /* Slightly Transparent Navy */
    padding: 5px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Adjust navbar brand & link colors */
.navbar .navbar-brand,
.navbar .nav-link {
    color: #FFD700 !important; /* Yellow */
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: white !important; /* White when scrolled */
}

.navbar-brand, .nav-link {
    color: #FFD700 !important; /* Yellow */
}

.nav-link:hover {
    color: #ffffff !important; /* White on hover */
}



/* Style for slider caption */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 600px;
	height:300px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    border-radius: 5px;
}

/* Text styles */
.carousel-caption .small-text {
    font-size: 16px;
    font-weight: 600;
    color: #FFD700; /* Yellow */
    margin-bottom: 5px;
}

.carousel-caption .main-text {
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.carousel-caption .description {
    font-size: 14px;
    color: white;
    margin-bottom: 15px;
}

/* Button Container */
.carousel-caption .button-container {
    display: flex;
    gap: 15px; /* Space between buttons */
    flex-wrap: wrap; /* Ensures responsiveness */
}

/* Buttons */
.carousel-caption .btn-warning {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    white-space: nowrap; /* Prevents button text from wrapping */
}

.carousel-caption .btn-warning:hover {
    background-color: #e6b800; /* Darker yellow */
}

.carousel-caption .btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    white-space: nowrap; /* Prevents wrapping */
}

.carousel-caption .btn-outline-light:hover {
    background-color: white;
    color: black;
}

/* Section Titles */
.section-title {
    color: #003366; /* Navy Blue */
    margin-bottom: 30px;
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img-top {
    width:100%;
    height: auto;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background-color: #003366; /* Navy Blue */
    border: none;
}

.btn-primary:hover {
    background-color: #002244; /* Darker Navy Blue */
}

/* Footer */
footer {
    background-color: #003366; /* Navy Blue */
    color: #ffffff;
    padding: 20px 0;
}

/* Carousel */
#slider .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
}

/* Property Card */
.property-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image Wrapper: Maintains Full Image Visibility */
.property-image-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Default Image Styling */
.property-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 250px; /* Set a max height for desktop */
    object-fit: contain; /* Ensure full image is visible */
}

/* Property Card Styles */
.card {
    border: none;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Make the Images Bigger */
.card-img-top {
    width:100%;
    height: auto; /* Increased size */
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

/* Adjusted Button */
.btn-warning {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-warning:hover {
    background-color: #e6b800; /* Darker Yellow */
}

/* Add More Space Between Rows */
#products .row {
    row-gap: 20px;
}


/* Articles Section - Full Width with Reduced Spacing */
.articles-section {
    width: 100%;
    background-color: #F7E7A9; /* Light Gold */
    padding: 10px 0; /* Reduced top & bottom padding */
	margin-bottom: 10px;
}

/* FLEXBOX LAYOUT to align Main Content & Side Panel */
.articles-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Latest Articles Title (Aligned Left) */
.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px; /* Reduced spacing */
}

/* Main Content Area */
.articles-content {
    flex: 3; /* Takes 75% width */
    padding: 0 20px;
}

/* Article Image */
.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Article Content */
.article-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px; /* Reduced spacing */
}

.btn-warning {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-warning:hover {
    background-color: #e6b800;
}

/* Other Articles Panel */
.other-articles-panel {
    flex: 1; /* Takes 25% width */
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3px; /* Reduced padding */
}

/* Panel Header */
.other-articles-panel .card-header {
    background-color: #003366; /* Navy Blue */
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 5px; /* Added space below the header */
}

/* Other Articles Box */
.other-article-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 8px; /* Reduced spacing */
    transition: transform 0.2s, box-shadow 0.2s;
}

.other-article-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Image */
.article-thumbnail {
    width: 50px; /* Adjust size */
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px; /* Spacing between image and title */
}

/* Links inside article boxes */
.other-article-box a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    display: block;
    flex: 1; /* Ensures the text takes up remaining space */
}

.other-article-box a:hover {
    color: #FFD700; /* Yellow on hover */
}

/* About Us Section - Centered & Rounded */
.about-section {
    background-color: #003366; /* Navy Blue */
    color: white;
    padding: 40px 20px;
    border-radius: 30px; /* Rounded corners */
    max-width: 90%; /* Smaller width */
    margin: 40px auto; /* Center horizontally */
    text-align: center; /* Center text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between text and image */
}

/* Left Content Box */
.about-container {
    background: transparent;
    color: white;
    padding: 20px;
    border-radius: 20px;
    max-width: 100%; /* Adjust the width */
    text-align: center;
    flex: 1; /* Allow it to grow */
}

/* Heading & Text Styling */
.about-heading {
	color:white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.about-description {
    font-size: 16px;
    margin-bottom: 20px;
}

/* About Us Button */
.about-btn {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
}

.about-btn:hover {
    background-color: #e6b800;
}

/* Right Side Image */
.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-width: 90%;
    height: auto;
    border-radius: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column; /* Stack on smaller screens */
        text-align: center;
    }

    .about-image {
        margin-top: 20px;
    }
}


/* Contact Us Section */
.contact-section {
    background-color: #f8f9fa; /* Light Gray Background */
    padding: 60px 0;
}

/* Centered Title */
.contact-section .section-title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #003366; /* Navy Blue */
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: bold;
    color: #003366; /* Navy Blue */
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
}

.contact-form .form-control:focus {
    border-color: #FFD700; /* Yellow focus */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Submit Button */
.contact-btn {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 5px;
    width: 100%;
    border: none;
}

.contact-btn:hover {
    background-color: #e6b800; /* Darker Yellow */
}

/* Contact Us Image */
.contact-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Fixed-size Rounded Button */
.rounded-btn {
		width: 30px;
	    height: 30px;
		color:black;
	    background-color: #FFD700;
	    border-radius: 50%;
	    display: flex;
	    align-items: center;  /* Centers text vertically */
	    justify-content: center; /* Centers text horizontally */
	    font-size: 12px;
	    font-weight: bold;
	    cursor: pointer;
	    transition: transform 0.2s ease-in-out;
	    margin-top: 10px; /* Space between text and button */
	    text-align: center;
		text-decoration:none;
}

/* Hover Effect */
.rounded-btn:hover {
    transform: scale(1.1);
}

.rounded-btn a{
	text-decoration: none;
}

/* Login Section - Centered & Rounded */
.login-section {
    background-color: #003366; /* Navy Blue */
    color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height */
}

/* Login Container */
.login-container {
    background: white;
    color: #003366;
    padding: 30px;
    border-radius: 30px; /* Rounded shape */
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Login Title & Description */
.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-description {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Form Inputs */
.login-form .form-control {
    border-radius: 5px;
    padding: 10px;
}

/* Login Button */
.login-btn {
    background-color: #FFD700; /* Yellow */
    color: black;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    width: 100%;
    border: none;
}

.login-btn:hover {
    background-color: #e6b800;
}

/* Register Link */
.register-link {
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Default Image Styling (For Desktop) */
.card-img-top {
    width: 100%;
    height: auto; /* Fixed height for desktop */
    object-fit: cover; /* Crop for a clean look */
}


/* Penghargaan Section */
.awards-section {
    background-color: #F7E7A9; /* Light Gold Background */
    padding: 50px 0;
    text-align: center;
}

/* Award Card */
.award-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Award Images */
.award-images {
    
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Fixed Size for Award Images */
.award-img {
    width: 300px;  /* Adjusted Width */
    height: 300px; /* Adjusted Height */
    object-fit: contain; /* Ensures full image is visible */
    border-radius: 10px;
    border: 2px solid #ddd;
    padding: 5px;
    background: white;
}

/* Award Title */
.award-title {
    font-size: 20px;
    font-weight: bold;
    color: #003366;
}

/* Award Description */
.award-desc {
    font-size: 16px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .award-images {
        flex-direction: column;
        align-items: center;
    }
    .award-img {
        width: 120px; /* Adjusted for Mobile */
        height: 120px;
    }
}


/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .carousel-caption {
        top: auto;
        bottom: 10%;
        left: 10%;
        transform: none;
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 22px;
    }
    
    .carousel-caption h6 {
        font-size: 16px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .carousel-caption .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-caption .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
     .card-img-top {
        width: 200vw; /* Full width */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Show full image without cropping */
    }
}

/* Adjust for Extra Small Screens (max-width: 478px) */
@media (max-width: 478px) {
    .carousel-caption {
        bottom: 30%; /* Adjust position */
        left: 10%;
        max-width: 75%;
        padding: 5px;
    }

    .carousel-caption .main-text {
        font-size: 28px; /* Smaller title */
    }
    
    .carousel-caption h6 {
        font-size: 14px; /* Smaller subtitle */
    }

    .carousel-caption p {
        font-size: 12px; /* Smaller text */
    }

    .carousel-caption .button-container {
        display: flex;
        flex-direction: column; /* Stack buttons */
        gap: 8px;
    }

    .carousel-caption .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .property-image-wrapper {
        width: 100vh; /* Full viewport width */
       
      
    }
    
    .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0%;
    background: rgba(0, 0, 0, 0.6); /* 60% Dark */
    z-index: 1;
    }
     .card-img-top {
        width: 100%; /* Full width */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover; /* Show full image without cropping */
    }
}

/* Ensure table text wraps properly */
.text-wrap {
    word-wrap: break-word;
    white-space: normal; /* Allow line breaks */
    max-width: 200px; /* Adjust width to fit content */
}

/* Make sure the table fits inside its container */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}




