/*
* Last updated: May 10, 2025
* Optimized version with fixes applied
*/

/* ==========================================================================
  1. Reset & Base Styles
  ========================================================================== */
  * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: sans-serif;
}

body {
  min-height: 100%;
  margin-top: 110px; 
}

/* Main container */
.main {
  box-sizing: border-box;
  margin-bottom: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ==========================================================================
    2. Layout & Content
    ========================================================================== */
.content {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 10px 15px;
  margin: 10px 0 10px 0; 
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Width utilities */
.w-10 { width: 100%; }
.w-9 { width: 90%; }
.w-8 { width: 80%; }
.w-7 { width: 70%; }
.w-6 { width: 60%; }
.w-5 { width: 50%; }

.content a {
  text-decoration: none;
}

/* Balises */
.BoldB {
  display: inline;
  color: #40879e;
  font-weight: bold;
}

/* Style for 'MORE' link */
.see-more {
  font-size: 16px;
  padding: 4px 7px;
  margin: 15px 10px;
  background-color: #e2e2e2;
  box-shadow: 1px 1px 5px 2px rgb(204, 204, 204);
  color: rgb(0, 0, 0);
  border-radius: 12px;
  text-align: center;
  vertical-align: middle;
  align-self: center;
  transition: all 0.45s ease-out;
}

.see-more a {
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

.see-more:hover {
  background-color: #ffffff;
}

.see-more a:after {
  content: "\2026";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.see-more:hover > a:after {
  opacity: 1;
}

.see-more a:active {
  margin: 4px 10px;
}

/* Group Container */
.groups-container {
  color: black;
  align-items: center;
  justify-content: center;
}

.groups-container a {
  text-decoration: none;
}

.group-title {
  font-size: 1.8rem;
  margin: 1rem 0 2rem 4rem;
}

.group-title a {
  text-decoration: none;
}

/* ==========================================================================
    3. Titles
    ========================================================================== */
/* TF1 title */
.title-tf1 {
  width: 90%;
  padding: 0;
  margin: 0 0 50px 0;
  border-bottom: solid 1.7px rgb(168, 168, 168);
}

.title-tf1 .title-cap {
  text-decoration: none;
  font-size: 2em;
  padding: 7px 20px 5px 5px;
  width: fit-content;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 10px; /* Fixed negative value */
  vertical-align: middle;
  color: rgb(46, 46, 46);
  text-shadow: 1px 1px 1px #ffffff;
  background-color: #dddddd;
}

/* BG title */
.title-bg {
  text-decoration: none;
  box-sizing: border-box;
  width: 100%; 
  text-align: center;
  line-height: clamp(2rem, calc(1rem + 1.3vw), 2rem);
  color: #434343;
  font-size: clamp(0.7rem, calc(1rem + 1.5vw), 2rem); 
  padding: 10px 0;
  margin: 20px 0 0 0;
  border-radius: 8px; 
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease; 
}

.title-bg .append-title {
  color: #434343;
  font-size: 1rem;
} 

/* MD title */
.title-md {
  font-size: 2rem;
  width: 100%;
  text-align: center;
  background-color: #40879e;
  height: 3rem;
  vertical-align: middle;
  color: #eee;
  text-shadow: 1px 1px 1px #515455;
  padding: 3px;
}

.title-md .append-title {
  color: #eee;
  font-size: 1rem;
} 

/* ==========================================================================
    4. Navigation
    ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0099ff;
  height: 80px;
  width: 100%;
  padding: 0;
  z-index: 1020; /* Increased to prevent conflicts */
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  transition: all 0.5s ease;
}
  
.header-hide {
  transform: translateY(-100%);
  -webkit-transform: translateY(-100%); 
  opacity: 0;
}
  
.header-show {
  transform: translateY(0);
  -webkit-transform: translateY(0); 
  opacity: 1;
}
  
.logo img {
  margin-left: calc(1rem + 0.5vw);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #227ca6;
  box-shadow: 0 0 10px rgba(150, 225, 247, 0.904);
  padding: 5px;
  background-color: #fff;
}
  
.logo:hover img {
  border: 2px solid #79d5ff;
}
  
.little-home {
  display: none;
}
  
.little-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: clamp(1.5rem, calc(1.2rem + 1.3vw), 2.5rem);
  color: #eee;
  text-shadow: 1px 1px 1px #515455;
  height: 100%;
  padding: 7px;
  box-sizing: border-box;
  transition: color 0.3s ease, transform 0.3s ease;
  -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease; 
  border-radius: 5px;
}
  
.little-home a:hover {
  color: #d4d4d4;
}
  
.little-home a:focus {
  color: #ffffff;
}
  
.navbar {
  background: #0099ff;
  text-shadow: 1px 1px 2px #3a3a3a;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 0;
  margin: 0;
}
  
.navbar a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  display: block;
  padding: 1em;
  font-size: 1.5rem;
}
  
.navbar .menu {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease; /* Fixed inefficient display transition */
  -webkit-transition: opacity 0.3s ease; 
}
  
.navbar .menu.active {
  display: flex;
}
  
.navbar .menu a {
  font-size: calc(12px + 0.5vw);
  padding-left: calc(8px + 0.5vw);
  padding-right: calc(5px + 0.5vw);
}
  
.navbar .submenu a {
  font-size: calc(8px + 0.3vw);
  padding: 8px 2px;
}
  
.menu > li:hover > a {
  background-color: #32c9fb;
  text-shadow: 1px 1px 2px #86edff;
}
  
.navbar ul {
  margin: 0;
  padding: 0;
  background-color: #0099ff;
  list-style: none;
}
  
.navbar li {
  display: inline;
  margin: 0;
  padding: 0;
}
  
.dropdown-menu {
  position: relative;
}
  
.dropdown-menu > a:after {
  content: "\25B8";
  margin-left: 0.3rem;
}
  
.submenu {
  display: none;
  position: absolute;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 99;
}
  
.submenu .submenu {
  top: 25%;
  left: 100%;
}
  
.submenu li {
  display: inline;
}
  
.dropdown-menu:hover > .submenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(31, 31, 31, 0.856);
  color: black;
  width: 100%;
}
  
