/* Custom styles for Wizard404 */

/* Variables */
:root {
  --primary: #990003;
  --secondary: #fcee21;
  --tertiary: #f4ab3a;

  --color-background: #f7f7f7;
  --color-background-soft: #f8f8f8;
  --color-background-mute: #f2f2f2;

  --color-text: #181818;
  --color-text-soft: #222222;
  --color-text-mute: #282828;

  --color-navbar-background: #232323;
  --color-sidebar-background: #232323;

  /* NEW: Variables for navbar search background */
  --navbar-search-background: var(--color-background-soft);
  --navbar-search-background-focus: var(--color-background-soft);

  /* Re-Used Values */
  --nav-height: 4.5em;
  --sidebar-width: 4.5em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #181818;
    --color-background-soft: #222222;
    --color-background-mute: #282828;

    --color-text: #f7f7f7;
    --color-text-soft: #f8f8f8;
    --color-text-mute: #f2f2f2;

    /* Set navbar search background variables for dark mode */
    --navbar-search-background: #333333;
    --navbar-search-background-focus: #444444;
  }

  /* REMOVED specific dark mode overrides for navbar search from here */
  /* .navbar .form-control[type='search'] { ... } */
  /* .navbar .form-control[type='search']:focus { ... } */
}

/* Font definitions */
@font-face {
  font-family: 'Wizard Fancy';
  src: local('Wizard Fancy'),
       url('../fonts/WizardFancy.ttf') format('truetype');
}

/* General styles */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 0.5em);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: calc(var(--sidebar-width) + 1em);
}

@media (max-width: 576px) {
  body {
    margin-left: 0;
  }
}

main {
  flex: 1 0 auto; /* This will push the footer down */
}

footer {
  flex-shrink: 0; /* Prevents the footer from shrinking */
}

/* Navbar customization */
.navbar {
  height: var(--nav-height);
  background-color: var(--color-navbar-background) !important;
}

.navbar-brand {
  font-weight: bold;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  margin-right: 10px;
}

.logo-text {
  font-family: 'Wizard Fancy', sans-serif;
  font-weight: normal;
  font-size: 1em;
}

.navbar-bg-custom {
  background-color: var(--color-navbar-background);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--color-text-mute);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--primary);
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--tertiary);
}

/* Search input customization - Corrected selector type */
.navbar .form-control[type='text'] {
  color: #fff;
  padding: 0.6rem 1rem;
  background-color: var(--navbar-search-background);
  border-color: var(--navbar-search-background);
}

.navbar .form-control[type='text']::placeholder {
  color: rgb(170, 170, 170);
}

.navbar .form-control[type='text']:focus {
  outline: none !important;
  border: 1px solid var(--primary);
  box-shadow: none !important;
  background-color: var(--navbar-search-background-focus);
}

/* Search results dropdown */
.search-container {
  position: relative;
  width: 100%;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.search-results-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #3a3a3a;
  background-color: #2a2a2a;
  transition: all 0.2s ease;
}

.search-results-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.search-results-dropdown .dropdown-item:hover,
.search-results-dropdown .dropdown-item:focus {
  background-color: #333333;
  text-decoration: none;
}

.search-results-dropdown .no-results {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-mute);
}

.search-results-dropdown small {
  font-size: 0.85em;
  color: var(--color-text);
  opacity: 0.9;
}

.search-results-dropdown .text-muted {
  color: var(--color-text) !important;
  opacity: 0.9;
}

/* Animate search results */
.search-results-dropdown .dropdown-item {
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card customization */
.card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  background-color: var(--color-background-soft);
  border: none;
  color: var(--color-text);
}

.card-header {
  font-weight: bold;
  background-color: var(--primary);
  color: white;
}

/* Form customization */
.form-control {
  background-color: var(--color-background-soft);
  border-color: var(--color-background-mute);
  color: var(--color-text);
}

.form-control:focus {
  background-color: var(--color-background-soft);
  border-color: var(--primary);
  color: var(--color-text);
  box-shadow: 0 0 0 0.25rem rgba(184, 13, 17, 0.25);
}

.form-control::placeholder {
  color: var(--color-text-mute);
}

.form-label {
  color: var(--color-text);
}

/* Dropdown customization */
.dropdown-menu {
  background-color: var(--color-background-soft);
  border-color: var(--color-background-mute);
}

.dropdown-item {
  color: var(--color-text);
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--color-background-mute);
  color: var(--primary);
}

.dropdown-divider {
  border-top-color: var(--color-background-mute);
}

