/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(210, 32%, 99%);
  --text-color: hsl(210, 4%, 55%);
  --dark-color-light: hsla(210, 4%, 4%, .1);
  --white-color-light: hsla(210, 4%, 99%, .1);
  --gradient-x: linear-gradient(90deg,
              hsla(0, 0%, 0%, 0),
              hsl(210, 4%, 64%),
              hsla(0, 0%, 0%, 0));
  --gradient-y: linear-gradient(0,
              hsla(0, 0%, 0%, 0),
              hsl(210, 4%, 64%),
              hsla(0, 0%, 0%, 0));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}
/* Hide scrollbar for all elements */
::-webkit-scrollbar {
  display: none; /* Hides the scrollbar in WebKit browsers (Chrome, Safari) */
}

/* Hide scrollbar for Firefox */
html {
  scrollbar-width: none; /* Hides the scrollbar in Firefox */
}

/* Hide scrollbar for Internet Explorer and Edge */
body {
  -ms-overflow-style: none; /* Hides the scrollbar in IE and Edge */
}

/* Disable text selection on ALL pages globally */
* {
    -webkit-user-select: none;  /* Chrome, Safari, and Opera */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Non-prefixed version, currently supported by Chrome, Opera, and Edge */
    -webkit-tap-highlight-color: transparent; /* Prevent blue highlight on touch/hold */
    -webkit-touch-callout: none; /* Prevent context menu on long press */
}

/* Only allow text selection in specific input fields and editable areas */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
.ql-editor,
[contenteditable="true"],
.ql-editor * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.game.e {
  display: flex;
  flex-direction: row; /* Arrange items horizontally */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  text-align: center; /* Center text within the container */
  gap: 20px; /* Add space between items */
  padding: 0 10px; /* Add padding on left and right */
  margin: 0; /* Remove margin */
}


/* Custom Alert Box Styles */
.my-custom-alert-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* AboutUs Css */


/* Button Styling */
input[type="submit"] {
  background-color: #102841; /* Darker shade of blue */
  color: white; /* White text */
  padding: 10px 30px; /* More padding for a bigger button */
  border: none; /* No border */
  border-radius: 5px; /* Slightly rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  font-size: 1.2em; /* Larger font size */
  font-weight: bold; /* Bold text */
  text-transform: uppercase; /* Uppercase text */
  transition: background-color 0.3s ease; /* Smooth transition for hover */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  display: inline-block; /* Inline-block for better alignment */
  margin-top: 20px; /* Space above the button */
}

/* Button Hover Effect */
input[type="submit"]:hover {
  background-color: #0d1f33; /* Slightly darker on hover */
}

/* Input Fields Styling */
input[type="number"], input[type="text"] {
  padding: 10px; /* Padding inside input fields */
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 5px; /* Rounded corners */
  width: calc(100% - 22px); /* Full width minus padding and border */
  box-sizing: border-box; /* Ensure padding doesn't affect width */
  font-size: 1em; /* Standard font size */
  margin-bottom: 15px; /* Space below each input */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus */
}

/* Input Fields Focus State */
input[type="number"]:focus, input[type="text"]:focus {
  border-color: #102841; /* Blue border on focus */
  box-shadow: 0 0 5px rgba(16, 40, 65, 0.5); /* Blue glow on focus */
  outline: none; /* Remove default outline */
}

/* Checkbox Styling */
input[type="checkbox"] {
  margin-right: 10px; /* Space between checkbox and label */
}

/* Label Styling */
label {
  font-family: 'Roboto', sans-serif; /* Consistent font family */
  color: #102841; /* Dark blue text color */
  font-weight: bold; /* Bold label text */
  display: block; /* Block display for better layout */
  margin-bottom: 5px; /* Space below labels */
}

.custom-content-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: white; /* Assuming a white background for the text */
  padding: 20px;
  border: 2px solid #111;
  border-radius: 2px;
  box-shadow: 0 0 50px #111;
  flex: 1 1 calc(33% - 20px);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333; /* Text color */
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* Powered by credit */
.custom-content-container .powered-by {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.75em;
  color: #7f8c8d;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  opacity: 0.7;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Custom title - Simple black text with subtle accent */
.custom-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 15px;
  color: #1a1a1a;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-title:hover {
  border-left-color: #95a5a6;
  color: #2c3e50;
}

