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

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

/* Responsive Grid layout for card containers */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns on desktop */
    column-gap: 2rem;
    /* Space between columns */
    align-items: stretch;
    /* Ensure cards stretch uniformly */
    padding: 1rem;
    max-width: 1200px;
    /* Limit the maximum width of the grid */
    margin: 0 auto;
    /* Center the grid */
}

.box-linkedin {
    position: relative;
    width: 100%;
    height: 60rem; /* Added fixed height to ensure visibility */
    overflow: hidden;
}

.box-linkedin iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Card component styling */
.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;
}

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

/* ------------------------- */
/* Desktop-Specific Styles */
/* ------------------------- */
@media (min-width: 450px) {
    /* Adjust logo size on larger screens */
    .company-logo {
        height: 10rem;
    }

    /* Style for transparent 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 */
	}

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

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

    /* Hide certain elements on desktop view */
    .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) {
	
	.box-linkedin {
    position: relative;
    width: 100%;
    height: 42rem; /* Added fixed height to ensure visibility */
    overflow: hidden;
	}

    /* Adjustments for card grid on mobile (one column) */
    .card-grid {
        grid-template-columns: 1fr;
        /* Single column */
        row-gap: 0rem;
        /* No extra space between rows */
        padding: 0rem;
        max-width: 100%;
        /* Full width on mobile */
        margin: 0 auto;
    }

    /* Card styling for mobile */
    .card {
        width: 92%;
        margin: 0 auto;
        margin-bottom: 1rem;
        /* Space between cards */
        padding: 1rem;
    }

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

    /* Adjust logo size on smaller screens */
    .company-logo {
        height: 2.8rem;
        padding: 0;
        margin: 0;
    }

    /* Icon styling for mobile (chat, languages, profile) */
    .transparent-icon {
        background-color: transparent;
        width: 0.8rem;
        height: 0.8rem;
        padding: 0;
        margin: 0;
        border-radius: 20%;
    }

    /* Font size adjustments for mobile view */
    body {
        font-size: 0.6rem;
        /* Reduce the font size slightly */
    }

    h2 {
        font-size: 1.4rem;
        /* Smaller headings on mobile */
    }

    /* Navigation link size adjustments */
    .contrast {
        font-size: 0.45rem;
    }

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

        .contrast {
            font-size: 0.42rem;
            /* Smaller navigation links */
        }
    }

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

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

    /* Footer 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 nav {
        margin-top: 0;
        padding-top: 0;
    }
}