/* Alert customization */
.alert {
  background-color: var(--color-background-soft);
  border-color: var(--color-background-mute);
  color: var(--color-text);
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  color: #4caf50;
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #f44336;
}

.alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  border-color: #2196f3;
  color: #2196f3;
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border-color: #ff9800;
  color: #ff9800;
}

/* Jumbotron styling (Bootstrap 5 doesn't have jumbotron) */
.jumbotron {
  background-color: var(--color-background-soft);
  border-radius: 0.3rem;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Button customization */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: #900a0d !important;
  border-color: #900a0d !important;
}

/* Footer customization */
footer {
  background-color: var(--color-background-soft) !important;
}

/* School colors */
.school-fire {
  color: #ff5722;
}

.school-ice {
  color: #2196f3;
}

.school-storm {
  color: #9c27b0;
}

.school-myth {
  color: #ffc107;
}

.school-life {
  color: #4caf50;
}

.school-death {
  color: #607d8b;
}

.school-balance {
  color: #ff9800;
}

/* Badge customization */
.badge {
  font-weight: normal;
  padding: 0.4em 0.6em;
}

/* Table customization */
.table {
  background-color: var(--color-background);
  border: 1px solid var(--color-background-mute);
}

.table thead {
  background-color: var(--color-background);
}

.table thead th {
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 0.75rem;
  border-bottom: 2px solid var(--secondary);
}

.table td {
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-background-mute);
}

.table tbody tr:hover td {
  background-color: var(--color-background-mute);
}

.table .badge {
  color: #fff;
}