.custom-divider {
  width: 760px;
  border: 0;
  height: 2px;
  background-color: #1b1b1b; /* Divider color */
  margin-bottom: 20px;
  border: 2px solid #111;
  border-radius: 2px;
  box-shadow: 0 0 50px #111;
  flex: 1 1 calc(33% - 20px);
}



.custom-text {
  font-size: 1.1em;
  color: #333; /* Text color */
  margin-bottom: 15px;
  font-family: 'Arial', sans-serif; /* Custom font family for the text */
  flex: 1 1 calc(33% - 20px);
  font-size: large;
  font-weight: bold;
}

/* Enhanced styles for BTCM calculator content - UNIQUE TITLE */
.custom-content-container .title {
  font-size: 2.3em !important;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  text-align: center;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 2px;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.custom-content-container .title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
  0%, 100% {
    width: 120px;
    opacity: 1;
  }
  50% {
    width: 150px;
    opacity: 0.8;
  }
}

/* Subtitles - Simple with subtle touch */
.custom-content-container .custom-subtitle {
  font-size: 1.4em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  margin-top: 25px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  padding: 10px 15px;
  padding-left: 20px;
  border-left: 4px solid #3498db;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-content-container .custom-subtitle:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateX(3px);
}

/* Selection container - Simple and clean */
.custom-content-container .selection-container {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-content-container .selection-container:hover {
  border-color: #bdc3c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Dropdown - Simple styling */
.custom-content-container .dropdown {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-content-container .dropdown:hover {
  border-color: #3498db;
}

.custom-content-container .dropdown:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Form field labels - Simple styling */
.custom-content-container #form-fields p.custom-text {
  color: #1a1a1a;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: capitalize;
  padding-left: 5px;
}

/* Form inputs - Simple styling */
.custom-content-container #form-fields input[type="number"] {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.2s ease;
}

.custom-content-container #form-fields input[type="number"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
}

/* Calculate button - Unique with animation */
.custom-content-container #calculateButton {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 16px 40px;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 700;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: block;
  margin: 30px auto;
  width: 100%;
  max-width: 300px;
  position: relative;
  overflow: hidden;
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
  }
}

.custom-content-container #calculateButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.custom-content-container #calculateButton:hover::before {
  left: 100%;
}

.custom-content-container #calculateButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.custom-content-container #calculateButton:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.custom-content-container #calculateButton:active {
  transform: translateY(-1px);
}

.custom-content-container .input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

/* Result inputs - Simple styling */
.custom-content-container .input-container input[type="text"] {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.custom-content-container .input-container input[type="text"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.custom-content-container #condition-results {
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-content-container #condition-results h3 {
  font-size: 1.6em;
  font-weight: 800;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
}

.custom-content-container #condition-results p {
  font-size: 1.15em;
  line-height: 1.8;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
}

.custom-content-container #redouble-section {
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

.custom-content-container #redouble-section p {
  font-size: 1.15em;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.custom-content-container #redouble-section button {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.custom-content-container #redouble-section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* Labels - Simple black text */
.custom-content-container label {
  color: #1a1a1a;
  font-weight: 500;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  margin-left: 8px;
  cursor: pointer;
}

.custom-content-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3498db;
}

