@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");
@import "https://unpkg.com/open-props/easings.min.css";

/* Light Mode Variables */
:root {
   --color-gray-100: hsl(0, 0%, 100%);
   --color-gray-200: hsl(220, 20%, 97%);
   --color-gray-300: hsl(220, 15%, 93%);
   --color-gray-400: hsl(220, 12%, 80%);
   --color-gray-500: hsl(220, 12%, 60%);

   --color-dark-100: hsl(220, 20%, 20%);
   --color-dark-200: hsl(220, 20%, 30%);
   --color-dark-300: hsl(220, 20%, 40%);
   --color-dark-400: hsl(220, 20%, 50%);
   --color-dark-500: hsl(220, 20%, 60%);

   --color-blue-100: hsl(217, 100%, 70%);
   --color-blue-200: hsl(217, 100%, 65%);
   --color-blue-300: hsl(217, 100%, 60%);
   --color-blue-400: hsl(217, 100%, 50%);
   --color-blue-500: hsl(217, 100%, 45%);

   --color-green-100: hsl(145, 75%, 97%);
   --color-green-300-dark: hsl(145, 55%, 70%);
   --color-green-500: hsl(145, 63%, 40%);

   --shadow-small: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
      rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
   --shadow-medium: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
      rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
   --shadow-large: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
      rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
   --shadow-extra: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
      rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;

   --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
   --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

   --icon-fill: var(--color-dark-100);
   --icon-fill-hover: var(--color-blue-400);

   /* Custom variables for consistency */
   --body-bg-color: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
   --container-bg-color: var(--color-gray-100);
   --border-color: var(--color-gray-300);
   --text-color: var(--color-dark-100);
   --text-color-light: var(--color-gray-500);
   --title-color: var(--color-dark-100);
}

*,
*::before,
*::after {
   padding: 0;
   margin: 0;
   box-sizing: border-box;
   list-style: none;
   list-style-type: none;
   text-decoration: none;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   text-rendering: optimizeLegibility;
}

html {
   font-size: 100%;
   font-display: swap;
   box-sizing: inherit;
   scroll-behavior: smooth;
   height: -webkit-fill-available;
}

body {
   font-family: "Roboto", ui-sans-serif, sans-serif;
   font-size: clamp(1rem, 2vw, 1.125rem);
   font-weight: 400;
   font-display: swap;
   line-height: 1.5;
   color: var(--color-dark-100);
   background: var(--body-bg-color);
   transition: all 300ms ease;
}

main,
section {
   overflow: visible;
}

a,
button {
   cursor: pointer;
   user-select: none;
   white-space: nowrap;
   border: none;
   outline: none;
   color: inherit;
   background: unset;
}

h1,
h2,
h3,
h4,
h5 {
   font-family: inherit;
   line-height: 1.25;
   text-wrap: balance;
   word-wrap: break-word;
}

p,
li {
   font-family: inherit;
   line-height: 1.5;
   text-wrap: pretty;
   word-wrap: break-word;
}

img,
svg,
picture {
   max-width: 100%;
   height: auto;
   vertical-align: middle;
   object-fit: cover;
   background-size: cover;
   background-repeat: no-repeat;
   image-rendering: -webkit-optimize-contrast;
   image-rendering: -moz-crisp-edges;
   image-rendering: crisp-edges;
}

.section {
   padding-block: 6rem 3rem;
}

.container {
   max-width: 90rem;
   height: auto;
   margin-inline: auto;
   padding-inline: 1.5rem;
}

.center {
   text-align: center;
   vertical-align: middle;
}