/* Search result highlighting */
.highlight {
  background-color: var(--tertiary);
  padding: 0.1em 0.2em;
  border-radius: 0.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jumbotron {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .logo-text {
    display: none;
    width: 0;
  }
}

.site-announcement {
    position: relative;
}

.site-announcement .container {
    padding-left: 55px;  /* Increased padding for text */
    padding-right: 45px;  /* Make room for the close button */
    position: relative;  /* For proper icon positioning */
}

/* Move the ::before to the container instead of the announcement */
.site-announcement .container::before {
    content: '';
    position: absolute;
    left: 15px;  /* Moved icon more to the right */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('/game-image/GUI/Art/Art_Chat_System.dds');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

.site-announcement .btn-close {
    filter: brightness(0) invert(1);  /* Make the close button white */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;  /* Ensure it's above other elements */
}

/* Item rarity colors */
.rarity-common {
    color: #808080;  /* Gray */
}

.rarity-uncommon {
    color: #00ff00;  /* Green */
}

.rarity-rare {
    color: #0070dd;  /* Blue */
}

.rarity-epic {
    color: #a335ee;  /* Purple */
}

.rarity-legendary {
    color: #ff8000;  /* Orange */
}

.rarity-mythical {
    color: #e6cc80;  /* Gold */
}

/* Search results styling */
.search-results-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    white-space: normal;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.search-results-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.search-results-dropdown small {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Animate search results */
.search-results-dropdown .dropdown-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* EasyMDE Toolbar Icon Styling for Dark Theme */
.editor-toolbar > * {
    color: #adb5bd; /* Light grey color for icons */
}

.editor-toolbar > *.active, 
.editor-toolbar > *:hover {
    background: #495057; /* Darker background on hover/active */
    color: #f8f9fa; /* White color on hover/active */
}

.editor-toolbar i.separator {
    border-left: 1px solid #495057;
    border-right: 1px solid #495057;
}

/* Adjust preview style if needed */
.editor-preview {
    background-color: #f8f9fa; /* Light background for preview */
    color: #212529; /* Dark text for preview */
}

/* Reposition EasyMDE Status Bar */
.EasyMDEContainer {
    position: relative; /* Establish positioning context */
}

.editor-statusbar {
    position: absolute;
    top: 8px; /* Adjust vertical position as needed */
    right: 10px; /* Adjust horizontal position as needed */
    color: #fff; /* White text color */
    background: none; /* Remove default background if any */
    border: none; /* Remove default border if any */
    padding: 0; /* Remove default padding if any */
    font-size: 0.8em; /* Slightly smaller font */
}

/* Add some right padding to the toolbar to prevent overlap */
.editor-toolbar {
    padding-right: 120px; /* Adjust based on status bar width */
}

/* Developer Mode Display */
.developer-info {
    display: none; /* Hide by default */
}

body.developer-mode-enabled .developer-info {
    display: block; /* Show when developer mode is enabled */
}

/* Search Bar Enhancements */
.navbar-search .input-group {
    border-radius: 0.375rem; /* Keep radius */
    transition: outline 0.2s ease-in-out; /* Add transition for outline */
}

/* NEW: Apply outline to the group when the input inside is focused */
.navbar-search .input-group:focus-within {
    outline: 1px solid var(--primary);
    outline-offset: 2px;
}

.navbar-search .search-input {
    border-top-right-radius: 0 !important;    /* Remove radius where button meets */
    border-bottom-right-radius: 0 !important; 
    border-right: none; /* Prevent double border */
}

.navbar-search .search-button {
    border-top-left-radius: 0 !important;    /* Remove radius where input meets */
    border-bottom-left-radius: 0 !important; 
    display: flex; /* Align icon/spinner vertically */
    align-items: center; /* Align icon/spinner vertically */
    justify-content: center; /* Center icon/spinner horizontally */
    z-index: 2; /* Ensure button is clickable above input */
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.navbar-search .search-button:hover {
    background-color: #900a0d;
    border-color: #900a0d;
}

/* Ensure spinner inside button is aligned */
.search-button .search-spinner {
    margin: 0; 
}

/* Crown Prices Display */
.crown-price-display {
    display: none; /* Hide by default */
}

body.crown-prices-enabled .crown-price-display {
    display: block; /* Show when crown prices are enabled */
}

/* User Profile Dropdown Enhancements */
.navbar .dropdown .nav-link.dropdown-toggle {
  transition: all 0.2s ease;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.navbar .dropdown .nav-link.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end {
  border: 1px solid var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
  background-color: #222;
  margin-top: 0.5rem;
}

/* Staggered animation for dropdown items */
.navbar .dropdown .dropdown-menu.dropdown-menu-end .dropdown-item {
  opacity: 0;
  transform: translateY(-10px);
  animation: dropdownSlideIn 0.35s ease forwards;
  color: #fff;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

@keyframes dropdownSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end .dropdown-item img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(1.2);
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end .dropdown-item:hover {
  background-color: var(--primary);
  transform: translateX(5px);
}

/* Each item has its own different animation delay */
.navbar .dropdown .dropdown-menu.dropdown-menu-end li:nth-child(1) .dropdown-item {
  animation-delay: 0.05s;
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end li:nth-child(2) .dropdown-item {
  animation-delay: 0.15s;
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end li:nth-child(3) .dropdown-item {
  animation-delay: 0.25s;
}

.navbar .dropdown .dropdown-menu.dropdown-menu-end li:nth-child(5) .dropdown-item {
  animation-delay: 0.35s;
}

/* Divider animation */
.navbar .dropdown .dropdown-menu.dropdown-menu-end .dropdown-divider {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Sidebar Styles */
.sidebar li {
  list-style-type: none;
}

.sidebar a {
  text-decoration: none;
}

/* Targets everything bigger than mobile */
@media (min-width: 577px) {
  .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1000;
  }

  .sidebar .icons {
      background-color: var(--color-sidebar-background);
      margin-top: calc(var(--nav-height));
      border-top: 0.2em solid #292929;
      height: 100vh;
      padding: 0.3rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  .sidebar .icon {
      height: 80px;
      width: 80px;
      border-radius: 10%;
      display: flex;
      justify-content: center;
  }

  .sidebar .icon .active {
      border-radius: 10%;
  }

  .modal-dialog-slideout {
      min-height: 100%;
      margin: 0 auto 0 0;
      background: #fff;
  }

  .modal.fade .modal-dialog.modal-dialog-slideout {
      -webkit-transform: translate(-100%, 0);
      transform: translate(-100%, 0);
  }

  .modal.fade.show .modal-dialog.modal-dialog-slideout {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
      flex-flow: column;
  }

  .modal-dialog-slideout .modal-content {
      border: 0;
  }

  .modal-content,
  .modal-dialog-slideout {
      background-color: var(--color-sidebar-background);
  }

  .modal-header {
      border-bottom: 0;
  }
}

/* Targets Mobile */
@media (max-width: 576px) {
  .sidebar {
      position: fixed;
      bottom: -16px;
      left: 0;
      right: 0;
      z-index: 9999;
  }

  .sidebar .icons {
      background-color: var(--color-sidebar-background);
      border-top: 0.2em solid #292929;
      width: 100%;
      padding: 0;
      display: flex;
  }

  .sidebar .icon {
      height: 80px;
      width: 80px;
      display: flex;
      justify-content: center;
      flex: 1;
  }

  .modal-dialog {
      border-top: 0.2em solid #292929;
      position: fixed;
      top: auto;
      right: auto;
      left: auto;
      bottom: calc(var(--sidebar-width) - 0.5em);
  }

  .modal-body {
      padding: 0 !important;
      margin: 0 !important;
  }

  .modal-backdrop {
      display: none !important;
  }

  .modal-dialog.modal-dialog-slideout {
      width: 100%;
  }

  .modal-dialog-slideout {
      min-height: 10%;
      margin: auto;
  }

  .modal.fade .modal-dialog.modal-dialog-slideout {
      -webkit-transform: translate(0, 100%);
      transform: translate(0, 100%);
  }

  .modal.fade.show .modal-dialog.modal-dialog-slideout {
      -webkit-transform: translate(0, 0);
      transform: translate(0, 0);
      flex-flow: column;
  }

  .modal-dialog-slideout .modal-content {
      border: 0;
  }

  .modal-content,
  .modal-dialog-slideout {
      background-color: var(--color-sidebar-background);
  }

  .modal-header {
      border-bottom: 0;
  }
}

.icons-more {
  padding: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.sidebar .icon:hover {
  background-color: var(--primary);
}

.sidebar .icon .active:hover {
  background-color: var(--primary);
}

.sidebar .icon .active:active {
  background-color: var(--primary);
}

.sidebar .icon:active {
  background-color: var(--primary);
}

.sidebar .icon span {
  color: rgb(211, 211, 211);
}

.sidebar .icon .active {
  background-color: var(--primary);
  width: 100%;
}

.sidebar .icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Increase image size */
.sidebar .icon-link img {
  width: 46px; /* Increased from previous size */
  height: 46px; /* Increased from previous size */
  object-fit: contain; /* Ensure image maintains aspect ratio */
}

.sidebar .hidden {
  display: none;
}

/* ===== Base Styles ===== */

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Opacity Helpers */
.opacity-90 {
  opacity: 0.9;
}

.opacity-80 {
  opacity: 0.8;
}

/* Badge Styling */
.badge {
  padding: 6px 10px;
  font-weight: 500;
  border-radius: 6px;
}

/* Card Base Styling */
.card {
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
} */

.card-header {
  background-color: transparent;
  border-bottom: none;
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--color-background);
  position: relative;
  z-index: 1;
}

.hero-image {
  max-height: 300px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* ===== Section Titles ===== */
.section-title {
  position: relative;
  padding-bottom: 12px;
  font-weight: bold;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--tertiary));
}

.section-title.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Navigation Cards ===== */
.nav-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
  border-bottom: 3px solid var(--primary);
}

.nav-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.nav-icon {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===== Article Cards ===== */
.article-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  border-left: 3px solid var(--primary);
}

.card-img-container {
  height: 200px;
  overflow: hidden;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .card-img-container img {
  transform: scale(1.05);
}

/* ===== Update Card ===== */
.update-card {
  background-color: var(--color-background-mute);
  transition: all 0.3s ease;
  border-left: 3px solid var(--primary);
}

.update-card:hover {
  background-color: var(--color-background-soft);
}

.update-icon {
  font-size: 1.5rem;
}

/* ===== Feature Icons ===== */
.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
}

.feature-icon-bg {
  width: 60px;
  height: 60px;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.about-card:hover .feature-icon-bg {
  transform: scale(1.1);
}

/* ===== Team Member Icons ===== */
.team-icon, .donator-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ===== Social Buttons ===== */
.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-background-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.3s ease;
  border: none;
}

.btn-social:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===== Timeline ===== */
.timeline-container {
  position: relative;
  margin: 0 auto;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  padding: 20px 30px;
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: -38px;
  top: 28px;
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 3px rgba(153, 0, 3, 0.2);
}

.timeline-date {
  position: absolute;
  left: -120px;
  top: 25px;
  font-weight: bold;
  color: var(--primary);
}

.timeline-content {
  padding: 15px;
  background-color: var(--color-background-soft);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-content h4 {
  margin-top: 0;
  color: var(--primary);
}

/* ===== Community Section ===== */
.community-section, .join-section {
  border-radius: 12px;
  border-top: 3px solid var(--primary);
  background-color: var(--color-background-mute);
  transition: all 0.3s ease;
}

.community-section:hover, .join-section:hover {
  background-color: var(--color-background-soft);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 991.98px) {
  .hero {
    text-align: center;
  }
  
  .hero .btn-group {
    justify-content: center;
  }
  
  .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .timeline-date {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 10px;
    display: block;
  }
  
  .timeline-dot {
    left: -29px;
  }
}

/* Login and Registration Styling */
.auth-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  /* animation: pulse 2s infinite; */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}