.dropdown-menu:hover > a:after {
  content: "\25BE";
  color: black;
}
  
.dropdown-menu:hover > a {
  color: black;
}
  
.menu li:hover > a {
  color: black;
}
  
.submenu li:hover > a {
  background-color: #32c9fb;
  color: black;
}

/* Navbar Account */
.account-nbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 5px;
}
  
.account-nbar ul {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  gap: 5px;
  height: 100%;
}
  
.account-nbar ul li {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}
  
.account-nbar ul li a {
  color: #3a3a3a;
  text-decoration: none;
  font-size: 2rem;
}
  
.account-nbar ul li p {
  color: #fff;
  margin: 0;
}
  
.account-nbar img {
  height: 80px;
}
  
.account-nbar .avatar-container {
  width: 50px;
  height: 50px;
  border: 2px solid #35b1ffd7;
  box-shadow: 0 0 2px #05121ad7;
  border-radius: 50%;
  padding: 5px;
  background-color: #52d4ff86;
}
  
.account-nbar .avatar-container:hover {
  cursor: pointer;
  background-color: #b7e8ff;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease; 
}
  
.account-nbar .avatar-container a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #3d3d3d;
  text-shadow: 0 0 2px #ffffff;
}
  
.account-nbar .navbar-log-btn p {
  font-size: calc(1rem + 0.3vw);
  color: #fff;
}
  
.account-nbar .navbar-log-btn:hover p {
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease; 
  color: #cecece;
}

/* ==========================================================================
    5. Footer
    ========================================================================== */
.site-footer {
  background-color: #2c3e50;
  color: #ffffff;
  padding: 40px 0 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-slogan, .footer-legal {
  color: #5a93b9;
  font-size: 0.8em;
  margin: 15px 5px;
}

.footer-section {
  flex: 1 1 30%;
  margin-bottom: 20px;
}

.footer-logo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
}

.footer-section h2,
.footer-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease; 
}

.footer-links a:hover {
  color: #f1f1f1;
}

.footer-social {
  text-align: center;
  margin-top: 20px;
}

.footer-social .social-links {
  list-style: none;
  padding: 0;
}

.footer-social .social-links li {
  display: inline-block;
  margin: 0 10px;
}

.footer-social .social-links a {
  color: #ffffff;
  font-size: 1.2em;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease; 
}

.footer-social .social-links a:hover {
  color: #f1f1f1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #34495e;
  padding-top: 15px;
  font-size: 0.9em;
  color: #95a5a6;
}

/* Terms of Service Page */
.tos-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tos-heading {
  font-size: 2.2em;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
}

.tos-content {
  padding: 10px 20px;
  color: #555;
}

.tos-content h2 {
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.8em;
}

.tos-content h3 {
  color: #2c3e50;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.tos-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.tos-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.tos-content ul li {
  margin-bottom: 10px;
}

.tos-content a {
  color: #007bff;
  text-decoration: none;
}

.tos-content a:hover {
  text-decoration: underline;
}

