/* --- Semi-Transparent "Ghost" Scrollbar --- */
/* 1. The width - keeping it very thin */
.txtbox::-webkit-scrollbar {
  width: 6px;
}
/* 2. The track - we make this completely transparent */
.txtbox::-webkit-scrollbar-track {
  background: transparent;
}
/* 3. The draggable thumb - semi-transparent grey */
.txtbox::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2); /* 20% opacity black */
  border-radius: 20px;
  /* This adds a little 'air' around the bar if needed */
  border: 2px solid transparent;
  background-clip: content-box;
}
/* 4. Hover effect - slightly more visible when interacting */
.txtbox::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4); /* 40% opacity */
}
/* Firefox Support */
.txtbox {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100%;
  color: #222;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

h1 { font-size: 2.75rem; font-weight: normal; letter-spacing: 0.02em; }
h2 { font-size: 2rem; font-weight: normal; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p, li { font-size: 1rem; }
small { font-size: 0.875rem; color: #666; }

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 2. NAVIGATION & MENU --- */
.menu-container {
  width: 100%;
  height: 40px;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.language-buttons { display: flex; gap: 10px; }
.menu-content { display: flex; align-items: center; margin-left: auto; }

.menu-separator {
  width: 20px;
  height: 30px;
  background-image: url('gifs/mn-dot.jpg');
  background-size: contain;
  background-repeat: no-repeat;
}

.logo img { width: 185px; height: 38px; }

/* --- 3. TEXT LAYOUT --- */
.txtbox {
  margin: 0 35px;
  padding: 0 15px;
  height: calc(100vh - 43px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  display: block;
}

.copyright-footer {
  margin-top: 10px;
  padding: 10px 0;
/*  border-top: 1px solid #e0e0e0; /* A very thin, light line */
  text-align: center;
}

.copyright-footer p {
  font-size: 0.7rem;
  color: #888;
  font-style: italic;
  line-height: 1.5;
}


/* --- 4. VIDEO GALLERY SECTION --- */
.elegant-video-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 15px;
}

.video-thumbnail {
  display: flex;
  flex-direction: column;
  width: 25%;
  min-width: 200px;
  cursor: pointer;
  background: none;
  transition: transform 0.4s ease;
}

.video-thumbnail.portrait {
  width: 20%;
  min-width: 160px;
}

.video-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Landscape default */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.video-thumbnail.portrait img {
  aspect-ratio: 3 / 4; /* Portrait adjustment */
}

.video-subtitle {
  margin-top: 5px;
  font-size: 0.8rem;
  text-align: center;
  color: #333;
}

/* Hover States */
.video-thumbnail:hover img {
  transform: translateY(-5px);
  filter: brightness(0.8);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.video-thumbnail:hover .video-subtitle {
  color: #888;
}

/* --- 5. OVERLAY PLAYER --- */
.video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-overlay.active .video-wrapper {
  transform: translateY(0) scale(1);
}

.video-wrapper video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background-color: #000;
}

.close-video {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

@media only screen and (max-width: 768px) {
  /* Hide the decorative image container */
  .decor {
    display: none !important;
  }

  /* Ensure the menu content takes up the full width now */
  .menu-container {
    justify-content: center;
    width: 100%;
  }
}

/* --- UNIFIED MOBILE REFINEMENTS --- */
@media only screen and (max-width: 768px) {

  /* 1. Global Reset */
  body, html {
    overflow-y: auto !important; /* Enable natural thumb-scrolling */
    height: auto !important;
    background-attachment: scroll;
  }

  /* 2. Menu & Navigation */
  .menu-container {
    height: auto; /* Let it expand if items wrap */
    padding: 10px 0;
    flex-direction: column; /* Stack menu and decor if decor was visible */
    justify-content: center;
  }

  .menu-content {
    margin-left: 0; /* Center the menu */
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .menu-item img {
    height: 30px !important; /* Slightly smaller for narrow screens */
    width: auto;
  }

  .decor, .menu-separator {
    display: none !important; /* Hide decorative bits to save space */
  }

  /* 3. Text & Layout Fixes */
  .txtbox {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    height: auto !important; /* Kill the inner-scroll */
    overflow: visible !important;
  }

  /* 4. Handling the Sidebar Image (Slide2im) */
  /* This is the div with float:right in your HTML */
  div[style*="float: right"] {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    text-align: center;
  }

  div[style*="float: right"] img {
    height: auto !important;
    max-height: 400px; /* Keep it from being too long */
    width: 90% !important;
    margin: 10px auto;
    object-fit: contain;
  }

  /* 5. Biography Image & Videos */
  img[style*="float: left"],
  .elegant-video-gallery {
    float: none !important;
    margin: 20px auto !important;
    width: 90% !important;
    display: block;
  }

  .video-thumbnail, .video-thumbnail.portrait {
    width: 100% !important; /* Full width for easier tapping */
    margin-bottom: 20px;
  }

  /* 6. Typography adjustments for small screens */
  h2 { font-size: 1.6rem; text-align: center; }
  p, li { font-size: 1.05rem; line-height: 1.6; }
}

@media only screen and (max-width: 768px) {
  /* Target the container */
  .sidebar {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Target the image inside the container */
  .sidebar img {
    display: block !important;
    width: auto !important;
    max-width: 90% !important; /* Prevents edge-to-edge touching */
    height: auto !important;
    max-height: 450px !important; /* Stops it from being a giant skyscraper */
    margin: 15px auto !important;
    border-radius: 4px;
    align-self: center; /* Ensures it stays centered even if aligned left in HTML */
  }

  /* Ensure text box behaves after the sidebar moves */
  .txtbox {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    height: auto !important;
    overflow: visible !important;
  }

  @media only screen and (max-width: 768px) {
    /* 1. Pin the menu to the top */
    .menu-container {
      position: fixed !important;
      top: 0;
      left: 0;
      width: 100% !important;
      z-index: 9999 !important; /* Keep it above everything else */
      height: 50px !important; /* Set a fixed height for mobile */
      background-color: #000; /* Ensure it stays solid black */
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0 !important;
    }

    /* 2. Push the content down so the menu doesn't cover it */
    body {
      padding-top: 55px !important; /* This creates space for the 50px menu */
    }

    /* 3. Ensure the sidebar images and text boxes respect the new top */
    .sidebar, .txtbox {
      margin-top: 10px !important;
    }
  }

  /* 1. Disable the standard background on the body */
  body {
    background-image: none !important;
    background-color: #FFFFFF; /* Fallback color */
  }

  /* 2. Create a 'Ghost Layer' for the fixed background */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use your specific blur image here */
    background-image: url('../gifs/bg-blur1.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Pushes it behind all text and images */
    will-change: transform; /* Helps mobile browsers render it smoothly */
  }
}

}


.lang-switch {
  font-family: Georgia, "Times New Roman", serif; /* Or her brand font */
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #222;
}
.lang-switch a {
  text-decoration: none;
  color: #666; /* Darker to show it's clickable */
  font-weight: bold;
}
.lang-switch .active {
  color: #9c9a9a; /* Faded because you are already there */
  pointer-events: none;
}



/* Status Messages */
.status-message { padding: 15px; margin-bottom: 20px; border-radius: 4px; text-align: center; }
.status-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
