
/* 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 */
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;
}

/* Layout and Container Adjustments */
/* Force footer text to align to the left */
.container-fluid {
    margin-left: 0;
}

/* Card Container Styling */
/* Centers the card container and adds padding */
.card-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card Styling */
/* Styling for individual cards */
.card {
    background-color: rgb(250, 250, 250);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid #000; /* Added border */
    width: 100%;
    margin-top: 0rem;
}

/* Video Container Styling */
/* Centers video container and adds margin above */
.video-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1rem 0;
}

/* iFrame Styling */
/* Makes embedded videos responsive */
iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 10px;
    border: 0;
	padding-bottom: 0rem;
}

/* Team Img styling */
.grid img {
    display: block;
    margin: 0.5rem auto; /* Centers the image horizontally */
    padding: 0;
    width: 8rem; /* Set desired width */
    height: 10rem; /* Set desired height */
    object-fit: cover; /* Ensures proportional scaling */
    border-radius: 5%; /* Keep images rectangular */
    border: 0.1rem solid black; /* Add a black border */
}

  
.grid article {
	background-color: white;
}

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

/* ------------------------- */
/* Desktop-specific styles */
/* ------------------------- */
@media (min-width: 450px) {

    /* Logo styling for larger screens */
    .company-logo {
        height: 10rem;
    }

    /* Transparent icon styling */
	.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 */
	}

    /* Hover effect for transparent icons */
    .transparent-icon:hover {
        background-color: #00000027;
    }

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

    /* Hide specific 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);
    }
}

/* ------------------------- */
/* Mobile-specific styles */
/* ------------------------- */
@media (max-width: 450px) {

    /* Navigation adjustments for mobile */
    nav {
        height: 5rem;
        margin-bottom: 0;
    }

    /* Logo size adjustments for mobile */
    .company-logo {
        height: 2.8rem;
        padding: 0;
        margin: 0;
    }

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

    /* General font size adjustment for mobile */
    body {
        font-size: 0.6rem;
    }

    /* Header font size for mobile */
    h2 {
        font-size: 1.4rem;
    }
	
	/* Header font size for mobile */
    h4 {
        font-size: 1.0rem;
    }

    /* Contrast link font size for mobile */
    .contrast {
        font-size: 0.45rem;
    }

    /* Additional adjustments for very small screens */
    @media (max-width: 380px) {
        .company-logo {
            height: 2.5rem;
        }

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

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

    /* Hide elements specifically on mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Footer text and link styling adjustments 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 layout adjustments for mobile */
    footer nav {
        margin-top: 0;
        padding-top: 0;
    }
}