.truncate {
   display: -webkit-box;
   line-clamp: 2;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.title {
   font-family: inherit;
   line-height: 1.25;
}

.title-small {
   font-size: clamp(1.75rem, 4vw, 2.35rem);
   font-weight: 700;
}

.title-medium {
   font-size: clamp(2.15rem, 5vw, 3.15rem);
   font-weight: 700;
}

.title-large {
   font-size: clamp(2rem, 6vw, 4rem);
   font-weight: 700;
   color: var(--color-blue-400);
}

.text {
   font-family: inherit;
   line-height: 1.5;
}

.text-small {
   font-size: 0.85rem;
}

.text-base {
   font-size: 1rem;
}

.text-medium {
   font-size: 1.15rem;
}

.text-large {
   font-size: 1.3rem;
}

.text-upper {
   text-transform: uppercase;
}

.text-lower {
   text-transform: lowercase;
}

.text-capital {
   text-transform: capitalize;
}

.font-light {
   font-weight: 300;
}

.font-normal {
   font-weight: 400;
}

.font-medium {
   font-weight: 500;
}

.font-semi {
   font-weight: 600;
}

.font-bold {
   font-weight: 700;
}

.btn {
   display: inline-flex;
   font-family: inherit;
   font-size: 1rem;
   font-weight: 500;
   line-height: 1.5;
   align-items: center;
   white-space: nowrap;
   text-align: center;
   justify-content: center;
   vertical-align: middle;
   column-gap: 0.35rem;
   padding-block: 0.5rem;
   padding-inline: 1.25rem;
   border-radius: 3rem;
   transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
   color: var(--color-gray-100);
   background-color: var(--color-blue-300);
   box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
   background-color: var(--color-blue-400);
   transform: translateY(-3px);
   box-shadow: 0 8px 15px -5px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
   color: var(--color-blue-400);
   background-color: transparent;
   border: 2px solid var(--color-blue-300);
   box-shadow: none;
   padding-block: calc(0.5rem - 2px);
   padding-inline: calc(1.25rem - 2px);
}

.btn-secondary:hover {
   background-color: var(--color-blue-100);
   border-color: var(--color-blue-400);
   color: var(--color-blue-500);
   transform: translateY(-3px);
   box-shadow: 0 4px 10px -2px rgba(59, 130, 246, 0.2);
}


/* Header section */
.header {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 100;
   width: 100%;
   height: auto;
   margin: 0 auto;
   background: transparent;
   transition: all 0.35s ease;
}

.header.on-scroll {
   background: linear-gradient(135deg, rgba(229, 239, 255, 0.90) 0%, rgba(212, 228, 255, 0.90) 100%);
   box-shadow: var(--shadow-medium);
   border-bottom: 1px solid var(--color-gray-300);
   backdrop-filter: blur(6px);
}

.navbar {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   column-gap: 1rem;
   width: 100%;
   height: 4rem;
   margin-inline: auto;
   max-width: 100%;
}

.brand {
   font-family: "Roboto", sans-serif;
   font-size: 2.25rem;
   font-weight: 800;
   line-height: 1.5;
   text-transform: none;
   color: var(--color-blue-400);
   transition: color 0.25s ease;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.brand img {
   height: 40px;
   width: auto;
}

.menu-link {
   font-family: inherit;
   font-size: 1rem;
   font-weight: 500;
   line-height: 1.5;
   text-transform: uppercase;
   color: var(--color-dark-100);
   transition: color 0.25s ease;
}

.menu-link:hover {
   color: var(--color-blue-400);
}

.menu-header {
   display: none;
}
.sidebar-auth-container {
      display: none;
   }

/* Hide the sidebar search container by default (on desktop) */
.sidebar-search-container {
   display: none;
}

@media screen and (max-width: 767px) {
   .nav-toggle-btn {
      display: block;
      position: relative;
      width: 44px;
      height: 44px;
      cursor: pointer;
      z-index: 70;
      order: 3; /* Move to the right side */
      border-radius: 50%;
      transition: background-color 0.3s ease;
      background: transparent;
      border: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      padding: 10px;
   }

   .nav-toggle-btn:hover {
      background-color: rgba(0, 0, 0, 0.05);
   }

   /* Hamburger Lines */
   .hamburger-line {
      display: block;
      width: 24px;
      height: 2px;
      background-color: var(--color-blue-400);
      border-radius: 2px;
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
   }

   /* Checked State - Transform to X */
   body.menu-open .nav-toggle-btn .hamburger-line:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
   }

   body.menu-open .nav-toggle-btn .hamburger-line:nth-child(2) {
      opacity: 0;
   }

   body.menu-open .nav-toggle-btn .hamburger-line:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
   }

   /* Hover State */
   

   /* Menu Container - Vertical Sidebar */
   .menu {
      position: fixed;
      top: 0rem; /* Position below header */
      left: 0;
      width: 80%;
      max-width: 300px;
      height: calc(100vh - 4rem);
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      flex-direction: column;
      padding: 1rem 0 2rem 0;
      overflow-y: auto;
      visibility: hidden;
      transform: translateX(-100%);
      transition: transform 0.3s ease, visibility 0.3s;
      z-index: 60;
      box-shadow: var(--shadow-large);
      border-right: 1px solid var(--color-gray-300);
   }

   body.menu-open .menu {
      transform: translateX(0);
      visibility: visible;
   }

   .menu-header {
      display: block;
      padding: 0 1.5rem 1.5rem 1.5rem;
      margin-bottom: 1rem;
      border-bottom: 1px solid var(--color-gray-300);
   }

   .menu-brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--color-blue-400);
      text-decoration: none;
      text-transform: none;
      font-family: "Roboto", sans-serif;
   }

   /* Overlay */
   .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 50;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
   }

   body.menu-open .overlay {
      opacity: 1;
      visibility: visible;
   }

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

   .menu-link {
      display: block;
      width: 100%;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid var(--color-gray-300);
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s, transform 0.3s;
   }

   body.menu-open .menu .menu-link {
      opacity: 1;
      transform: translateY(0);
   }

   /* Staggered Animation */
   body.menu-open .menu .menu-link:nth-child(1) { transition-delay: 0.1s; }
   body.menu-open .menu .menu-link:nth-child(2) { transition-delay: 0.2s; }
   body.menu-open .menu .menu-link:nth-child(3) { transition-delay: 0.3s; }
   body.menu-open .menu .menu-link:nth-child(4) { transition-delay: 0.4s; }
   body.menu-open .menu .menu-link:nth-child(5) { transition-delay: 0.5s; }

   .sidebar-auth-container {
      padding: 1rem 1.5rem;
      margin-top: 1rem;
      border-top: 1px solid var(--color-gray-300);
      display: block;
   }

   .sidebar-auth-container .btn {
      display: block;
      width: 100%;
      text-align: center;
      margin-bottom: 0.75rem;
   }

   .sidebar-auth-container .btn:last-child {
      margin-bottom: 0;
   }

   .sidebar-search-container {
      display: block; /* Make it visible in the mobile sidebar */
      padding: 0 1.5rem 1rem;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 1rem;
   }

   .sidebar-search-form {
      display: flex;
      position: relative;
   }

   .sidebar-search-form input {
      width: 100%;
      padding: 0.75rem 1rem;
      padding-right: 3rem;
      border-radius: 2rem;
      border: 1px solid var(--border-color);
      background: var(--body-bg-color);
      color: var(--text-color);
      font-size: 0.9rem;
   }

   .sidebar-search-form button {
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      background: var(--color-blue-400);
      color: white;
      border-radius: 50%;
      font-size: 1.2rem;
   }
}

@media screen and (min-width: 48rem) {
   .menu {
      position: relative;
      top: initial;
      width: auto;
      padding: 0;
      margin-left: auto;
      background: unset;
      box-shadow: unset;
      transition: unset;
      opacity: 1;
      visibility: visible;
   }

   .menu-inner {
      display: flex;
      flex-direction: row;
      column-gap: 2rem;
   }

   .menu-link {
      text-transform: capitalize;
      border-bottom: none;
      padding: 0;
   }

   .menu-theme-item {
      display: none;
   }

   .search-bar {
      background-color: var(--container-bg-color);
      border: 1px solid var(--border-color);
      padding: 0;
      width: 200px;
      height: 44px;
      transition: all 0.3s ease;
      justify-content: flex-end;
      margin-left: auto;
      position: relative;
      border-radius: 22px;
   }

   .search-bar:hover {
      border-color: var(--color-blue-300);
   }

   .search-bar input {
      width: 100%;
      opacity: 1;
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      border-radius: 22px;
      border: none;
      background-color: transparent;
      padding: 0 50px 0 20px;
      font-size: 0.9rem;
      color: var(--text-color);
      transition: none;
      cursor: text;
   }

   .search-bar button {
      background: transparent;
      color: var(--color-dark-100);
      font-size: 1.25rem;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 2;
   }

   .search-bar button:hover {
      color: var(--color-blue-400);
   }
}

/* Banner section */
.banner-section {
   background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
   margin-top: 4rem;
}

.banner-column {
   position: relative;
   display: grid;
   align-items: center;
   row-gap: 3rem;
   column-gap: 2rem;
}

.banner-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   align-items: center;
}

@media screen and (min-width: 48rem) {
   .banner-column {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      justify-content: center;
      margin-top: 4rem;
   }
}

@media screen and (min-width: 64rem) {
   .banner-column {
      grid-template-columns: 1fr max-content;
      column-gap: 4rem;
   }
}

.banner-image {
   display: block;
   max-width: 16rem;
   object-fit: cover;
   justify-self: center;
   animation: fadeIn 1.0s ease-out;
   aspect-ratio: 359 / 450;
   height: auto; /* Let aspect-ratio and width determine height */
}

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

.banner-image:hover img {
   transform: scale(1.05);
}

@keyframes float {
   0% {
      transform: translateY(0px);
   }
   50% {
      transform: translateY(-20px);
   }
   100% {
      transform: translateY(0px);
   }
}

@media screen and (min-width: 48rem) {
   .banner-image {
      max-width: 20rem;
      order: 1;
   }
}

@media screen and (min-width: 64rem) {
   .banner-image {
      max-width: 30rem;
      margin-right: 5rem;
   }
}

.banner-inner {
   display: flex;
   flex-direction: column;
   align-items: baseline;
   row-gap: 1.5rem;
}

.blog-section {
   padding: 3rem 0;
   background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
}

.blog-section h2,
.about-section h2,
.contact-section h2 {
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 3rem;
   color: var(--color-dark-100);
}