/* H2 and H3 - Simple black text with subtle accent */
.custom-content-container h2:not(.custom-subtitle):not(.custom-title),
.custom-content-container h3:not(.custom-subtitle) {
  color: #1a1a1a;
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 20px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-left: 15px;
  border-left: 3px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-content-container h2:not(.custom-subtitle):not(.custom-title):hover,
.custom-content-container h3:not(.custom-subtitle):hover {
  border-left-color: #3498db;
  color: #2c3e50;
}

.custom-content-container ul.custom-text,
.custom-content-container ol.custom-text {
  list-style: none;
  padding-left: 0;
}

/* List items - Simple black text with subtle bullet */
.custom-content-container ul.custom-text li,
.custom-content-container ol.custom-text li {
  position: relative;
  padding: 10px 12px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  border-left: 2px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-content-container ul.custom-text li::before,
.custom-content-container ol.custom-text li::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: #7f8c8d;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1;
}

.custom-content-container ul.custom-text li:hover,
.custom-content-container ol.custom-text li:hover {
  border-left-color: #95a5a6;
  color: #2c3e50;
  padding-left: 35px;
}

/* Paragraphs - Simple black text */
.custom-content-container p.custom-text {
  color: #1a1a1a;
  font-size: 1.05em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 2px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-content-container p.custom-text:hover {
  border-left-color: #bdc3c7;
  color: #2c3e50;
}

/* Style for Conditions page list items */
/* Conditions page list items - Simple black text */
.custom-content-container .input-container ul.custom-text li,
.custom-content-container .box ul.custom-text li {
  position: relative;
  padding: 10px 12px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-size: 1em;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  border-left: 2px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-content-container .input-container ul.custom-text li::before,
.custom-content-container .box ul.custom-text li::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: #7f8c8d;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1;
}

.custom-content-container .input-container ul.custom-text li:hover,
.custom-content-container .box ul.custom-text li:hover {
  border-left-color: #95a5a6;
  color: #2c3e50;
}

/* aboutus css end */

.my-custom-alert-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7); /* Apply transparency to the background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 350px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.my-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  font-weight: bold;
}

.my-custom-alert-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #fff9f9;
  font-weight: bold;
}

.my-custom-alert-box p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #ffffff;
}

.my-button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Remove focus/active styles for all devices */
.my-cancel-btn {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}

.my-cancel-btn:focus,
.my-cancel-btn:active {
  outline: none;
  box-shadow: none;
  background: none;
}

/* Remove focus/active styles for all devices */
.my-confirm-btn {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}

.my-confirm-btn:focus,
.my-confirm-btn:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.my-cancel-btn, .my-confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  width: 120px;
}

.my-cancel-btn {
  background-color: #f0f0f0;
  color: #333;
}

.my-cancel-btn:hover {
  background-color: #e0e0e0;
}

.my-confirm-btn {
  background-color: #e74c3c;
  color: white;
}

.my-confirm-btn:hover {
  background-color: #c0392b;
}


.gimg {
  max-width: 98%; /* Ensure image doesn't overflow */
  height: auto; /* Maintain aspect ratio */
  border: 2px solid #111;
  border-radius: 2px;
  box-shadow: 0 0 50px #111;
  flex: 1 1 calc(33% - 20px); /* Allow images to shrink and grow, with a base size */
  /* Default to three images per row with space in between */
}

/* For tablets (≤ 768px) */
@media (max-width: 768px) {
  .gimg {
    flex: 1 1 calc(50% - 20px); /* Two images per row with space in between */
  }
  .custom-divider {
    width: 50px;
    border: 0;
    height: 2px;
    background-color: #1b1b1b; /* Divider color */
    margin-bottom: 20px;
  }
}

/* For phones (≤ 480px) */
@media (max-width: 480px) {
  .gimg {
    flex: 1 1 calc(100% - 20px); /* One image per row with space in between */
  }
  .custom-divider {
    width: 50px;
    border: 0;
    height: 2px;
    background-color: #1b1b1b; /* Divider color */
    margin-bottom: 20px;
  }
}

body {
  
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

a {
  text-decoration: none;
}



/* Optionally, you can also prevent dragging images */
img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;  /* Chrome, Safari, and Opera */
  -moz-user-drag: none;     /* Firefox */
  -o-user-drag: none;       /* Opera */
  user-drag: none;          /* Non-prefixed version */
}

/*=============== LAYOUT ===============*/
.container {
  margin-inline: 1.5rem;
  width: calc(100% - 3rem);
  max-width: 100%;
  box-sizing: border-box;
}