/* Cookie Banner */
#coc-cookie-banner.coc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 25px 0;
  text-align: center;
  z-index: 1010; /* Adjusted to prevent conflicts */
  font-size: 14px;
  display: none; 
  box-sizing: border-box;
}
  
#coc-cookie-banner .coc-text {
  margin: 5px 0;
  display: inline-block;
  vertical-align: middle;
  word-wrap: break-word;
}
  
#coc-cookie-banner .coc-agree-button {
  margin-left: 10px;
  padding: 4px 7px;
  background-color: #0E7452;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  vertical-align: middle;
}

/* ==========================================================================
    6. Pagination
    ========================================================================== */
/* General Pagination */
.pagination {
  display: inline-block;
  margin: 2rem 3rem;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  border: solid 1px lightgray;
  transition: background-color 0.3s;
  -webkit-transition: background-color 0.3s; 
}
  
.pagination a:hover:not(.active) {
  background-color: #ddd;
}

.pagination a:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
  
.pagination a:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.center {
  text-align: center;
}

/* Flashcard Pagination */
.fcu-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.242);
  border-radius: 7px;
}

.fcu-pagination i:hover {
  color: #003f83;
}

.fcu-pagination a,
.fcu-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  font-size: 3rem;
  color: #707070;
  text-decoration: none;
}
.fcu-pagination a {
  flex-grow: 1;
}

.fcu-pagination .disabled {
  color: #dfdfdf;
  cursor: not-allowed;
}

.fcu-pagination-info {
  font-size: 16px;
  color: #333;
}

/* ==========================================================================
    7. Messages & Alerts
    ========================================================================== */