.blog-section h2 {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 1rem;
}
.banner-link {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50%;
    transform: translateY(-50%);
    right: 0rem;
    align-items: center;
    gap: 1rem;
    list-style: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}
@media screen and (min-width: 64rem) {
   .banner-link {
      visibility: visible;
      opacity: 1;
   }
}

.banner-link li {
    position: relative;
    display: flex;
    align-items: center;
}

/* Tooltip on the left side */
.banner-link li::after {
    position: absolute;
    content: attr(data-tooltip);
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    background: var(--bg, #070707);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip arrow */
.banner-link li::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--bg, #070707);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 11;
}

.banner-link li:hover::after,
.banner-link li:hover::before {
    opacity: 1;
    visibility: visible;
    margin-right: 25px;
}

.banner-link li:hover::before {
    margin-right: 15px;
}

.banner-link a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
    color: var(--color-dark-100);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100%;
    text-decoration: none;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-link a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-in-out;
}

.banner-link a::after {
    position: absolute;
    content: "";
    inset: 100% 0 0;
    background: var(--bg, #070707);
    pointer-events: none;
    transition: inset 0.3s ease-in-out;
}

.banner-link a:hover,
.banner-link a:focus-visible {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-link a:hover::after,
.banner-link a:focus-visible::after {
    inset-block-start: 0;
}

.view-all-link {
   font-size: 1rem;
   font-weight: 500;
   color: var(--color-blue-400);
   text-decoration: none;
   transition: color 0.25s ease;
   white-space: nowrap;
   margin-top: 2rem;
}

.view-all-link:hover {
   color: var(--color-blue-300);
}

.posts-grid {
   display: grid;
   background: transparent;
   grid-template-columns: repeat(auto-fill, minmax(275px, 2fr));
   gap: 1.5rem;
   animation: fadeInUp 0.6s ease 0.2s both;
   margin-bottom: 4rem;
}

.post-card {
   background: #fff;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
   transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.4s var(--ease-out-expo);
   position: relative;
   cursor: pointer;
   border: 1px solid rgba(0, 0, 0, 0.05);
   display: flex;
   flex-direction: column;
   height: 100%;
   opacity: 0;
   transform: translateY(30px);
}

.post-card.in-view {
   opacity: 1;
   transform: translateY(0);
}

.post-card:hover {
   transform: translateY(-8px) scale(1.01);
   box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
   border-color: rgba(0, 0, 0, 0.05);
}

.post-card .post-image,
.post-featured-image,
.gallery-slider {
    aspect-ratio: 16 / 10;
    background-color: var(--color-gray-200);
    height: auto;
}

.post-card .post-image img,
.post-featured-image img,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-image {
   width: 100%;
   height: 220px;
   overflow: hidden;
   position: relative;
   background: linear-gradient(135deg, #e8f1ff 0%, #d4e4ff 100%);
}

.post-card .post-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
}

.post-card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.4s ease, opacity 0.5s ease 0.2s; /* Delay opacity for card fade-in */
   opacity: 0;
}

.post-card:hover img {
   transform: scale(1.08);
}

.post-card.in-view img {
   opacity: 1;
}

.post-image-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   top: 0;
   background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
   padding: 20px;
   color: white;
   display: flex;
   align-items: flex-end;
   justify-content: flex-start;
}

.post-image-overlay h3 {
   margin: 0;
   font-size: 1.2rem;
   font-weight: 700;
   color: #fff;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
   line-height: 1.3;
}

.post-body {
   padding: 24px;
   display: flex;
   flex-direction: column;
   flex-grow: 1;
}

.post-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 8px;
}

.post-header h3 {
   font-size: 1.3rem;
   margin: 0;
   color: #000000;
   font-weight: 700;
   line-height: 1.3;
   flex-grow: 1;
}

.post-card h3 {
   font-size: 1.25rem;
   margin-bottom: 10px;
   color: var(--color-dark-100);
   font-weight: 700;
   line-height: 1.4;
}

.post-card .post-date {
   color: var(--color-gray-500);
   font-size: 0.85rem;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 5px;
}

.post-card p {
   color: var(--color-dark-300);
   margin-bottom: 20px;
   line-height: 1.6;
   font-size: 0.95rem;
   flex-grow: 1;
}

.post-card a {
   display: inline-flex;
   width: auto;
   align-items: center;
   gap: 6px;
   background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
   color: #fff;
   text-decoration: none;
   padding: 10px 16px;
   border-radius: 8px;
   font-weight: 600;
   font-size: 0.9rem;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
   margin-top: auto;
}

.read-more {
   display: inline-flex;
   width: auto;
   align-items: center;
   gap: 6px;
   background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
   color: #fff;
   text-decoration: none;
   padding: 10px 16px;
   border-radius: 8px;
   font-weight: 600;
   font-size: 0.9rem;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.post-card a::before,
.read-more::before {
   content: "";
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: rgba(255, 255, 255, 0.2);
   transition: 0.4s;
   z-index: -1;
}

.post-card a:hover {
   background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
   transform: translateY(-2px);
}

.post-card a:hover::before,
.read-more:hover::before {
   left: 100%;
}

.read-more:hover {
   background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
   transform: translateY(-2px);
}

.post-excerpt {
   color: #4b5563;
   margin-bottom: 15px;
   line-height: 1.5;
   font-size: 0.95rem;
}

/* Features Section */
.features-section {
   padding: 4rem 0;
   background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
   position: relative;
   z-index: 1;
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
}

.feature-card {
   padding: 2.5rem;
   border-radius: 24px;
   background: linear-gradient(145deg, #ffffff, #f5f7fa);
   text-align: center;
   transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
   box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.307);
   opacity: 0;
   animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
   position: relative;
   overflow: hidden;
}

.feature-card::before {
   content: '';
   position: absolute;
   top: 0; left: 0; right: 0; bottom: 0;
   border-radius: 24px; 
   border: 2px solid transparent;
   background: linear-gradient(45deg, var(--color-blue-300), var(--color-blue-500)) border-box;
   -webkit-mask:
      linear-gradient(#fff 0 0) padding-box, 
      linear-gradient(#fff 0 0);
   -webkit-mask-composite: destination-out;
   mask-composite: exclude;
   opacity: 0;
   transition: opacity 0.4s ease;
}

.feature-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06);
   border-color: var(--color-blue-200);
}

.feature-card:hover::before {
   opacity: 1;
}

/* Staggered Animation for Features */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-icon {
   font-size: 3rem;
   color: var(--color-blue-400);
   margin-bottom: 1.5rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 80px;
   height: 80px;
   border-radius: 50%;
   background: linear-gradient(145deg, var(--color-gray-200), #ffffff);
   box-shadow: var(--shadow-small);
   transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover .feature-icon {
   transform: translateY(-8px) scale(1.05);
   color: #fff;
   background: var(--color-blue-300);
   box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Footer */
.site-footer {
   background: var(--color-gray-200);
   color: var(--color-dark-300);
   padding: 4rem 0 2rem;
   border-top: 2px solid var(--color-blue-300);
}

.footer-top {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 2.5rem;
   padding-bottom: 2.5rem;
   border-bottom: 2px solid var(--color-blue-300);
   margin-bottom: 2rem;
   margin-top: -2rem;
}

@media (max-width: 640px) {
   .footer-top {
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem 1rem;
   }
   .footer-about,
   .footer-social {
      grid-column: 1 / -1;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
   }
}

.footer-about .footer-brand {
   font-family: "Roboto", sans-serif;
   font-size: 2rem;
   font-weight: 800;
   color: var(--color-blue-400);
   display: block;
   margin-bottom: 1rem;
   text-decoration: none;
}

.footer-about p {
   font-size: 0.95rem;
   line-height: 1.6;
   max-width: 300px;
}

.footer-links-group h4,
.footer-social h4 {
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--color-dark-100);
   margin-bottom: 1.25rem;
   position: relative;
   padding-bottom: 0.75rem;
}

.footer-links-group h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--color-blue-400);
    border-radius: 2px;
}

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

.footer-links-group li {
   margin-bottom: 0.5rem;
}

.footer-links-group a {
   color: var(--color-dark-300);
   text-decoration: none;
   transition: color 0.3s ease, transform 0.3s ease;
   display: inline-block;
}

.footer-links-group a:hover {
   color: var(--color-blue-400);
   transform: translateX(5px);
}
body.dark-mode .footer-bottom {
   color: white;
}
body.dark-mode .footer-brand {
   color: white;
}

.social-icons {
   display: flex;
   gap: 1rem;
}

.social-icons a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background-color: #fff;
   color: var(--color-dark-100);
   font-size: 1.25rem;
   border: 1px solid rgba(0, 0, 0, 0.1);
   text-decoration: none;
   outline: none;
   overflow: hidden;
   transition: all 0.3s ease-in-out;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
   position: relative;
}

