/* 1. Global Reset & Variables */
:root {
    --site-margin: 10%; /* Use a percentage for consistent side margins */
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. Unified Width Strategy */
/* Apply this class to Header and Container in your HTML */
.page-header, 
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--site-margin) !important;
    padding-right: var(--site-margin) !important;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

/* 3. Header Adjustment */
.page-header {
    background-color: #333;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* 4. Main Body Adjustment */
.container {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
    margin: 0 auto; /* Center it */
}


/* ========================================================== */


/* 5. Footer Adjustment */
.footer-master {
    background-color: transparent;
    color: #333;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
    width: 100%;
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1rem;
    padding-left: var(--site-margin) !important;
    padding-right: var(--site-margin) !important;
}

.footer-section {
    flex-basis: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-section h5 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.logo-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.dark-line {
    border-top: 2px solid #fff;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.footer-credits {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    padding-left: var(--site-margin) !important;
    padding-right: var(--site-margin) !important;
}


/* ========================================================== */


/* 6. Fix for your Slider (It was restricted to 800px) */
.slider-container {
    position: relative;
    width: 100%; /* Stretch to container width */
    max-width: 1000px; /* Increased from 800px */
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}


/* Map stays full width within the container padding */
#map {
    height: 600px;
    width: 100%;
}

/* Keep the rest of your original component styles below... */
.content-section { margin-bottom: 40px; }


/* -------------------------------------------- */

/* Glacial Lake Page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2.5em;
}

.container {
    flex: 1;
    padding: 20px 10px;
    width: 100%;
}

.content-section {
    margin-bottom: 40px;
}

.image-frame iframe {
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Slider */
.slider-container {
    position: relative;
    width: 80vw;
    max-width: 800px;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.slider-image {
    display: block;
    width: 100%;
    height: auto;
}

.slider-before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 3px;
    background-color: #fff;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    cursor: ew-resize;
    z-index: 10;
}

/* Styles for the new info labels */
.image-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    z-index: 5;
}

.image-info.after {
    left: auto;
    right: 10px;
}

/* About Us */
.bio-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bio-box img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #0d6efd;
    margin-bottom: 15px;
}

.bio-box h5,
.bio-box p {
    margin: 0;
    padding: 0;
}

.bio-box .card-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

.social-icons a {
    color: #0d6efd;
    font-size: 1.2rem;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #0a58ca;
}

.social-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

/* Map Button */
.recenter-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Navigation Styling */
.nav .nav-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav .nav-link:hover {
    color: #0a58ca;
}

/* Navigation Button */
#lake-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

#lake-nav .btn {
    margin: 0;
}

/* Home Page Layout */
.home-content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.text-content-section {
    flex: 0.6; /* reduce text 0column width */
    min-width: 200px;
}

.text-content-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.text-content-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.map-section {
    flex: 1.4; /* increase map column width */
    min-width: 250px;
}

@media (max-width: 768px) {
    .home-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* New responsive styles for small screens */
@media (max-width: 767.98px) {
    .social-icons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .social-text-link {
        white-space: normal;
        justify-content: flex-start;
        width: 100%;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .social-icons a {
        margin: 0;
    }
    .footer-grid {
        justify-content: center;
        gap: 2rem;
    }
}