.main {
  padding-top: 5rem;
  padding-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - 5rem);
}

/* Ensure titles are visible */
.main.container {
  padding-top: 6rem !important;
  padding-bottom: 2rem !important;
}

.custom-content-container {
  margin-top: 0 !important;
  padding-top: 20px !important;
}

.bg-image {
  position: fixed; /* Changed to fixed to ensure it covers the viewport at all times */
  top: 0;
  left: 0;
  width: 100vw; /* Use viewport width units to ensure full width */
  height: 100vh; /* Use viewport height units to ensure full height */
  object-fit: cover; /* Cover the entire container while preserving aspect ratio */
  object-position: center; /* Center the image */
  z-index: -1; /* Ensure it is behind other content */
  background-color: #fff; /* Optional: Set a background color to avoid white spaces if the image doesn't cover it */
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-x);
}

.header__container {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}


.header__container:focus,
.header__container:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.header__toggle {
  font-size: 1.25rem;
  color: var(--white-color);
  cursor: pointer;
}

.header__logo {
  width: 70px;
}



/* Remove focus/active styles for all devices */
.image-link {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}

.image-link:focus,
.image-link:active {
  outline: none;
  box-shadow: none;
  background: none;
}





/*=============== SIDEBAR ===============*/
.sidebar {
  position: fixed;
  left: -100%;
  top: var(--header-height);
  width: 280px;
  height: 100%;
  padding: 2rem 1.5rem;
  background-color: var(--dark-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-fixed);
  transition: left .4s;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--gradient-y);
}

.large-bold-text {
  font-family: Arial, sans-serif; /* Font family */
  font-size: 20px; /* Font size */
  font-weight: bold; /* Make text bold */
  color: white; /* Text color */
  text-decoration: none; /* Remove underline from link */
  padding: 10px; /* Optional padding */
}


.sidebar__container {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  padding-bottom: 3rem;
  height: 100%;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}



.sidebar__container:focus,
.sidebar__container:active {
  outline: none;
  box-shadow: none;
  background: none;
}


.calcule__container {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
}



.calcule__container:focus,
.calcule__container:active {
  outline: none;
  box-shadow: none;
  background: none;
}




.sidebar__logo {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: .5rem;
}

.sidebar__logo-img {
  width: 37px;
}
.sidebar__logo-text {
  height: 37px;
  width: 76px;
}

.sidebar__content {
  position: relative;
  overflow: auto;
  padding-top: 2rem;
}

.sidebar__content::-webkit-scrollbar {
  display: none;
}

.sidebar__content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-x);
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  row-gap: .25rem;
}

.sidebar__link {
  color: var(--text-color);
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1.5rem;
  padding: 1rem;
  border-radius: .25rem;
  transition: background .3s;
}

.sidebar__link-floating {
  display: none;
}

.sidebar__link i {
  color: var(--white-color);
  font-size: 1.25rem;
}

.sidebar__link-name {
  font-weight: var(--font-medium);
  transition: color .4s;
}

.sidebar__link:hover {
  background-color: var(--white-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white-color);
}

.sidebar__title span {
  display: block;
  position: relative;
  margin-block: 2rem 1.5rem;
  text-align: center;
  color: var(--white-color);
  font-size: var(--normal-font-size);
}

.sidebar__title span::before, 
.sidebar__title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
}

.sidebar__title span::before {
  background: linear-gradient(90deg, 
            hsla(0, 0%, 0%, 0), 
            hsl(210, 4%, 64%));
  left: 0;
}

.sidebar__title span::after {
  background: linear-gradient(90deg, 
            hsl(210, 4%, 64%), 
            hsla(0, 0%, 0%, 0));
  right: 0;
}

.sidebar__perfil {
  width: 55px;
  border-radius: 50%;
  border: 2px solid var(--white-color);
}

.sidebar__account {
  display: flex;
  align-items: center;
  column-gap: .5rem;
}

.sidebar__name {
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin-bottom: .25rem;
}

