/***************************************************************
 *  GLOBAL VARIABLES & BASE STYLES
 ***************************************************************/

/* -----------------------------------------------------------
   COLOR VARIABLES
   -----------------------------------------------------------
*/
:root {
    /* BRAND COLORS */
    --blue-dark: #323581;
    --blue-slate: #2f70a6;
    --blue-slate-light: #dde0ed;
    --purple: #602fa6;
    --green: #59b155;
    --red: #b30000;
    --orange: #ff921e;
  
    /* NEUTRALS */
    --black: #1c1c1c;
    --dark-gray: #535151;
    --gray: #b0aba1;
    --gray-light: #fafafa;
  
    /* TYPOGRAPHY & SIZING */
    --font-size-base: 1rem;
    --font-size-sm: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
    --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
    --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
    --font-size-xl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
  
    /* MISC */
    --border-radius: 10px;
    --box-shadow: 0 2px 8px rgba(47, 112, 166, 0.3);
  }
  
  /***************************************************************
   *  BASE STYLES
   ***************************************************************/
  body {
    font-family: Arial, sans-serif;
    color: var(--black);
    font-size: var(--font-size-base);
    background-color: var(--gray-light); /* Solid white background */
    margin: 0; /* Remove default browser margin */
  }
  
  /* Basic link styling */
  a {
    color: var(--black);
    text-decoration: none;
  }
  
  /* Headings */
  h1 {
    font-size: var(--font-size-xl);
  }
  h2 {
    font-size: var(--font-size-lg);
  }
  h3 {
    font-size: var(--font-size-md);
  }
  h4 {
    font-size: var(--font-size-sm);
  }
  
  /* Use Georgia for headings; color them blue-dark */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: Georgia, serif;
    color: var(--blue-dark);
  }
  
  /* Horizontal Rule */
  hr {
    color: var(--gray);
  }
  
  /***************************************************************
   *  GENERAL RESET / LIST & LINK DEFAULTS
   ***************************************************************/
  ul,
  li,
  a {
    margin: 0;
    padding-bottom: 0.7rem; /* Extra spacing under list items/links */
    list-style: none; /* Remove bullets */
    text-decoration: none;
  }
  
  /***************************************************************
   *  HEADER & NAVIGATION
   ***************************************************************/
  header {
    background-color: var(--blue-slate-light);
    padding: 1rem;
    position: relative;
  }
  
  /* Site Header Container */
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .site-logo {
    flex-shrink: 0;
  }
  
  header nav {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
  }
  
  /* Navigation List */
  header nav ul {
    display: flex;
    gap: 1.425rem;
    margin: 0;
    padding: 0;
  }
  
  /* Navigation Links */
  header nav ul li a {
    color: var(--black);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
  }
  
  header nav ul li a:hover {
    background-color: var(--blue-slate);
    color: var(--orange);
    transform: translateX(0.5rem);
    border-radius: 4px;
  }
  
  header nav ul li a.logout {
    background-color: var(--orange);
    color: var(--gray-light);
    margin-top: 1rem;
    border-radius: 4px;
  }
  
  /***************************************************************
   *  HAMBURGER MENU (MOBILE NAV)
   ***************************************************************/
  /* Hamburger icon inside a <button> */
  .hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    z-index: 10001;
  }
  
  .hamburger i {
    font-size: 1.6rem;
    color: var(--blue-dark);
  }
  
  /* Show hamburger on small screens */
  @media (max-width: 768px) {
    .site-header {
      position: relative;
    }
  
    .hamburger {
      display: block;
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
    }
  
    header nav {
      display: none;
      position: fixed;
      top: 0;
      right: 0;
      width: 250px;
      height: 100vh;
      background-color: var(--blue-dark);
      padding: 4rem 1rem 1rem;
      z-index: 10000;
    }
  
    header.nav-open nav {
      display: flex;
    }
  
    header nav ul {
      flex-direction: column;
      gap: 0;
      width: 100%;
      padding: 0;
    }
  
    header nav ul li {
      width: 100%;
      padding: 0;
      margin: 0;
    }
  
    header nav ul li a {
      color: var(--gray-light);
      display: block;
      width: 100%;
      padding: 1rem;
      margin: 0;
      border-radius: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      box-sizing: border-box;
    }
  
    header nav ul li a:hover {
      background-color: var(--blue-slate);
      color: var(--orange);
      transform: translateX(0.5rem);
    }
  
    header nav ul li a.logout {
      background-color: var(--orange);
      color: var(--red);
      margin-top: 1rem;
      border-radius: 4px;
    }
  
    header nav ul li a.logout:hover {
      background-color: var(--red);
      color: var(--purple);
      transform: translateX(0.25rem);
    }
  }
  
  /***************************************************************
   *  LOGO STYLES
   ***************************************************************/
  .site-logo img {
    max-width: 140px;
    height: auto; /* Maintain aspect ratio */
  }
  
  @media (min-width: 768px) {
    .site-logo img {
      max-width: 220px;
    }
  }
  
  /***************************************************************
   *  SIDE DRAWER NAV (MOBILE)
   ***************************************************************/
  @media (max-width: 767px) {
    .side-drawer-nav {
      position: fixed;
      top: 0;
      right: 0; /* or left: 0 if you want it to slide from left */
      width: 200px;
      height: 100vh;
      background-color: var(--blue-dark);
      transform: translateX(100%); /* hidden offscreen */
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
      padding-top: 2rem;
      z-index: 9999;
    }
  
    header.nav-open .side-drawer-nav {
      transform: translateX(0);
    }
  
    /* Side drawer nav list */
    .side-drawer-nav ul {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
    }
    .side-drawer-nav ul li a {
      display: block;
      padding: 1rem;
      color: var(--gray-light);
      border-bottom: 1px solid var(--blue-slate);
    }
  }
  
  /***************************************************************
   *  MENU OVERLAY (BACKGROUND DIMMER)
   ***************************************************************/
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 9998; /* behind .side-drawer-nav */
  }
  
  /* Hidden by default; .hidden class = no display */
  .hidden {
    display: none;
  }
  
  /* If header has .nav-open, show the overlay by removing .hidden in JS */
  header.nav-open ~ .menu-overlay {
    display: block;
  }
  
  /* Ensure hamburger is on top of everything */
  .hamburger {
    z-index: 10001;
  }
  
  /***************************************************************
   *  GRID CONTAINER LAYOUT
   ***************************************************************/
  .grid-container {
    display: grid;
    grid-template-areas:
      "hero   hero"
      "content sidebar"
      "footer footer";
    grid-template-columns: 3fr 1fr; /* content area is 3x wider than sidebar */
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    margin: 2rem;
  }
  
  /* Named grid areas */
  .hero {
    grid-area: hero;
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
  }
  .content {
    grid-area: content;
  }
  .sidebar {
    grid-area: sidebar;
  }
  .footer {
    grid-area: footer;
    text-align: center;
  }
  
  /* Author text styling (example) */
  .author_body {
    color: var(--gray);
  }
  
  /***************************************************************
   *  HERO IMAGE
   ***************************************************************/
  .hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
  }
  
  
  
  .hero-content h1 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-xl);
  }
  
  .hero-content p {
    margin: 0;
    font-size: var(--font-size-md);
  }
  
  @media (min-width: 1024px) {
    .hero {
        max-height: 500px;
    }
    
    .hero-image {
        height: 500px;
    }
  }
  
  /* Grid becomes 1-column on smaller screens */
  @media (max-width: 1133px) {
    .grid-container {
      grid-template-areas:
        "hero"
        "content"
        "sidebar"
        "footer";
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto;
      margin: 1rem;
    }
  }
  
  /***************************************************************
   *  IMAGES - RESPONSIVE
   ***************************************************************/
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /***************************************************************
   *  SHOELACE CARD OVERRIDES (EXAMPLE)
   ***************************************************************/
  /* Base card style */
  sl-card::part(base) {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  /***************************************************************
   *  POST PREVIEWS AND MESSAGES
   ***************************************************************/
  .no-posts {
    text-align: center;
    color: var(--dark-gray);
    font-size: var(--font-size-md);
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
  }
  
  .post-meta span {
    color: var(--dark-gray);
    font-size: 0.9rem;
  }
  
  .post-previews sl-card {
    margin-bottom: 2rem;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  }
  
  .post-previews sl-card:hover::part(base) {
    box-shadow: 0 6px 24px rgba(96, 47, 166, 0.25), 0 2px 8px rgba(47, 112, 166, 0.3);
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  }
  
  .post-previews h3 {
    margin: 1rem 0;
    color: var(--blue-dark);
  }
  
  .post-previews p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Use a multi-column layout for previews */
  .post-previews {
    /* Overriding any old flex layout in your code */
    column-count: 2;
    column-gap: 2rem;
    margin: 2rem auto;
    width: 90%;
  }
  
  /* Force each card to stay intact in columns */
  .post-previews sl-card,
  .post-previews .card {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid; /* Avoid splitting card across columns */
  }
  
  /* Adjust column counts for different breakpoints */
  @media (min-width: 450px) {
    .post-previews {
      column-count: 1; /* single column for narrower screens */
    }
  }
  @media (min-width: 1024px) {
    .post-previews {
      column-count: 1;
    }
  }
  @media (min-width: 1400px) {
    .post-previews {
      column-count: 2;
    }
  }
  
  /* Shoelace Card Body Image */
  sl-card::part(body) img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Shoelace Card Base Container */
  sl-card::part(base) {
    display: block; /* block or flex instead of inline-block */
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
  }
  
  /* Shoelace Card Image Slot: Force aspect ratio (16:9) */
  sl-card::part(image) {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    display: block;
    background: #eee;
    border-radius: var(--border-radius);
  }
  sl-card::part(image) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /***************************************************************
   *  NEW POST & EDIT POST FORMS
   ***************************************************************/
  /* Container for new-post form */
  .new-post-container {
    max-width: 700px;
    margin: 2rem auto;
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
  }
  
  /* Form layout */
  .new-post-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
  }
  .new-post-form label span {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .new-post-form input[type="text"],
  .new-post-form textarea,
  .new-post-form select,
  .new-post-form input[type="file"] {
    font-size: 1rem;
    padding: 0.6rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Buttons in the form */
  .new-post-form button {
    background-color: var(--green);
    color: var(--gray-light);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
  }
  .new-post-form button:hover {
    background-color: var(--green);
  }
  
  /* Extra headings in the form */
  .new-post-form h2,
  .new-post-form h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* "Remove" or "Add image" button style override */
  .new-post-form .image-field button {
    background-color: var(--red);
    margin-top: 0.5rem;
  }
  .new-post-form .image-field button:hover {
    background-color: var(--red);
  }
  
  /* Manage-Posts container with a card-like appearance */
  .manage-posts-container {
    max-width: 900px;
    margin: 2rem auto;
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
  }
  .manage-posts-container h1 {
    margin-bottom: 1.5rem;
  }
  .manage-posts-container .error {
    color: var(--red);
    font-weight: bold;
    margin-bottom: 1.5rem;
  }
  
  /***************************************************************
   *  TABLE STYLING
   ***************************************************************/
  .posts-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .posts-table thead th {
    background-color: var(--gray);
    color: var(--black);
    text-align: left;
    padding: 0.8rem;
    font-size: 1rem;
    border-bottom: 2px solid var(--gray);
  }
  .posts-table tbody td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
  }
  
  /***************************************************************
   *  IMAGE PREVIEW SECTIONS
   ***************************************************************/
  .post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .image-caption-pair {
    text-align: center;
    max-width: 300px;
  }
  .image-caption-pair img {
    max-width: 100%;
    border: 1px solid var(--gray);
    border-radius: 5px;
  }
  .image-caption-pair p {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--dark-gray);
  }
  
  #lightbox-overlay {
    position: fixed;       /* stay in the same place even when scrolling */
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* semi-transparent black overlay */
    display: none;         /* hidden by default, toggled by JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;         /* on top of other elements */
  }
  
  .lightbox-content {
    background: var(--blue-slate-light);
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: relative;
    padding: 1rem;
    text-align: center;
  }
  
  #lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  #lightbox-caption {
    margin-top: 0.5rem;
    font-size: 1rem;
  }
  
  #lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: var(--blue-slate-light);
    border: none;
    color: var(--blue-slate);
  }
  
  /***************************************************************
   *  ACTION BUTTONS (EDIT, DELETE, LOGOUT)
   ***************************************************************/
  .actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  
  /* Edit link */
  .edit-link {
    display: inline-block;
    background-color: var(--blue-slate);
    color: var(--gray-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
  }
  .edit-link:hover {
    background-color: var(--blue-slate); /* darker slate */
  }
  
  /* Delete button */
  .delete-btn {
    background-color: var(--red);
    color: var(--gray-light);
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
  }
  .delete-btn:hover {
    background-color: var(--orange);
  }
  
  /* "Logout" link style */
  ul li a.logout {
    color: var();
    background-color: var(--orange);
  }
  ul li a.logout:hover {
    text-decoration: underline;
    color: var(--orange);
  }
  
  #load-more-wrapper {
    text-align: center; /* center elements inside */
    margin-top: 2rem;   /* optional vertical spacing */
  }
  
  .load-more {
    display: inline-block;
    background-color: var(--blue-slate);
    color: var(--gray-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
  
  }
  
  /***************************************************************
   *  PAGINATION
   ***************************************************************/
  .pagination {
    margin-top: 1.5rem;
    text-align: center;
  }
  .pagination .page-link {
    display: inline-block;
    margin: 0 0.2rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--gray-light);
    color: var(--black);
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  .pagination .page-link:hover {
    background-color: var(--blue-slate);
    color: var(--gray-light);
  }
  .pagination .page-link.active {
    background-color: var(--blue-slate);
    color: var(--gray-light);
    font-weight: bold;
    cursor: default;
  }
  
  /***************************************************************
   *  EDIT POST FORM
   ***************************************************************/
  .edit-post-container {
    max-width: 700px;
    margin: 2rem auto;
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
  }
  .edit-post-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
  }
  .edit-post-form label span {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .edit-post-form input[type="text"],
  .edit-post-form textarea,
  .edit-post-form select,
  .edit-post-form input[type="file"] {
    font-size: 1rem;
    padding: 0.6rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .edit-post-form button {
    background-color: var(--green);
    color: var(--gray-light);
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 0.5rem;
  }
  .edit-post-form button:hover {
    background-color: var(--green);
  }
  .edit-post-form h2,
  .edit-post-form h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .edit-post-container .error {
    color: var(--red);
    font-weight: bold;
    margin-bottom: 1.5rem;
  }
  
  /***************************************************************
   *  SIDEBAR
   ***************************************************************/
  aside.sidebar {
    margin-top: 1rem;
    margin-left: 1rem;
  }
  .sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
  }
  .sidebar ul {
    list-style: none;
    padding: 0;
    overflow-wrap: break-word;
  }
  .sidebar ul li {
    margin-bottom: 0.5rem;
  }
  .sidebar ul li a {
    color: var(--purple);
    transition: color 0.3s;
  }
  .sidebar ul li a:hover {
    color: var(--orange);
  }
  
  /***************************************************************
   *  FOOTER
   ***************************************************************/
  footer {
    margin: 4rem;
    text-align: center;
  }
  /* Footer Social Icons */
.footer-icons {
  font-size: 3rem;
  margin: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.footer-icons i {
  color: var(--blue-dark) ;
  fill: var(--blue-dark) ;
  width: 3rem;
  height: 3rem;
  display: inline-block;
  vertical-align: middle;
  transition: color 0.2s, fill 0.2s;
  margin: 0;
  padding: 0;
}

.nostr-icon {
  width: 3.75rem;
  height: 3.75rem;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s ease;
  object-fit: contain;
 
}

.footer-icons a:hover i {
  color: var(--orange) ;
  fill: var(--orange) ;
}

/* .footer-icons a:hover .nostr-icon {
  filter: brightness(0) saturate(100%) invert(67%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(1) contrast(1);
} */
  
  /***************************************************************
   *  LOGIN FORM STYLES
   ***************************************************************/
  .login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--blue-dark);
  }
  
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-group label {
    font-weight: 600;
    color: var(--blue-dark);
  }
  
  .form-group input {
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--blue-slate);
    box-shadow: 0 0 0 2px var(--blue-slate-light);
  }
  
  .login-button {
    background-color: var(--blue-slate);
    color: var(--gray-light);
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .login-button:hover {
    background-color: var(--blue-dark);
  }
  
  .error-message {
    background-color: var(--red);
    color: var(--gray-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  /***************************************************************
   *  ERROR PAGE STYLES
   ***************************************************************/
  .error-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .error-container h1 {
    color: var(--red);
    margin-bottom: 1rem;
  }
  
  .error-container p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: var(--font-size-md);
  }
  
  .back-home {
    display: inline-block;
    background-color: var(--blue-slate);
    color: var(--gray-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
  }
  
  .back-home:hover {
    background-color: var(--blue-dark);
  }

/***************************************************************
 *  ABOUT PAGE STYLES
 ***************************************************************/
.about-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.about-text {
    color: var(--dark-gray);
    width: 100%;
}

.about-text h2 {
    color: var(--blue-dark);
    margin: 1.5rem 0 1rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/***************************************************************
 *  ADMIN DASHBOARD STYLES
 ***************************************************************/
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-button {
    display: inline-block;
    background-color: var(--blue-slate);
    color: var(--gray-light);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.admin-button:hover {
    background-color: var(--blue-dark);
}

.success-message {
    background-color: var(--green);
    color: var(--gray-light);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.posts-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.category-tag {
    display: inline-block;
    background-color: var(--blue-slate-light);
    color: var(--blue-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0.2rem;
}

.inline-form {
    display: inline;
}

.delete-btn.small {
    padding: 0.2rem 0.5rem;
    font-size: 1rem;
}

.category-form {
    margin-bottom: 2rem;
}

.category-form .form-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.category-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--blue-slate-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.manage-posts, .manage-categories {
    margin-top: 3rem;
}

.manage-posts h2, .manage-categories h2 {
    margin-bottom: 1.5rem;
    color: var(--blue-dark);
}

@media (max-width: 768px) {
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-button {
        width: 100%;
        text-align: center;
    }
    
    .category-form .form-group {
        flex-direction: column;
    }
    
    .category-form input,
    .category-form button {
        width: 100%;
    }
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link sl-card {
  cursor: pointer;
}
.card-link:focus sl-card::part(base),
.card-link:hover sl-card::part(base) {
  box-shadow: 0 6px 24px rgba(96, 47, 166, 0.25), 0 2px 8px rgba(47, 112, 166, 0.3);
}

/* Search Box Styles */
.search-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.search-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Shoelace Input Styles */
.search-box sl-input::part(base) {
    border-color: var(--gray);
}

.search-box sl-input::part(base):focus-within {
    border-color: var(--blue-slate);
    box-shadow: 0 0 0 3px rgba(47, 112, 166, 0.1);
}

.search-box sl-button::part(base) {
    width: 100%;
}

@media (max-width: 1133px) {
    .search-box {
        padding: 1rem;
    }
}