.social-icons a i {
   position: relative;
   z-index: 1;
   transition: color 0.3s ease-in-out;
}

.social-icons a::after {
   position: absolute;
   content: "";
   inset: 100% 0 0;
   background: var(--bg, #070707);
   pointer-events: none;
   transition: inset 0.3s ease-in-out;
}

.social-icons a:hover {
   color: #fff;
   transform: translateY(-5px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icons a:hover::after {
   inset-block-start: 0;
}

.footer-bottom {
   text-align: center;
   font-size: 0.9rem;
   color: #000;
}

/* Terms Section */
.terms-section {
   padding-block: 4rem 2rem;
   background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #e6f0ff 100%);
}

.terms-header {
   margin-bottom: 3rem;
   text-align: center;
   max-width: 800px;
   margin-inline: auto;
}

.terms-header p {
   display: inline-block;
   background: var(--color-blue-100);
   color: var(--color-blue-500);
   padding: 0.5rem 1rem;
   border-radius: 2rem;
   font-weight: 500;
   font-size: 0.9rem;
   margin-top: 1rem;
}

@media (min-width: 768px) {
   .terms-section {
      padding-block: 6rem 4rem;
   }
}

.terms-content {
   max-width: 800px;
   margin: 0 auto;
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(10px);
   padding: 2rem;
   border-radius: 1.5rem;
   box-shadow: var(--shadow-large);
   border: 1px solid rgba(255, 255, 255, 0.5);
   animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

@media (min-width: 768px) {
   .terms-content {
      padding: 3rem;
   }
}

.terms-block {
   margin-bottom: 2.5rem;
   padding-bottom: 2rem;
   border-bottom: 1px solid var(--color-gray-300);
}

.terms-block:last-child {
   margin-bottom: 0;
   padding-bottom: 0;
   border-bottom: none;
}

.terms-block h2 {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--color-blue-400);
   margin-bottom: 1rem;
}

.terms-block p {
   margin-bottom: 1rem;
   color: var(--color-dark-200);
   line-height: 1.7;
}

.terms-block ul {
   list-style-type: disc;
   padding-left: 1.5rem;
   margin-bottom: 1rem;
}

.terms-block li {
   margin-bottom: 0.5rem;
   color: var(--color-dark-200);
   line-height: 1.6;
}

.terms-block a {
   color: var(--color-blue-400);
   text-decoration: none;
   font-weight: 500;
   transition: color 0.2s;
}

.terms-block a:hover {
   color: var(--color-blue-500);
   text-decoration: underline;
}

/* About Section */
.about-section {
   padding-block: 4rem 2rem;
   background: linear-gradient(135deg, #ffffff 0%,#ece6ff 40%, #ffffff 100%);
}

.about-content {
   display: flex;
   flex-direction: column-reverse;
   gap: 3rem;
   align-items: center;
}

@media (min-width: 768px) {
   .about-section {
      padding-block: 6rem 4rem;
   }
   .about-content {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 4rem;
   }
}

.about-text h1 {
   margin-bottom: 1rem;
   text-align: center;
   font-size: clamp(2rem, 5vw, 3rem);
}

.about-text .text-medium {
   margin-bottom: 2rem;
   font-weight: 500;
   color: var(--color-blue-400);
   text-align: center;
   text-decoration: underline;
}

.about-text h3 {
   margin-top: 2.5rem;
   margin-bottom: 1rem;
   color: var(--color-blue-400);
   font-size: 1.5rem;
   text-align: center;
}
.about-text p {
   margin-bottom: 1.5rem;
   font-size: 1.1rem;
   text-align: center;
}

.about-image img {
   max-width: 380px;
   width: 100%;
   margin-inline: auto;
   display: block;
   transition: transform 0.3s ease;
}

.about-image img:hover {
   transform: scale(1.05);
}

.about-section .about-image {
   position: relative;
}

@media (min-width: 768px) {
   .about-section .about-image {
      position: -webkit-sticky; /* For Safari */
      position: sticky;
      top: 6rem; /* Adjust based on header height (4rem) + some margin */
      align-self: flex-start;
   }
}

/* Contact Section */
.contact-section {
   padding-block: 4rem 2rem;
   background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
}

.contact-content {
   display: grid;
   grid-template-columns: 1fr;
   gap: 3rem;
   align-items: flex-start;
}

@media (min-width: 768px) {
   .contact-section {
      padding-block: 6rem 4rem;
   }
}

@media (min-width: 992px) {
   .contact-content {
      grid-template-columns: 1fr 2fr;
      gap: 4rem;
   }
}

.contact-content .form-container {
   max-width: 100%;
   width: 100%;
}

.contact-image {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: top;
   gap: 0;
}
.contact-image img {
   max-width: 450px;
   width: 100%;
   transition: transform 0.3s ease;
}

.contact-image img:hover {
   transform: scale(1.05);
}

.contact-socials {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 1rem;
   list-style: none;
   margin-top: 2rem;
}

.contact-socials li {
    position: relative;
}

/* Tooltip on the top */
.contact-socials li::after {
    position: absolute;
    content: attr(data-tooltip);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    background: var(--bg, #070707);
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-socials li::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 2px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--bg, #070707);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 11;
}

.contact-socials li:hover::after,
.contact-socials li:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.contact-socials a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    font-size: 2.5rem;
    color: var(--color-dark-100);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100%;
    text-decoration: none;
    outline: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-socials a i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-in-out;
}

.contact-socials a::after {
    position: absolute;
    content: "";
    inset: 100% 0 0;
    background: var(--bg, #070707);
    pointer-events: none;
    transition: inset 0.3s ease-in-out;
}

.contact-socials a:hover,
.contact-socials a:focus-visible {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-socials a:hover::after,
.contact-socials a:focus-visible::after {
    inset-block-start: 0;
}

/* Animations */
@keyframes fadeInDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

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

@keyframes slideUp {
   from {
      transform: translateY(100%);
   }
   to {
      transform: translateY(0);
   }
}

@keyframes bounce {
   0%, 100% {
      transform: translateY(0);
   }
   50% {
      transform: translateY(-10px);
   }
}

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

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Post Detail Page Styles */
.post-detail-section {
   padding: 80px 20px;
   background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
   min-height: calc(100vh - 200px);
}

.post-detail-container {
   max-width: 1000px;
   margin: 0 auto;
}

.post-featured-image {
   width: 100%;
   height: 350px;
   margin-bottom: 2rem;
   border-radius: 8px;
   overflow: hidden;
   box-shadow: var(--shadow-large);
}

.post-featured-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
}

.back-btn {
   background: var(--color-blue-300);
   border: none;
   padding: 10px 20px;
   border-radius: 4px;
   cursor: pointer;
   color: white;
   font-weight: 600;
   margin-bottom: 2rem;
   transition: background 0.3s;
}

.back-btn:hover {
   background: var(--color-blue-400);
}

.post-detail h1 {
   font-size: 3rem;
   color: var(--color-blue-400);
   margin-bottom: 1rem;
   line-height: 1.3;
   animation: fadeInDown 0.8s var(--ease-out-expo);
   text-align: center;
}

.post-meta-date {
   color: var(--color-gray-500);
   font-size: 1rem;
   margin-bottom: 2rem;
   padding-bottom: 1rem;
   border-bottom: 2px solid var(--color-blue-300);
   animation: fadeIn 0.8s var(--ease-out-expo) 0.2s both;
}

.post-content {
   font-size: 1.1rem;
   line-height: 1.8;
   color: var(--color-dark-100);
   animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
   white-space: pre-wrap;
}

.post-content p {
   margin-bottom: 1.5rem;
}

.post-content h3 {
   color: var(--color-blue-300);
   margin-top: 2rem;
   margin-bottom: 1rem;
   font-size: 1.3rem;
}

.post-content ul,
.post-content ol {
   margin-left: 2rem;
   margin-bottom: 1.5rem;
}

.post-content li {
   margin-bottom: 0.5rem;
}

.post-content code {
   background: var(--color-gray-200);
   padding: 2px 6px;
   border-radius: 3px;
   color: var(--color-blue-400);
   font-family: 'Courier New', monospace;
}

.post-navigation {
   display: flex;
   gap: 1rem;
   justify-content: space-between;
   margin-top: 4rem;
   padding-top: 2rem;
   border-top: 2px solid var(--color-blue-300);
}

.nav-post-btn {
   flex: 1;
   padding: 12px 20px;
   background-color: var(--color-blue-400);
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.3s ease;
}

.nav-post-btn:hover {
   background-color: var(--color-blue-300);
   transform: translateY(-2px);
   box-shadow: var(--shadow-medium);
}

.nav-post-btn:active {
   animation: bounce 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
   .nav-links {
      gap: 1rem;
   }

   .hero-content h1 {
      font-size: 2rem;
   }

   .hero-content p {
      font-size: 1.2rem;
   }

   .posts-grid {
      grid-template-columns: 1fr;
   }
   .post-detail h1 {
      font-size: 1.8rem;
   }

   .post-content {
      font-size: 1rem;
   }

   .post-navigation {
      flex-direction: column;
   }

   .nav-post-btn {
      width: 100%;
   }
}


/* Account Menu Styles */
.account-menu {
   position: relative;
   margin-left: 1rem;
}

.account-icon-btn {
   background: transparent;
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.account-icon-btn:hover {
   background-color: var(--color-gray-200);
}

.account-icon-btn:focus-visible {
    outline: none;
    background-color: var(--color-gray-200);
    box-shadow: 0 0 0 3px var(--color-blue-200);
}

.account-icon-btn.active {
    background-color: var(--color-gray-200);
    box-shadow: 0 0 0 3px var(--color-blue-300);
}

.header-profile-picture {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   object-fit: cover;
   border: 2px solid var(--color-blue-300);
   transition: all 0.3s ease;
   box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
   .account-dropdown {
      right: 0;
      left: auto;
      min-width: 200px;
   }
}

.account-icon-btn:hover .header-profile-picture {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.account-dropdown {
   position: absolute;
   top: calc(100% + 0.75rem);
   right: 0;
   background: var(--container-bg-color);
   border-radius: 12px;
   box-shadow: var(--shadow-large);
   min-width: 260px;
   z-index: 9999;
   overflow: hidden;
   border: 1px solid var(--border-color);
   opacity: 0;
   transform: translateY(-10px) scale(0.98);
   visibility: hidden;
   transition: opacity 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo), visibility 0.2s;
   transform-origin: top right;
}

.account-dropdown.show {
   opacity: 1;
   transform: translateY(0) scale(1);
   visibility: visible;
}

.account-dropdown-header {
   padding: 1rem 1.25rem;
   background: var(--body-bg-color);
   border-bottom: 1px solid var(--border-color);
}

.account-info-mini {
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 0.75rem;
}

.dropdown-profile-picture {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   object-fit: cover;
   border: 2px solid var(--color-blue-400);
}

.account-info-mini > div {
   display: flex;
   flex-direction: column;
   gap: 0.25rem;
}

.account-info-mini strong {
   color: var(--title-color);
   font-size: 1rem;
   font-weight: 600;
}

.account-info-mini span {
   color: var(--text-color-light);
   font-size: 0.85rem;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 160px;
}

.account-dropdown-body {
   padding: 0.5rem;
}

.dropdown-item {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   padding: 0.6rem 0.8rem;
   color: var(--text-color);
   text-decoration: none;
   transition: all 0.2s ease;
   font-size: 0.9rem;
   border-radius: 6px;
}

.dropdown-item:hover {
   background: var(--color-blue-100);
   color: var(--color-blue-500);
   transform: translateX(4px);
}

.dropdown-item:hover i {
   color: var(--color-blue-500);
}

.dropdown-divider {
   height: 1px;
   background-color: var(--border-color);
   margin: 0.5rem;
}

.dropdown-item-logout:hover {
   background-color: #fee2e2;
   color: #b91c1c;
}

.dropdown-item-logout:hover i {
   color: #b91c1c;
}

.dropdown-item i {
   font-size: 1.2rem;
   color: var(--color-blue-400);
}

/* Recent Posts List Styles */
.recent-posts-list ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.recent-posts-list li {
   padding: 12px 0;
   border-bottom: 1px solid var(--color-gray-300);
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.recent-posts-list li:last-child {
   border-bottom: none;
}

.recent-post-link {
   color: var(--color-dark-100);
   text-decoration: none;
   font-weight: 500;
   transition: color 0.25s ease;
   flex-grow: 1;
}

.recent-post-link:hover {
   color: var(--color-blue-400);
}

.recent-post-date {
   color: var(--color-gray-500);
   font-size: 0.85rem;
   font-weight: 400;
   margin-left: 10px;
   white-space: nowrap;
}

/* Recent Post Images */
.recent-post-image {
   width: 60px;
   height: 60px;
   object-fit: cover;
   border-radius: 8px;
   margin-right: 12px;
   flex-shrink: 0;
}

.recent-post-content {
   flex: 1;
   min-width: 0;
}
/* Skeleton Loader Styles */
:root {
    --skeleton-bg: #e2e8f0;
    --skeleton-bg-pulse: #f1f5f9;
}

body.dark-mode {
    --skeleton-bg: #334155;
    --skeleton-bg-pulse: #475569;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    background: var(--container-bg-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

body.dark-mode .skeleton-card {
    background: var(--color-gray-200);
    border-color: var(--color-gray-300);
}

.skeleton-image {
    height: 220px;
    background: var(--skeleton-bg);
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-body {
    padding: 1.5rem;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: var(--skeleton-bg);
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 16px;
    background: var(--skeleton-bg);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text:last-child {
    width: 60%;
}

@keyframes lstep {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  33% {
    transform: translateY(-15px) translate(32px) rotate(35deg);
  }
  66% {
    transform: translateY(0) translate(25px) rotate(-25deg);
  }
  100% {
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes rstep {
  0% {
    transform: translateY(0) translate(0px) rotate(-5deg);
  }
  33% {
    transform: translateY(-10px) translate(30px) rotate(35deg);
  }
  66% {
    transform: translateY(0) translate(20px) rotate(-25deg);
  }
  100% {
    transform: translateY(0) translate(0px) rotate(-5deg);
  }
}

#gnd {
  translate: -140px 0;
  rotate: 10deg;
  z-index: -1;
  filter: blur(0.5px) drop-shadow(1px 3px 5px #000000);
  opacity: 0.25;
  animation: scroll 5s infinite linear;
}

@keyframes scroll {
  0% {
    transform: translateY(25px) translate(50px);
    opacity: 0;
  }
  33% {
    opacity: 0.25;
  }
  66% {
    opacity: 0.25;
  }
  to {
    transform: translateY(-50px) translate(-100px);
    opacity: 0;
  }
}

/* Dark Mode Styles */
body.dark-mode {
   --color-gray-100: #0f172a;
   --color-gray-200: #1e293b;
   --color-gray-300: #334155;
   --color-gray-400: #475569;
   --color-gray-500: #94a3b8;
   
   --color-dark-100: #f8fafc;
   --color-dark-200: #f1f5f9;
   --color-dark-300: #cbd5e1;
   
   --icon-fill: #ffffff;
   --icon-fill-hover: var(--color-blue-300);
   background: #0f172a;

   /* Dark Mode Custom Variables */
   --body-bg-color: #0f172a;
   --container-bg-color: var(--color-gray-200);
   --border-color: var(--color-gray-300);
   --text-color: var(--color-dark-100);
   --text-color-light: var(--color-gray-500);
   --title-color: var(--color-dark-100);
   color: var(--color-dark-100);
}

body.dark-mode .header {
   background: var(--color-gray-100);
}

body.dark-mode .header.on-scroll {
   background: rgba(15, 23, 42, 0.95);
   backdrop-filter: blur(6px);
   border-bottom: 1px solid var(--color-gray-300);
   box-shadow: var(--shadow-medium);
}

body.dark-mode .brand {
   color: #ffffff;
}

body.dark-mode .menu-brand {
   color: #ffffff;
}

body.dark-mode .hamburger-line {
   background-color: #ffffff;
}

body.dark-mode .menu-link:hover {
   color: var(--color-blue-300);
   text-shadow: 0 0 8px rgba(147, 197, 253, 0.3);
}

body.dark-mode .menu {
   background: var(--color-gray-100);
}

body.dark-mode .theme-toggle:hover,
body.dark-mode .account-icon-btn:hover {
   background-color: rgba(255, 255, 255, 0.1);
   color: var(--color-blue-300);
}

@media screen and (max-width: 767px) {
   body.dark-mode .menu-link {
      border-color: var(--color-gray-300);
   }
   body.dark-mode .menu {
      background: rgba(15, 23, 42, 0.85);
   }

   body.dark-mode .sidebar-auth-container {
      border-top-color: var(--color-gray-300);
   }

   body.dark-mode .sidebar-search-container {
      border-bottom-color: var(--color-gray-300);
   }

   body.dark-mode .sidebar-search-form input {
      background: var(--color-gray-100);
      border-color: var(--color-gray-400);
   }
   body.dark-mode .sidebar-search-form input:focus {
      background: var(--color-gray-100);
   }

   body.dark-mode .account-dropdown-header {
      background: var(--color-gray-100);
      border-bottom-color: var(--color-gray-300);
   }

   body.dark-mode .dropdown-item:hover {
      background: var(--color-gray-300);
      color: var(--color-blue-300);
   }

   body.dark-mode .dropdown-item:hover i {
      color: var(--color-blue-300);
   }

   body.dark-mode .dropdown-item-logout:hover {
      background-color: #3f2121;
      color: #fca5a5;
   }

   body.dark-mode .dropdown-item-logout:hover i {
      color: #fca5a5;
   }

   body.dark-mode .dropdown-divider {
      background-color: var(--color-gray-300);
   }
}
body.dark-mode .post-card,
body.dark-mode .feature-card,
body.dark-mode .no-results,
body.dark-mode .account-dropdown,
body.dark-mode .recent-post-item {
   background: var(--color-gray-200);
   border-color: var(--color-gray-300);
}

body.dark-mode .post-card .post-image {
  background: var(--color-gray-300);
}

body.dark-mode .post-card .post-image::after {
  /* A more subtle shimmer for dark mode */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

body.dark-mode .post-card:hover,
body.dark-mode .feature-card:hover,
body.dark-mode .recent-post-item:hover {
   border-color: var(--color-blue-400);
   box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .feature-icon {
   background: linear-gradient(145deg, var(--color-gray-200), var(--color-gray-300));
   box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-mode .feature-card:hover .feature-icon {
   background: var(--color-blue-400);
   box-shadow: 0 10px 20px -5px rgba(96, 165, 250, 0.3);
}
body.dark-mode .search-bar:hover {
   background-color: var(--color-gray-300);
}

body.dark-mode .search-bar.active {
   background-color: var(--color-gray-300);
   border-color: var(--color-gray-400);
}

body.dark-mode .search-bar {
   background: var(--color-gray-200);
   border-color: var(--color-gray-300);
}

body.dark-mode .search-bar input {
   color: var(--color-dark-100);
   background: transparent;
}

body.dark-mode .post-detail-section,
body.dark-mode .blog-section,
body.dark-mode .posts-grid,
body.dark-mode .features-section,
body.dark-mode .terms-section,
body.dark-mode .about-section,
body.dark-mode .banner-section,
body.dark-mode .contact-section {
   background: transparent;
}

body.dark-mode .slider-btn {
   background: rgba(15, 23, 42, 0.6);
   color: #ffffff;
   border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .slider-btn:hover {
   background: rgba(15, 23, 42, 0.9);
   color: var(--color-blue-400);
}

/* Theme Toggle Button (New SVG) */
.theme-toggle {
   background: transparent;
   border: none;
   cursor: pointer;
   width: 2.5rem;
   height: 2.5rem;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   margin-left: 0.5rem;
   touch-action: manipulation;
   -webkit-tap-highlight-color: transparent;
   outline-offset: 5px;
   transition: background-color 0.3s ease;
}

.sun-and-moon > :is(.moon, .sun, .sun-beams) {
  transform-origin: center;
}

.sun-and-moon > :is(.moon, .sun) {
  fill: var(--icon-fill);
}

.theme-toggle:hover {
   background-color: var(--color-gray-200);
}

.theme-toggle:is(:hover, :focus-visible) > .sun-and-moon > :is(.moon, .sun) {
  fill: var(--icon-fill-hover);
}

.sun-and-moon > .sun-beams {
  stroke: var(--icon-fill);
  stroke-width: 2px;
}

.theme-toggle:is(:hover, :focus-visible) .sun-and-moon > .sun-beams {
  stroke: var(--icon-fill-hover);
}

[data-theme="dark"] .sun-and-moon > .sun {
  transform: scale(1.75);
}

[data-theme="dark"] .sun-and-moon > .sun-beams {
  opacity: 0;
}

[data-theme="dark"] .sun-and-moon > .moon > circle {
  transform: translateX(-7px);
}

@supports (cx: 1) {
  [data-theme="dark"] .sun-and-moon > .moon > circle {
    cx: 17;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sun-and-moon > .sun {
    transition: transform .5s var(--ease-elastic-3);
  }

  .sun-and-moon > .sun-beams {
    transition: transform .5s var(--ease-elastic-4), opacity .5s var(--ease-3);
  }

  .sun-and-moon .moon > circle {
    transition: transform .25s var(--ease-out-5);
  }

  @supports (cx: 1) {
    .sun-and-moon .moon > circle {
      transition: cx .25s var(--ease-out-5);
    }
  }

  [data-theme="dark"] .sun-and-moon > .sun {
    transition-timing-function: var(--ease-3);
    transition-duration: .25s;
    transform: scale(1.75);
  }

  [data-theme="dark"] .sun-and-moon > .sun-beams {
    transition-duration: .15s;
    transform: rotateZ(-25deg);
  }

  [data-theme="dark"] .sun-and-moon > .moon > circle {
    transition-duration: .5s;
    transition-delay: .25s;
  }
}

body.dark-mode #gnd path[fill="#000000"] {
   fill: var(--color-dark-300);
}

/* Dark Mode Terms Overrides */
body.dark-mode .terms-content {
   background: var(--color-gray-200);
   border-color: var(--color-gray-300);
}

body.dark-mode .terms-header p {
   background: rgba(59, 130, 246, 0.2);
   color: var(--color-blue-300);
}

body.dark-mode .terms-block p,
body.dark-mode .terms-block li {
   color: var(--color-dark-300);
}

/* Form Styles (Add/Edit Post) */
.form-section {
   padding: 80px 20px;
   background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
   min-height: calc(100vh - 200px);
}

.form-container {
   max-width: 1000px;
   margin: 0 auto;
   background: #fff;
   padding: 2.5rem;
   border-radius: 16px;
   box-shadow: var(--shadow-large);
}

.form-header {
   margin-bottom: 2rem;
   text-align: center;
}

.form-header h2 {
   color: var(--color-blue-400);
   font-size: 2rem;
   font-weight: 700;
}

.form-group {
   margin-bottom: 1.5rem;
   border-radius: 8px
}

.form-group label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--color-dark-100);
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid var(--color-gray-300);
   border-radius: 8px;
   font-family: inherit;
   font-size: 1rem;
   transition: all 0.3s ease;
   background: var(--color-gray-200);
   color: var(--color-dark-100);
   border: 1px solid var(--color-blue-300);
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--color-blue-400);
   background: #fff;
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
   width: 100%;
   padding: 0.75rem 1rem;
   background: var(--color-blue-400);
   color: white;
   border: none;
   border-radius: 8px;
   font-weight: 600;
   font-size: 1.1rem;
   cursor: pointer;
   transition: all 0.3s ease;
   margin-top: 0.8rem;
}

.submit-btn:hover {
   background: var(--color-blue-300);
   transform: translateY(-2px);
   box-shadow: var(--shadow-medium);
}

/* Dark Mode Form Overrides */
body.dark-mode .form-section { background: transparent; }
body.dark-mode .form-container { background: var(--color-gray-200); border: 1px solid var(--color-gray-300); }
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background: var(--color-gray-100); border-color: var(--color-gray-400); }
body.dark-mode .form-group input:focus, body.dark-mode .form-group textarea:focus { border-color: var(--color-blue-400); background: var(--color-gray-100); }

/* Gallery Slider Styles */
.gallery-slider {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-dark-100);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--color-blue-400);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

/* Mobile Header Improvements */
@media (max-width: 768px) {
   .navbar {
      column-gap: 0;
   }
   .brand {
      font-size: 1.75rem;
      margin-right: auto;
   }
   .brand img {
      display: none;
   }
   
   /* Remove margin from auth buttons and account menu on mobile to close the gap */
   #authButtons,
   .account-menu {
      margin-right: 1rem !important;
      width: 30px;
      height: 30px;
      margin-bottom: 5px;
   }

   .search-bar {
      display: none;
   }
}

@media screen and (max-width: 767px) {
   .theme-toggle {
      display: none;
   }
   
   body.dark-mode .search-bar button {
      color: var(--color-dark-100);
   }
   
   body.dark-mode .search-bar input {
      background: rgba(15, 23, 42, 0.95);
      border-color: var(--color-gray-400);
   }

   /* Sidebar Theme Toggle Switch */
   .sidebar-toggle-wrapper {
      position: relative;
   }

   .sidebar-theme-input {
      width: 0;
      height: 0;
      visibility: hidden;
      position: absolute;
   }

   .sidebar-theme-label {
      width: 60px;
      height: 26px;
      position: relative;
      display: block;
      background: #ebebeb;
      border-radius: 26px;
      box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.4), inset 0px -2px 5px rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: all 0.3s ease;
   }
   
   .sidebar-theme-label:after {
      content: "";
      width: 20px;
      height: 20px;
      position: absolute;
      top: 3px;
      left: 3px;
      background: linear-gradient(180deg, #ffcc89, #d8860b);
      border-radius: 50%;
      box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
      transition: 0.3s;
   }

   .sidebar-theme-label svg {
      position: absolute;
      width: 14px;
      top: 6px;
      z-index: 100;
      transition: 0.3s;
   }

   .sidebar-theme-label svg.sun { left: 6px; fill: #fff; }
   .sidebar-theme-label svg.moon { left: 40px; fill: #7e7e7e; }

   .sidebar-theme-input:checked + .sidebar-theme-label {
      background: #242424;
   }

   .sidebar-theme-input:checked + .sidebar-theme-label:after {
      left: 57px;
      transform: translateX(-100%);
      background: linear-gradient(180deg, #777, #3a3a3a);
   }
   
   .sidebar-theme-input:checked + .sidebar-theme-label svg.sun { fill: #7e7e7e; }
   .sidebar-theme-input:checked + .sidebar-theme-label svg.moon { fill: #fff; }
   }

/* Lightbox Styles */
.lightbox {
   display: none;
   position: fixed;
   z-index: 100000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.9);
   justify-content: center;
   align-items: center;
   backdrop-filter: blur(5px);
}

.lightbox-content {
   max-width: 90%;
   max-height: 90vh;
   object-fit: contain;
   animation: zoomIn 0.3s ease;
   border-radius: 4px;
   box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

@keyframes zoomIn {
   from {transform: scale(0.9); opacity: 0;}
   to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
   position: absolute;
   top: 20px;
   right: 30px;
   color: #fff;
   font-size: 40px;
   font-weight: bold;
   cursor: pointer;
   z-index: 100001;
   line-height: 1;
   transition: color 0.3s;
}

.close-lightbox:hover {
   color: var(--color-blue-400);
}

.lightbox-nav {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.15);
   backdrop-filter: blur(5px);
   -webkit-backdrop-filter: blur(5px);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: white;
   font-size: 2rem;
   width: 3.5rem;
   height: 3.5rem;
   cursor: pointer;
   padding: 0;
   border-radius: 50%;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: 100002;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   opacity: 75%;

}
.lightbox-nav:hover {
   background: rgba(255, 255, 255, 0.3);
   transform: translateY(-50%) scale(1.1);
   box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
.lightbox-nav:active {
   transform: translateY(-50%) scale(0.95);
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-caption {
   position: absolute;
   bottom: 20px;
   left: 0;
   width: 100%;
   text-align: center;
   color: white;
   font-size: 1rem;
   z-index: 100002;
   text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
   .post-featured-image,
   .gallery-slider {
      height: 220px;
   }
}

/* Mobile improvements for post cards */
.post-card {
   -webkit-tap-highlight-color: transparent; /* Remove grey tap highlight */
   transition: transform 0.1s ease;
}
.post-card:active {
   transform: scale(0.98); /* Press effect for tactile feedback */
}
@media (max-width: 768px) {
   .post-card {
      /* Prevent text selection while scrolling on mobile */
      user-select: none;
      -webkit-user-select: none;
   }
   .banner-image {
      display: block;
      max-width: 100%; /* Larger size for mobile */
      margin-bottom: 0;
      animation: none;
      box-shadow: none;
   }
   .banner-image:active img {
      transform: scale(1.05); /* Add a press effect on tap */
   }
   .banner-column {
      row-gap: 1.5rem;
   }
   .banner-inner {
      align-items: center;
      text-align: center;
   }
   .banner-section {
      background: var(--color-gray-200);
      padding-top: 2rem;
   }
}

.banner-inner h1 { animation-delay: 0.1s; }
.banner-inner p { animation-delay: 0.2s; }
.banner-inner button { animation-delay: 0.3s; }
 
/* Floating Action Button (Social Toggle) */
.fab-container {
    position: fixed;
    bottom: 7rem; /* Position above scroll-to-top */
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Hide FAB on desktop, where banner-link is used */
@media (min-width: 64rem) {
    .fab-container {
        display: none;
    }
}
 
.fab-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-blue-400);
    color: var(--color-gray-100);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-large);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 2;
}

.fab-toggle:hover {
    background: var(--color-blue-300);
    transform: rotate(90deg);
}

.fab-toggle i {
    transition: transform 0.3s ease;
}

.fab-container.active .fab-toggle i {
    transform: rotate(45deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    list-style: none;
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-gray-100);
    color: var(--color-blue-400);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

.fab-container.active .fab-options {
    visibility: visible;
}

.fab-container.active .fab-options .fab-option {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for options */
.fab-container.active .fab-options .fab-option:nth-child(1) { transition-delay: 0.2s; }
.fab-container.active .fab-options .fab-option:nth-child(2) { transition-delay: 0.1s; }
.fab-container.active .fab-options .fab-option:nth-child(3) { transition-delay: 0s; }


.fab-option:hover {
    background: var(--color-blue-400);
    color: var(--color-gray-100);
    transform: translateY(-3px) scale(1.05);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 2.25rem;
    color: var(--color-gray-100);
    background-color: var(--color-blue-400);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--shadow-large);
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-blue-300);
    box-shadow: 0 12px 20px -5px rgba(59, 130, 246, 0.5);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dark Mode Overrides */
body.dark-mode .scroll-to-top {
    color: var(--color-dark-100);
    background-color: var(--color-blue-400);
}
body.dark-mode .banner-link a {
    background-color: var(--color-gray-200);
    color: #ffffff;
    border-color: var(--color-gray-300);
}
body.dark-mode .contact-socials a {
    background-color: var(--color-gray-200);
    color: #ffffff;
    border-color: var(--color-gray-300);
}

body.dark-mode .contact-socials a:hover,
body.dark-mode .contact-socials a:focus-visible {
    color: #fff;
}

body.dark-mode .scroll-to-top:hover {
    background-color: var(--color-blue-300);
    color: #fff;
}
body.dark-mode .social-icons a{
   color: #3c3c3c;
}
body.dark-mode .social-icons a:hover,
body.dark-mode .social-icons a:focus-visible {
    color: #fff;
}

/* Auth Pages */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #d4e4ff 100%);
}

.auth-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-large);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--color-blue-400);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-dark-300);
}

.auth-footer a {
    color: var(--color-blue-400);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

body.dark-mode .auth-section {
    background: transparent;
}

body.dark-mode .auth-card {
    background: var(--color-gray-200);
    border-color: var(--color-gray-300);
}

/* Ad Styles */
.sticky-ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--container-bg-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999; /* අනෙක් දේවලට උඩින් පෙනීමට */
    text-align: center;
    padding: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.close-ad {
    position: absolute;
    top: -25px;
    right: 10px;
    background: #333;
    color: #fff;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
}
.mobile-ad { display: none; }
.desktop-ad { display: block; }
@media screen and (max-width: 767px) {
    .desktop-ad { display: none; }
    .mobile-ad { display: block; }
}
.my-native-ad {
    width: 100%;      
    max-width: 1080px;  
    margin: 3rem auto; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--container-bg-color, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
}
.ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--border-color, #e2e8f0);
    color: var(--text-color-light, #64748b);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-bottom-right-radius: 12px;
    font-weight: 500;
    z-index: 10;
}
@media screen and (max-width: 768px) {
    .my-native-ad {
        padding: 0.75rem;
        margin: 2rem auto 6rem auto;
        width: 96%;
        border-radius: 12px;
    }
    .ad-label {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}