.sidebar__email {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.sidebar__account i {
  color: var(--white-color);
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
}

/* Show sidebar */
.show-sidebar {
  left: 0;
}

/* Active link */
.active-link {
  background-color: var(--white-color-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.active-link span {
  color: var(--white-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .sidebar {
    width: 232px;
    padding-inline: 1rem;
  }
  .sidebar__account {
    flex-direction: column;
    row-gap: .5rem;
    text-align: center;
  }
  .sidebar__account i {
    margin: 0;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header__container {
    height: calc(var(--header-height) + 1.5rem);
  }
  .header__toggle {
    font-size: 1.5rem;
  }

  .sidebar {
    left: 0;
    top: calc(var(--header-height) + 1.5rem);
    width: 300px;
    transition: width .4s;
  }
  .sidebar__container {
    padding-bottom: 4rem;
    overflow: hidden;
  }
  .sidebar__logo {
    transition: padding .4s;
  }
  .sidebar__link {
    position: relative;
    padding-inline: 1.5rem;
    column-gap: 2rem;
  }
  .sidebar__link i {
    font-size: 1.5rem;
  }
  .sidebar__link-name {
    transition: color .4s, opacity .4s;
  }
  .sidebar__title {
    position: relative;
  }
  .sidebar__title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-x);
    opacity: 0;
  }
  .sidebar__account {
    column-gap: 1rem;
    padding-left: .5rem;
    margin-top: auto;
  }
  .sidebar__logo-text, 
  .sidebar__title, 
  .sidebar__title::after, 
  .sidebar__title span {
    transition: opacity .4s;
  }
  .sidebar__link-floating {
    display: none; /* Hidden by default, only show when sidebar is collapsed */
    font-size: 10px;
    width: max-content;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    transition: color .4s, opacity .4s;
    opacity: 0;
  }

  .main {
    padding-left: 300px;
    padding-top: 6rem;
    transition: padding .4s;
  }

  /* Reduce sidebar */
  .show-sidebar {
    width: 120px;
  }

  .show-sidebar .sidebar__logo {
    padding-left: 1rem;
  }

  .show-sidebar .sidebar__logo-text,
  .show-sidebar .sidebar__link-name  {
    opacity: 0;
  }

  .show-sidebar .sidebar__title span {
    opacity: 0;
    pointer-events: none;
  }

  .show-sidebar .sidebar__title::after {
    opacity: 1;
  }

  .show-sidebar .sidebar__link-floating {
    display: block; /* Show floating tooltip when sidebar is collapsed */
  }

  .show-sidebar .sidebar__link:hover .sidebar__link-floating {
    opacity: 1;
    color: var(--white-color);
  }
  
  .show-sidebar .main {
    padding-left: 300px;
  }

  /* Add padding main */
  .main-pd {
    padding-left: 120px;
  }
}




.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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


.control-btn {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; /* Adjust the size as needed */
  height: 50px;
}

.control-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.control-btn:hover:enabled {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}



.reciter-selection,
.surah-selection {
  margin-top: 20px;
  width: 100%;
  text-align: left;
}

.dropdown {
  outline: none;
  -webkit-tap-highlight-color: transparent; /* For mobile devices */
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
}


.dropdown:focus,
.dropdown:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.btn-icon {
  background-color: #333;
  border: none;
  color: #fff;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  width: 50px; /* Adjust the size as needed */
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-icon::before {
  content: '\f04b'; /* FontAwesome play icon */
  font-family: "Font Awesome 5 Free"; /* Ensure you load FontAwesome */
  font-weight: 900;
  font-size: 24px;
}

.btn-icon.pause::before {
  content: '\f04c'; /* FontAwesome pause icon */
}

.surah-selection {
  display: none; /* Hide Surah dropdown initially */
}
.control-btn i {
  pointer-events: none;
}

.control-btn::before,
.control-btn::after {
    content: '';
    display: none;
}

/* Blog Card Styles - Simple and Clean */
.blog-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Blog Content */
.blog-content {
    color: #333;
    font-size: 1.05em;
    line-height: 1.8;
    font-family: 'Arial', sans-serif;
    margin-bottom: 20px;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-content h1 { font-size: 2em; }
.blog-content h2 { font-size: 1.75em; }
.blog-content h3 { font-size: 1.5em; }
.blog-content h4 { font-size: 1.25em; }

.blog-content p {
    margin-bottom: 15px;
}

.blog-content ul,
.blog-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: #667eea;
    text-decoration: none;
}

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

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.blog-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Sujet Bac exams layout - Mobile-first design */
#exams-items {
  margin-top: 20px;
}

.sujet-bac-exam-card {
  padding: 20px;
  margin-bottom: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.sujet-bac-exam-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sujet-bac-exam-card strong {
  color: #333;
  font-size: 1.2em;
  display: block;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.sujet-bac-download-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  background: #4caf50;
  color: white;
}

.sujet-bac-download-btn:hover {
  background: #45a049;
}

/* Desktop layout - two columns (if needed in future) */
@media (min-width: 993px) {
  .sujet-bac-exam-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Blog Meta Information - Centered */
.blog-meta {
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.blog-author-date {
    color: #7f8c8d;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .blog-card {
        padding: 20px;
    }
    
    .blog-content {
        font-size: 1em;
    }
}

/* Quill Editor Customization */
.ql-container {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

.ql-editor {
    min-height: 400px;
}

.ql-toolbar {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
}

.ql-container {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #ddd;
    border-top: none;
}

.ql-snow .ql-stroke {
    stroke: #495057;
}

.ql-snow .ql-fill {
    fill: #495057;
}

.ql-snow .ql-picker-label {
    color: #495057;
}

.ql-snow .ql-picker-options {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Settings Toggle Switches */
.settings-toggle-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.settings-toggle-container:hover {
    border-color: #bdc3c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.settings-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: 0.3s ease;
    border-radius: 34px;
}

.settings-toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle-switch input[type="checkbox"]:checked + .slider {
    background-color: #28a745;
}

.settings-toggle-switch input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px);
}

.settings-toggle-switch input[type="checkbox"]:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

.settings-toggle-switch input[type="checkbox"]:checked:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

/* Mobile Responsive Styles for Settings and 2k26 */
@media screen and (max-width: 768px) {
    /* Settings Toggle Switches - Mobile */
    .settings-toggle-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .settings-toggle-switch {
        width: 50px;
        height: 28px;
    }
    
    .settings-toggle-switch .slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
    }
    
    .settings-toggle-switch input[type="checkbox"]:checked + .slider:before {
        transform: translateX(22px);
    }
    
    /* 2k26 Post Cards - Mobile */
    #postsContainer {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* New post badge styling */
    .new-post-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75em;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
        z-index: 10;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.9;
            transform: scale(1.05);
        }
    }
    
    .post-card {
        padding: 15px !important;
    }
    
    /* Settings Page - Mobile */
    .custom-content-container {
        padding: 15px !important;
    }
    
    /* 2k26 Create Form - Mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Filter dropdowns - Mobile */
    #sectionFilter,
    #matiereFilter {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Search bar - Mobile */
    #searchInput {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Admin tables - Mobile */
    table {
        font-size: 0.85em;
    }
    
    table th,
    table td {
        padding: 8px !important;
    }
    
    /* Buttons - Mobile */
    button,
    .btn,
    a[style*="padding"] {
        min-height: 44px !important; /* Touch target size */
        padding: 12px 20px !important;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .settings-toggle-container label {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .settings-toggle-switch {
        width: 100%;
        max-width: 60px;
    }
    
    .post-card h3 {
        font-size: 1em !important;
    }
    
    .post-card p {
        font-size: 0.85em !important;
    }
    
    /* Login/Register forms - Mobile */
    .custom-content-container form {
        padding: 15px !important;
    }
    
    /* 2k26 filters - Mobile */
    .filter-container {
        flex-direction: column !important;
    }
    
    .filter-select {
        width: 100% !important;
    }
    
    /* Admin tables - Mobile scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Buttons - Touch friendly */
    button[type="submit"],
    .btn,
    a[style*="padding"] {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Admin tables - Mobile responsive */
    table.admin-table,
    .admin-table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    table.admin-table thead,
    .admin-table thead,
    table thead {
        display: none;
    }
    
    table.admin-table tbody,
    .admin-table tbody,
    table tbody {
        display: block;
        width: 100%;
    }
    
    table.admin-table tr,
    .admin-table tr,
    table tr {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    table.admin-table td,
    .admin-table td,
    table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 15px !important;
        border: none !important;
        border-bottom: 1px solid #e0e0e0 !important;
        text-align: left !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 0; /* Allow flex items to shrink */
    }
    
    /* Ensure text content doesn't overflow */
    table.admin-table td > *:not(div):not(form):not(.action-btn),
    .admin-table td > *:not(div):not(form):not(.action-btn) {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Email and long text handling - Mobile only - Allow wrapping inline */
    table.admin-table td[data-label="Email"],
    .admin-table td[data-label="Email"] {
        word-break: break-word !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        overflow: visible !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        line-height: 1.5 !important;
    }
    
    /* Desktop: Email should wrap normally, not break in middle of words */
    @media screen and (min-width: 769px) {
        /* Desktop tables - normal table layout */
        table.admin-table,
        .admin-table {
            display: table !important;
        }
        
        table.admin-table thead,
        .admin-table thead {
            display: table-header-group !important;
        }
        
        table.admin-table tbody,
        .admin-table tbody {
            display: table-row-group !important;
        }
        
        table.admin-table tr,
        .admin-table tr {
            display: table-row !important;
            margin-bottom: 0 !important;
            border: none !important;
            box-shadow: none !important;
        }
        
        table.admin-table td,
        .admin-table td {
            display: table-cell !important;
            padding: 12px !important;
            border: 1px solid #ddd !important;
            text-align: left !important;
            vertical-align: middle !important;
            word-wrap: break-word;
            overflow-wrap: break-word;
            overflow: visible !important;
            text-overflow: clip !important;
        }
        
        table.admin-table td:before,
        .admin-table td:before {
            display: none !important;
        }
        
        table.admin-table td[data-label="Email"],
        .admin-table td[data-label="Email"],
        table td[data-label="Email"] {
            word-break: break-word;
            max-width: 200px !important;
            width: 20% !important;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: normal;
            line-height: 1.4;
        }
        
        /* Ensure table uses fixed layout on desktop */
        @media screen and (min-width: 769px) {
            table.admin-table,
            .admin-table {
                table-layout: fixed !important;
            }
        }
        
        /* Desktop Actions column - ensure proper width */
        table.admin-table td[data-label="Actions"],
        .admin-table td[data-label="Actions"] {
            display: table-cell !important;
            width: auto !important;
            min-width: 200px !important;
            white-space: nowrap !important;
        }
        
        table.admin-table td[data-label="Actions"] > div,
        .admin-table td[data-label="Actions"] > div {
            display: flex;
            flex-wrap: nowrap;
            gap: 5px;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
        }
        
        /* Desktop: Ensure buttons don't get cut off */
        table.admin-table td[data-label="Actions"] .action-btn,
        .admin-table td[data-label="Actions"] .action-btn {
            flex-shrink: 0 !important;
            white-space: nowrap !important;
        }
    }
    
    /* Actions column - allow wrapping */
    table.admin-table td[data-label="Actions"],
    .admin-table td[data-label="Actions"] {
        display: block !important;
    }
    
    table.admin-table td[data-label="Actions"] > div,
    .admin-table td[data-label="Actions"] > div {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }
    
    /* Action buttons - consistent sizing */
    .action-btn {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 6px 12px !important;
        box-sizing: border-box !important;
        min-height: 32px;
        display: inline-block;
    }
    
    table.admin-table td[data-label="Actions"] > *,
    .admin-table td[data-label="Actions"] > * {
        flex: 0 0 auto;
        margin: 0 !important;
    }
    
    table.admin-table td:last-child,
    .admin-table td:last-child,
    table td:last-child {
        border-bottom: none !important;
    }
    
    table.admin-table td:before,
    .admin-table td:before,
    table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 10px;
        flex-shrink: 0;
        min-width: 100px;
    }
    
    table.admin-table td > *,
    .admin-table td > *,
    table td > * {
        flex: 1;
        text-align: right;
        min-width: 0; /* Allow shrinking */
    }
    
    /* Exception for Actions column - don't shrink buttons */
    table.admin-table td[data-label="Actions"] > *,
    .admin-table td[data-label="Actions"] > * {
        flex: 0 0 auto;
        text-align: left;
    }
    
    /* Filter buttons container */
    .filter-buttons-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .filter-buttons-container a {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Blog card footer and actions - Mobile responsive */
    .blog-card-footer {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-card-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
    }
    
    .blog-card-actions form {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    .blog-action-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px;
        vertical-align: middle !important;
        line-height: 1.5 !important;
    }
    
    /* Section card actions */
    .section-card-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
    }
    
    .section-card-actions form {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    .section-action-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px;
        vertical-align: middle !important;
        line-height: 1.5 !important;
    }
    
    /* Mobile: Stack blog card footer vertically */
    @media screen and (max-width: 768px) {
        .blog-card-footer {
            flex-direction: column !important;
            align-items: flex-start !important;
        }
        
        .blog-card-actions {
            width: 100% !important;
            justify-content: flex-start !important;
            flex-wrap: wrap !important;
            flex-direction: row !important;
            align-items: center !important;
        }
        
        .blog-card-actions form {
            display: inline-flex !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .blog-action-btn {
            flex: 0 0 auto !important;
            width: auto !important;
            height: auto !important;
            min-height: 44px !important;
        }
        
        /* Section card actions - mobile */
        .section-card-actions {
            width: 100% !important;
            justify-content: flex-start !important;
            flex-wrap: wrap !important;
            flex-direction: row !important;
            align-items: center !important;
        }
        
        .section-card-actions form {
            display: inline-flex !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .section-action-btn {
            flex: 0 0 auto !important;
            width: auto !important;
            height: auto !important;
            min-height: 44px !important;
        }
    }
    
    /* Admin container fixes - Center containers on mobile */
    .main.container {
        padding: 6rem 10px 2rem 10px !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-height: calc(100vh - 3.5rem) !important;
    }
    
    .custom-content-container {
        padding: 20px 15px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        word-wrap: break-word !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        margin-top: 0 !important;
    }
    
    /* Ensure title is visible */
    .custom-content-container .title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Container centering fix */
    .container {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-inline: auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative !important;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Ensure sidebar doesn't push content on mobile */
    .sidebar {
        transform: translateX(-100%) !important;
    }
    
    .sidebar.show-sidebar {
        transform: translateX(0) !important;
    }
    
    /* Main content should not shift on mobile when sidebar opens */
    .main-pd {
        padding-left: 0 !important;
    }
    
    /* Admin buttons mobile fix */
    .custom-content-container button,
    .custom-content-container a[style*="padding"] {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    /* Admin form inputs mobile fix */
    .custom-content-container input[type="text"],
    .custom-content-container input[type="number"],
    .custom-content-container select {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px !important;
        font-size: 16px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Sidebar toggle button - Mobile fix */
    .header__toggle {
        z-index: 1000 !important;
        position: relative !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .header__toggle i {
        font-size: 1.5rem !important;
        pointer-events: none;
    }
    
    /* Ensure sidebar is accessible on mobile */
    .sidebar {
        z-index: 999 !important;
        transition: transform 0.3s ease !important;
        transform: translateX(-100%) !important;
        left: 0 !important;
    }
    
    .sidebar.show-sidebar {
        transform: translateX(0) !important;
        left: 0 !important;
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .show-sidebar ~ .sidebar-overlay,
    .show-sidebar + .sidebar-overlay {
        display: block;
    }
    
    /* Ensure sidebar toggle button is always accessible */
    .header__toggle {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 999;
        position: relative;
    }
    
    .header__toggle:active {
        opacity: 0.7;
    }
}


