/*
 * Custom CSS for the Buana Capital Sekuritas homepage layout.
 *
 * This version of the stylesheet is based on the provided sample.css
 * and the filled.jpg screenshot to achieve a fixed-width, centered design.
 */

/* =========================================
   Global Styles
   ========================================= */

body {
    /* Sets the overall background to black */
    background-color: #000;
    /* Use 'Inter' as a fallback, but the sample.css has other font-faces */
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* =========================================
   Main Container and Headers
   ========================================= */

/* The main container to hold all page content. This is a new approach. */
.main-content-wrapper {
    max-width: 990px;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Styles for the header and menu components to match the sample.css */
#header {
    /* Changed to a solid white background color */
    background-color: #ffffff;
    
    width: 990px;
    height: 100px; /* Set a fixed height for the header */
    margin: 0 auto;
    display: flex; /* Use flexbox to align the content */
    align-items: center; /* Vertically center the logo */
    padding-left: 20px; /* Add some padding on the sides */
    box-sizing: border-box; /* Include padding in the width calculation */
}
.simple_overlay {
    display: none;
    /* Add styles for positioning, background, etc. here */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* The logo now just needs a class to be styled */
.logo-image {
    height: 50px; /* Adjust the logo size */
    width: auto;
    margin-right: auto; /* Push the logo to the far left */
}

/* The menu container with a darker background and shadow, referencing the id */
#bgmenu {
    background-color: #323232;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 990px;
    height: 34px;
    margin: 0 auto;
}

/* The unordered list for the menu */
#menu {
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999999;
    text-align: left;
}

/* List items in the main menu */
#menu > li {
    position: relative;
    float: left;
    text-align: center;
    white-space: nowrap;
    margin: 0 0 0 20px;
}

/* Main menu links */
#menu > li > a {
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-family: 'arial', sans-serif;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
    padding: 0 20px 0 4px;
    border-right: 1px solid #000;
    /* Updated transition speed */
    transition: color 0.5s;
}

#menu > li > a:hover {
    color: #999;
}

/* Dropdown menu (the nested ul) */
#menu ul {
    /* The dropdown is now hidden with visibility and opacity for a smooth transition */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0; /* Adjusted margin to match sample */
    min-width: 200px;
    z-index: 1000;
    /* This transition controls the speed of the dropdown's appearance */
    transition: visibility 0.5s, opacity 0.5s ease-in-out;
}

/* Show the dropdown menu on hover */
#menu li:hover > ul {
    visibility: visible;
    opacity: 1;
}

/* Dropdown list items */
#menu ul li {
    margin: 0;
    text-align: left;
    width: auto;
    background: #838383;
    border-bottom: 1px solid #fff;
}

#menu ul li a {
    display: block;
    padding: 12px 10px 12px 8px;
    height: auto;
    margin: 0;
    border-right: none;
    color: #ecf0f1;
    text-decoration: none;
    /* Updated transition speed */
    transition: background-color 0.5s ease;
}

#menu ul li a:hover {
    color: #000;
}

/* Nested dropdown for Milestone */
#menu ul ul {
    top: 0;
    left: 100%;
}

/* =========================================
   Main Content Area Styles
   ========================================= */

/* The main content area with the light background */
#content {
    background: #fff;
    width: 950px;
    margin: 0 auto;
    padding: 3px 20px;
    line-height: 23px;
    overflow: hidden;
    box-sizing: border-box;
    flex-grow: 1;
}

/* Gaya untuk konten Corporate Governance */
.content-title {
    margin: 20px 0 10px 0;
    font-size: 24px;
    color: #000;
}

.content-subtitle {
    margin: 20px 0 10px 0;
    font-size: 20px;
    color: #000;
}

.content-image img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.content-text {
    text-align: justify;
    margin: 10px 0;
}

/* Gaya untuk daftar lisensi */
.license-list {
    list-style: none;
    padding-left: 0;
}

.license-list li {
    margin-bottom: 5px;
}

/* Gaya untuk tabel lisensi */
.license-table {
    width: 500px;
    border-collapse: collapse;
    margin: 20px 0;
}

.license-table th,
.license-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.table-header {
    text-align: center;
    background-color: #f2f2f2;
}

.table-cell-center {
    text-align: center;
}

/* Styles for the Bootstrap carousel to match the image */
.carousel {
    max-width: 950px;
    margin: auto;
}

.carousel-inner {
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
  display: flex;
  height: 100vh; /* This makes the container fill the full viewport height */
}

.section1, .section2 {
  flex: 1; /* This makes both sections take up equal width */
  overflow-y: auto; /* Adds a scrollbar if content overflows */
}

.section1 {
  background-color: #f0f0f0;
}

.section2 {
  background-color: #e0e0e0;
}


/* =========================================
   Footer Styles
   ========================================= */
#footer {
    /* Changed to a solid white background color */
    background-color: #ffffff;
    
    width: 990px;
    height: 100px; /* Set a fixed height for the footer */
    margin: 0 auto;
    display: flex; /* Use flexbox to align the content */
    align-items: center; /* Vertically center the logo */
    padding-left: 20px; /* Add some padding to match the header */
    box-sizing: border-box; /* Include padding in the width calculation */
}

.profile-layout {
    display: flex; /* This turns the container into a flex container */
    align-items: flex-start; /* Aligns the items to the top */
    flex-wrap: nowrap; /* Prevents the items from wrapping to a new line */
}

.profile-photo {
    /* The photo will take up its natural space */
    flex-shrink: 0; /* Prevents the image from shrinking */
    margin-right: 20px;
}

.profile-details {
    /* The details will take up the remaining space */
    flex-grow: 1;
}

/* Optional: Add some styling to the pop-up itself for better visuals */
.simple_overlay {
    width: 600px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style for the images inside the footer */
.footer-logo {
    height: 50px; /* Adjust the logo size to match the header */
    width: auto;
    margin-right: auto; /* Push the logo to the far left */
}


/* The footer with a light background and a line above it */
.footer-line {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
    .main-content-wrapper,
    #header,
    #bgmenu,
    #content,
    #footer {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    #header,
    #footer {
      height: 80px;
    }

    #menu > li {
        width: 100%;
        text-align: center;
    }
    #menu > li > a {
        padding: 0.5rem 1rem;
    }
    #menu ul {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: #34495e;
    }
    #menu ul ul {
      left: 0;
      width: 100%;
    }
	
	/* Gaya untuk halaman Retail */
.retail-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Jarak antara konten kiri dan kanan */
}

.main-content-left {
    flex: 1; /* Kontainer kiri akan mengambil ruang yang tersedia */
}

.main-content-right {
    flex-shrink: 0; /* Kontainer kanan tidak akan menyusut */
}

.main-content-left p {
    margin-bottom: 20px;
}

.main-content-left .bottom-image {
    max-width: 383px;
    height: auto;
    display: block;
    margin-top: 20px;
}

.main-content-right .top-image {
    max-width: 280px;
    height: auto;
}

}