.all-messages {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Base alert */
.all-alert {
  position: relative;
  box-sizing: border-box;
  min-width: 250px;
  padding: 20px 50px 20px 25px; /* extra right padding for close button */
  margin-top: 15px;
  border-radius: 4px;
  font-size: 0.95em;
  color: #333;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* Variants */
.all-alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.all-alert.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Close Button */
.close-alert {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #666;
  background-color: rgba(0,0,0,0.05);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover/Focus states */
.close-alert:hover,
.close-alert:focus {
  background-color: rgba(0,0,0,0.1);
  color: #333;
  outline: none;
}

/* Fade-out Effect */
.all-alert.hidden {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Form Errors */
.errors-list {
  padding: 10px 20px;
  color: #0f0000;
  border: 0.7px solid #770a0a;
  border-radius: 10px;
  background-color: rgba(224,118,118,0.82);
}

.errors-list ul {
  list-style-type: circle;
}


/* ==========================================================================
    8. Audio Players
    ========================================================================== */
/* Player A */
.playerA {
  position: absolute; 
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  padding: 2px;
  border: #d8d8d8 1px solid;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 10px 5px;
  height: 100%;
  max-height: 150px;
  width: 2.5rem;
  overflow: hidden;
}

.btn-playerA {
  flex-grow: 1;
  padding: 0;
  margin: 0 5px;
  font-size: 1.5rem; 
  cursor: pointer;
  border: none;
  background-color: #f9f9f9;
  color: #747474;
  border-radius: 5px;
  text-align: center;
  overflow: hidden;
}

.btn-playerA:hover {
  color: #0087e0;
  transform: scale(1.05);
  -webkit-transform: scale(1.05); 
}

.btn-playerA:active {
  transform: translateY(2px);
  -webkit-transform: translateY(2px); 
}

.btn-playerA:disabled {
  background-color: #f0f0f0;
  color: #aaaaaa;
  cursor: not-allowed;
}

.btn-playerA-stopped-or-paused {
  color: #747474;
  background-color: #747474;
}

.btn-playerA-played {
  color: #00ac0e;
}

.btn-playerA-stopped {
  color: #747474;
}

audio {
  display: none;
}

/* Player B */
.playerB-tab-outter {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 0;
  margin: 20px auto;
  max-width: 350px;
  max-height: 23rem;
  vertical-align: middle;
}

.btn-playerB-icon {
  flex: 1;
  background: none;
  border: 1.5px solid #c2c2c2;
  border-radius: 10px 0 0 10px;
  background-color: #333;
  color: #fff;
  font-size: 2rem;
}

.playerB-tab-inner {
  flex: 5;
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  padding: 5px 20px;
  margin: 0;
  border-radius: 0 10px 10px 0;
  border: #333 1.5px solid;
  background-color: #f9f9f9;
}

.btn-playerB-backward, 
.btn-playerB-play,
.btn-playerB-replay,
.btn-playerB-forward {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem; 
  color: #333; 
  margin-left: 10px; 
}

/* Custom Audio Player Styles (player_C) */
.player-c-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 25px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: 'Open Sans', sans-serif;
}

.player-c-interface {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Controls section */
.player-c-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.player-c-btn {
  background-color: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease; 
  color: #495057;
  padding: 0;
  min-width: 40px;
  min-height: 40px;
}

.player-c-btn:hover {
  background-color: #e9ecef;
  transform: scale(1.05);
  -webkit-transform: scale(1.05); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.player-c-btn:active {
  transform: scale(0.95);
  -webkit-transform: scale(0.95); 
  background-color: rgba(0, 0, 0, 0.1);
}

.player-c-btn:focus {
  outline: 2px solid #4dabf7;
  outline-offset: 2px;
}

.player-c-play-btn {
  width: 48px;
  height: 48px;
  background-color: #3498db;
  color: white;
}

.player-c-play-btn:hover {
  background-color: #2980b9;
}

.player-c-stop-btn {
  background-color: #e74c3c;
  color: white;
}

.player-c-stop-btn:hover {
  background-color: #c0392b;
}

.player-c-forward-btn,
.player-c-backward-btn {
  position: relative;
  z-index: 2;
}

/* SVG icons */
.player-c-btn svg {
  width: 18px;
  height: 18px;
}

.player-c-play-btn svg {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none;
}

/* Progress bar section */
.player-c-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.player-c-time {
  font-size: 0.85rem;
  color: #6c757d;
  min-width: 40px;
  text-align: center;
}

.player-c-progress-bar {
  flex: 1;
  height: 10px;
  position: relative;
  cursor: pointer;
  border-radius: 5px;
  overflow: visible;
  background-color: #e9ecef;
}

.player-c-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #3498db;
  border-radius: 5px 0 0 5px;
  transition: width 0.1s linear;
  -webkit-transition: width 0.1s linear; 
}

.player-c-progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 2px solid #3498db;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%); 
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Loading state */
.player-c-loading .player-c-progress-fill {
  background: linear-gradient(90deg, #3498db 25%, #4dabf7 50%, #3498db 75%);
  background-size: 200% 100%;
  animation: loading-animation 1.5s infinite linear;
  -webkit-animation: loading-animation 1.5s infinite linear; 
}

.player-c-loading .player-c-progress-handle {
  animation: pulse 1.5s infinite;
  -webkit-animation: pulse 1.5s infinite; 
}

@keyframes loading-animation {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@-webkit-keyframes loading-animation {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@-webkit-keyframes pulse {
  0% { -webkit-transform: translate(-50%, -50%) scale(1); }
  50% { -webkit-transform: translate(-50%, -50%) scale(1.2); }
  100% { -webkit-transform: translate(-50%, -50%) scale(1); }
}

/* Error state styling */
.player-c-error .player-c-interface {
  opacity: 0.7;
  pointer-events: none;
}

.player-c-error-message {
  color: #e74c3c;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .player-c-container {
      padding: 12px;
  }
  
  .player-c-controls {
      justify-content: space-around;
  }
  
  .player-c-btn {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
  }
  
  .player-c-play-btn {
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
  }
  
  .player-c-time {
      font-size: 0.75rem;
      min-width: 35px;
  }
  
  .player-c-progress-handle {
      width: 20px;
      height: 20px;
  }
  
  .player-c-progress-bar {
      height: 12px;
  }
  
  .player-c-progress-container {
      padding: 15px 0;
  }
}

/* Touch-friendly adjustments for mobile */
@media (hover: none) {
  .player-c-btn {
      min-width: 44px;
      min-height: 44px;
  }
  
  .player-c-play-btn {
      min-width: 48px;
      min-height: 48px;
  }
  
  .player-c-progress-handle {
      width: 20px;
      height: 20px;
      display: block;
      border-width: 3px;
  }
  
  .player-c-progress-bar {
      height: 14px;
  }
  
  .player-c-progress-container {
      padding: 18px 0;
  }
}

/* ==========================================================================
    9. Attached Files
    ========================================================================== */
.sppfiles-outter {
  width: 100%;
}

.sppfiles-title {
  margin: 60px 0 10px 10px;
  font-size: 1.7rem;
  color: #7c6a00;
}

.spp-file-list {
  display: flex;
  flex-direction: column;
  border-top: #b8b8b8 1px solid;
}

/* container for one file */
.spp-file-container {
  width: 100%;
  padding: 5px 10px;
  display: flex;
  align-items: center;
}

.spp-file-link {
  text-decoration: none;
  color: #333333;
  display: flex;
  align-items: center;
  width: 100%;
}

.spp-file-icon {
  font-size: 18px;
  margin-right: 10px;
  color: #555555;
  font-weight: bold;
}

.spp-file-container:hover .spp-file-icon,
.spp-file-container:hover .spp-file-name {
  color: #007cce;
}

.spp-file-name {
  font-size: 15px;
  max-width: 50ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==========================================================================
    10. Breadcrumb navigation 
    ========================================================================== */
/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 24px;
    margin: 20px 0 30px;
    font-size: 14px;
    color: #6c757d;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .breadcrumb li {
    display: inline-flex;
    align-items: center;
  }
  
  .breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #adb5bd;
    font-weight: 300;
  }
  
  .breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
  }
  
  .breadcrumb li:last-child {
    color: #495057;
    font-weight: 500;
  }

/* ==========================================================================
    11. Media Queries
    ========================================================================== */
/* Small screens, laptops. */
@media (max-width: 1024px) {
  /* NAVBAR */
  .favorites {
    width: 90%;
    left: 7%;
  }

  /* CONTENTS */
  .left-side {
    width: 17%;
    margin: 15% 83% 0 0;
    left: 3px;
  }
  
  .right-side {
    width: 17%;
    margin: 15% 0 0 83%;
    right: 3px;
  }
  
  .content {
    width: 95%;
  }

  .container-article {
    margin: 50px 18% 30px 18%;
    max-width: 64%;
  }
}

/* iPads, Tablets. */
@media (max-width: 768px) {
  /* NAVBAR */
  .navbar .menu {
    display: none;
  }

  .little-home {
    display: block;
  }

  /* CONTENTS */
  .topic-content {
    width: 95%;
  }
  
  .content {
    width: 95%;
  }

  .subsections-list a {
    font-size: 1.15rem; 
    padding: 10px;
  }

  .container-article {
    width: 100%;
    margin: 50px 10px;
    max-width: 100%;
  }

  .left-side {
    position: relative;
    width: 100%;
    margin: 5px;
    align-self: center;
  }

  .right-side {
    position: relative;
    width: 100%;
    margin: 5px;
    align-self: center;
  }
  
  /* FOOTER */
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-section {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .tos-container,
  .about-us {
    padding: 15px;
  }

  .tos-heading,
  .about-us h1 {
    font-size: 1.8em;
  }

  .tos-content h2,
  .about-us h2 {
    font-size: 1.6em;
  }

  .tos-content h3 {
    font-size: 1.4em;
  }

  /* fc pagination */
  .fcu-pagination a {
    margin: 0;
    height: 100%;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  /* NAVBAR */
  header {
    height: 105px;
  }
  
  .navbar .menu {
    display: none;
  }
  
  .little-home {
    display: block;
  }
  
  .little-home a {
    font-size: 1.2rem;
  }

  .navbar .menu.active {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* BREADCRUMB */
  .breadcrumb {
        font-size: 0.85rem;
    }

  /* CONTENTS */
  .content {
    width: 98%;
    padding-right: 0;
    padding-left: 0;
  }
  
  .topic-content {
    width: 98%;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
  }
  
  .x4-container {
    width: 98%;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
  }
  
  .container-article {
    margin: 50px 0 30px 0;
  }

  .subsections-list a {
    font-size: 0.9rem;
    padding: 5px; 
  }

  /* FOOTER */
  .footer-main-item {
    width: 95%;	
  }

  .footer-main-item .title {
    text-align: center;	
  }

  .footer-main-item li {
    text-align: center;	
  }
  
  .footer-main-item form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* FOOTER RESPONSIVE */
  .footer-logo a {
    font-size: 1.5em;
  }

  .footer-section h3 {
    font-size: 1.1em;
  }

  .footer-links a {
    font-size: 0.9em;
  }

  .tos-heading,
  .about-us h1 {
    font-size: 1.6em;
  }

  .tos-content h2,
  .about-us h2 {
    font-size: 1.4em;
  }

  .tos-content h3 {
    font-size: 1.2em;
  }
}

/* Print styles */
@media print {
  * {
    display: none;
  }
}

/* ==========================================================================
     High Contrast Mode
     ========================================================================== */
  
@media (prefers-contrast: high) {
  .breadcrumb{
    border: 1px solid #000;
  }
  
  .breadcrumb a {
    color: #0000ff;
  }
}

  @media (prefers-color-scheme: dark) {
    .breadcrumb {
      background-color: #1a1a1a;
      color: #e0e0e0;
    }
    
    .breadcrumb a {
      color: #66b3ff;
    }
    
    .breadcrumb a:hover {
      color: #99ccff;
    }
  }