
/* Ensure no horizontal scrolling and full-width layout */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important; /* Ensure vertical scrolling remains */
	font-size: 1rem; /* NEW: smaller base text size */
}
/* Light Mode FORCE */
:root {
    color-scheme: light;
    /* Force light mode */
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: white; /* Ensure a light background */
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: white; /* Default light mode */
  }
}

body {
  background-color: white;
}


:root {
  --bg-color: white;
  
  /* For WebKit browsers */
@media screen and (-webkit-prefers-color-scheme: dark) {
  body {
    background-color: white;
  }
}

/* Set background color for the body - light mode force */
body {
	top: 0px !important; /*CSS rules to target and hide the Google Translate iframe and container.*/
    background-color: rgb(255, 255, 255);}

/* Hide Google Translate toolbar */
body>.skiptranslate {
    display: none;
}

/* Prevent interactions or visibility changes from parent containers */
body .goog-te-spinner-pos {
    display: none !important; /* Hide the container holding the spinner */
    visibility: hidden !important;
    opacity: 0 !important;
}


/* Hide the Google Translate iframe and its container */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {    
                display: none !important;
}

/* Force light mode */
:root {
    color-scheme: light;
}

/* Default paragraph font size within articles */
article p {
    font-size: 1rem;
}


/* Card styling */
article {
    background-color: rgb(250, 250, 250);
    padding: 0.5rem;
    margin: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
	border: 1px solid #000;          /* Black border */
	margin-top: 0;
}

.articleX h3,
.articleX p {
    margin-top: 0;
}

/* Styling for embedded iframe */
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    border: 0;
	margin:0;
    border-radius: 10px;
	border: 1px solid #000;          /* Black border */

}

#doughnut {
    width: 25rem; /* Limit the size of the canvas */
	height: 25rem; /* Limit the size of the canvas */
    margin: 1rem; /* Center the canvas with auto margins */
    display: block; /* Ensure proper centering */
	background-color: rgb(255, 255, 255);
}

.progress-container progress {
    background-color: rgb(237, 237, 237); /* Force override any conflicting rules */
	height: 1rem;
	
}

/* WebKit/Blink browsers (Chrome, Safari, Edge) */
.progress-container progress::-webkit-progress-value {
    background-color: rgb(192, 113, 163);
}

/* Firefox */
.progress-container progress::-moz-progress-bar {
    background-color: rgb(192, 113, 163);
}

/* Container for the video and button alignment */
.container {
    display: flex;
    align-items: flex-start; /* ✅ Aligns items to the top */
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}


/* Video container styling */
.video-container {
    width: 65%;
    position: relative;
	padding: 0;
    padding-bottom: 39.375%;
    overflow: hidden;
    border-radius: 10px;
}

/* Video iFrame styling within video container */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.investText {
	margin-top: 1rem;
}

/* 
Set the main container to block layout to avoid unwanted flexbox behavior 
inherited from external styles (e.g., Pico.css or uib-brand.min.css). 
This ensures the <main> element behaves as a standard block-level container.
*/
main.container {
    display: block !important; /* Reset to block layout to enforce normal flow */
    
    /* Explicitly set writing mode to horizontal to prevent vertical text stacking.
       This overrides any inherited styles that may have applied vertical writing mode. */
    writing-mode: horizontal-tb !important; 

    /* Ensure text orientation is default (mixed), 
       preventing unintended letter stacking caused by vertical text styling. */
    text-orientation: mixed !important;
}

/* 
Style nested .container elements within the main container:
1. Set to flex layout to arrange children horizontally.
2. Explicitly define flex-direction as row to prevent vertical stacking.
3. Align items and distribute space evenly for a clean layout.
*/
main.container > .container {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-direction: row; /* Force horizontal arrangement of children */
    align-items: center; /* Vertically center-align children */
    justify-content: space-between; /* Distribute space evenly between children */
}

#bmc-wbtn img {
	background: transparent !important;
	margin: 2rem !important;
}

nav.container-fluid {
	padding-top: 1rem; /* or try 3rem if needed */
	margin-bottom: 1rem;
}

.investText {
  margin-top: 0;
}


/* ------------------------- */
/* Desktop-Specific Styles (min-width: 450px) */
/* ------------------------- */
@media (min-width: 450px) {

    /* Styling for the company logo on desktop */
    .company-logo {
        height: 10rem;
    }
	

    /* Styling for icons (chat, languages, profile) */
	.transparent-icon {
		background-color: transparent;
		width: 1.7rem;
		height: 1.7rem;
		border-radius: 20%;
		padding: 0.1rem;
		margin: 0 0.9rem; /* Adds horizontal spacing left & right */
	}

    .transparent-icon:hover {
        background-color: #00000027;
    }

    /* Hover effect for navigation links */
    .contrast:hover {
        background-color: #00000027;
    }

    /* Hide elements on desktop */
    .hide-on-desktop {
        display: none !important;
    }
	
		/* Footer styles for desktop */
    footer p,
    footer nav ul li a {
        color: rgb(0,0,0);
    }
	
	/* Footer styles for desktop */
    footer p,
    footer nav ul li a {
        color: rgb(0,0,0);
    }
}

/* ------------------------- */
/* Mobile-Specific Styles (max-width: 450px) */
/* ------------------------- */
@media (max-width: 450px) {
	
	article {
        width: 100% !important;
		max-width: 100% !important;
    }
	
	/* Default paragraph font size within articles */
	article p {
		font-size: 0.7rem;
	}
	
	canvas {
		width: 250px !important;
		height: 250px !important;
	}

    /* Adjustments for mobile navigation bar */
    nav {
        height: 5rem;
        margin-bottom: 0;
    }

    /* Resize the logo for mobile */
    .company-logo {
        height: 2.8rem;
        padding: 0;
        margin: 0;
    }

    /* Resize icons for mobile */
    .transparent-icon {
        background-color: transparent;
        width: 0.8rem;
        height: 0.8rem;
        padding: 0;
        margin: 0;
        border-radius: 20%;
    }

    /* Adjust navigation link size */
    .contrast {
        font-size: 0.45rem;
    }

    /* Adjustments for screens smaller than 360px */
    @media (max-width: 380px) {
        .company-logo {
            height: 2.5rem;
        }

        .contrast {
            font-size: 0.42rem;
        }
    }

    body {
        font-size: 0.6rem;
    }

    /* Smaller heading sizes */
    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Center grid elements on mobile */
    .grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Mobile card width and alignment */
    article {
        width: 70%;
        max-width: 70%;
        text-align: center;
        margin: 0.5rem 0;
    }

    /* Stack video and button vertically */
    .container {
        flex-direction: column;
        align-items: center;
    }

    .video-container {
        width: 100%;
        padding-bottom: 56.25%;
        /* Maintains 16:9 aspect ratio */
        margin: 1rem;
    }

    .cta-button {
        width: 80%;
        margin-top: 0;
    }

    .cta-button button {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    /* Footer styles for mobile */
    footer p,
    footer nav ul li a {
        font-size: 0.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
        color: rgb(0,0,0);
    }

    footer nav {
        margin-top: 0;
        padding-top: 0;
    }
}