

/* Global CSS from index.html <style> blocks */
:root {
  --accent-rgb: 249, 72, 121; /* update this if you change --accent */
  --accent: rgb(var(--accent-rgb));
  --accent-secondary-rgb: 172, 106, 252; /* soft purple */
  --accent-secondary-dark-rgb: 120, 50, 200; /* darker purple */
  --accent-secondary: rgb(var(--accent-secondary-rgb));
  --accent-secondary-dark: rgb(var(--accent-secondary-dark-rgb));
  /* Shared theme colors */
  --white: #f0f8ff; /* very slight blue tint */
  --color-100: #fed0e7;
  --color-200: #fca2ce;
  --color-300: #fa75b5;
  --color-400: #f94879;
  --color-500: #c6245e;
  /* H1 gradient overrides */
  --gradient-start: #f96898;
  --gradient-end: var(--accent);
}
body {
    max-width: 1200px;
    margin: 10px auto;
    font-family: 'Inter', sans-serif;
}
/* H1: full background + padding (as you already have) */
.main-article h1 {
  font-size: 2.5rem;                 /* largest */
  line-height: 1.2;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 12px;
}

/* H2: text-gradient, no background */
.main-article h2 {
  font-size: 2rem;                   /* step down */
  line-height: 1.3;
  margin: 2rem 0 1rem;
  padding: 0;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-article h3 {
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
  background: linear-gradient(to top, var(--accent-secondary-dark), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-article h4 {
  color: #333;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.main-article h3 { font-size: 1.25rem; }
.main-article h4 { font-size: 1rem; }

/* Layout */
.container {  
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
}
.sidebar {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  color: #222; /* Ensure contrast on glassmorphic bg */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 2rem;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sidebar .post-card {
  width: 100%;
  max-width: 260px; /* optional: keep cards from stretching too wide */
  margin: 0 auto 1.5rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.sidebar .post-card:last-child {
  margin-bottom: 2rem;
}

.sidebar > h2 {
  width: 100%;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar .post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.sidebar .post-card h3 {
  /* removed */
  display: none;
}
.sidebar .post-card .btn {
  display: none;
}
.sidebar .post-card a {
  display: block;
  text-decoration: none;
}
.sidebar .post-card .overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.6), transparent);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar .post-card:hover .overlay-title {
  opacity: 1;
}

.main-article {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  color: #222; /* Ensure contrast on glassmorphic bg */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Hero */
.hero {
  width: 100%;
  margin-bottom: 2rem;
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.main-article blockquote {
  padding: 1rem 1.5rem;
  position: relative;
  margin: 1.5rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;                 /* keep rounded corners */
  padding: 1rem 1.5rem;                /* your existing padding */
  margin: 1.5rem 0;
  border-bottom-left-radius: 2px;
  border-top-left-radius: 2px;
}

.main-article blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* Custom bullets for unordered lists in main content */
.main-article ul {
  padding-left: 2rem; /* remove default indent */
}
.main-article ul li {
  list-style: none;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 45px;
  line-height: 28px;
}
.main-article ul li::before {
  content: "\f111"; /* default circle icon, or override per-item */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(to top, var(--accent-secondary-dark), var(--accent-secondary));
  border-radius: 50%;
  color: #fff;
  height: 25px;
  width: 25px;
  position: absolute;
  left: 0;
  top: 0.1rem;
}
/* Per-item icons */
.main-article ul li:nth-child(1)::before { content: "\f075"; } /* comment */
.main-article ul li:nth-child(2)::before { content: "\f2b5"; } /* handshake */
.main-article ul li:nth-child(3)::before { content: "\f004"; } /* heart */

/* Custom numbered circles for ordered lists in main content */
.main-article ol {
  counter-reset: section;
  padding-left: 2rem; /* match UL indent */
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.main-article ol li {
  list-style: none;
  counter-increment: section;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 45px; /* space for circle */
  line-height: 28px;
}
.main-article ol li::before {
  content: counter(section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(to top, var(--accent-secondary-dark), var(--accent-secondary));
  border-radius: 50%;
  color: #fff;
  height: 25px;
  width: 25px;
  position: absolute;
  left: 0;
  top: 0.1rem;
}

.main-article li strong,
.main-article li b {
  font-weight: 700;
  background: linear-gradient(to top, var(--accent-secondary-dark), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* From Uiverse.io by marcelodolza */ 
.button {
  --radius: 18px;

  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  font-size: 24px;
  font-family: Inter;
  background: transparent;
  letter-spacing: -1px;
  border: 0;
  position: relative;
  width: 220px;
  height: 80px;
  /*transform: rotate(353deg) skewX(4deg);*/
}

.button-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  background: linear-gradient(to top, var(--accent-secondary-dark), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: blur(1px);
}
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 1.1);
  background: var(--color-500);
}
.bg::before {
  filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow:
    -7px 6px 0 0 rgba(var(--accent-rgb), 0.4),
    -14px 12px 0 0 rgba(var(--accent-rgb), 0.3),
    -21px 18px 4px 0 rgba(var(--accent-rgb), 0.25),
    -28px 24px 8px 0 rgba(var(--accent-rgb), 0.15),
    -35px 30px 12px 0 rgba(var(--accent-rgb), 0.12),
    -42px 36px 16px 0 rgba(var(--accent-rgb), 0.08),
    -56px 42px 20px 0 rgba(var(--accent-rgb), 0.05);
}

.wrap {
  border-radius: inherit;
  overflow: hidden;
  height: 100%;
  transform: translate(6px, -6px);
  padding: 3px;
  background: linear-gradient(
    to bottom,
    var(--color-100) 0%,
    var(--color-400) 100%
  );
  position: relative;
  transition: all 0.3s ease;
}

.outline {
  position: absolute;
  overflow: hidden;
  inset: 0;
  opacity: 0;
  outline: none;
  border-radius: inherit;
  transition: all 0.4s ease;
}
.outline::before {
  content: "";
  position: absolute;
  inset: 2px;
  width: 120px;
  height: 300px;
  margin: auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    white 50%,
    transparent 100%
  );
  animation: spin 3s linear infinite;
  animation-play-state: paused;
}

.content {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  height: 100%;
  gap: 16px;
  border-radius: calc(var(--radius) * 0.85);
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(
    to bottom,
    var(--color-300) 0%,
    var(--color-400) 100%
  );
  box-shadow:
    inset -2px 12px 11px -5px rgba(var(--accent-rgb), 0.2),
    inset 1px -3px 11px 0 rgba(var(--accent-rgb), 0.35);
}
.content::before {
  content: "";
  inset: 0;
  position: absolute;
  z-index: 10;
  width: 80%;
  top: 45%;
  bottom: 35%;
  opacity: 0.7;
  margin: auto;
  background: linear-gradient(to bottom, transparent, var(--color-400));
  filter: brightness(1.3) blur(5px);
}

.char {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char span {
  display: block;
  color: transparent;
  position: relative;
}
.char span:nth-child(5) {
  margin-left: 5px;
}
.char.state-1 span:nth-child(5) {
  margin-right: -3px;
}
.char.state-1 span {
  animation: charAppear 1.2s ease backwards calc(var(--i) * 0.03s);
}
.char.state-1 span::before,
.char span::after {
  content: attr(data-label);
  position: absolute;
  color: var(--white);
  text-shadow: -1px 1px 2px var(--color-500);
  left: 0;
}
.char span::before {
  opacity: 0;
  transform: translateY(-100%);
}
.char.state-2 {
  position: absolute;
  left: 80px;
}
.char.state-2 span::after {
  opacity: 1;
}

.icon {
  animation: resetArrow 0.8s cubic-bezier(0.7, -0.5, 0.3, 1.2) forwards;
  z-index: 10;
}
.icon div,
.icon div::before,
.icon div::after {
  height: 3px;
  border-radius: 1px;
  background-color: var(--white);
}
.icon div::before,
.icon div::after {
  content: "";
  position: absolute;
  right: 0;
  transform-origin: center right;
  width: 14px;
  border-radius: 15px;
  transition: all 0.3s ease;
}
.icon div {
  position: relative;
  width: 24px;
  box-shadow: -2px 2px 5px rgba(var(--accent-rgb), 0.3);
  transform: scale(0.9);
  background: linear-gradient(to bottom, var(--white), var(--color-100));
  animation: swingArrow 1s ease-in-out infinite;
  animation-play-state: paused;
}
.icon div::before {
  transform: rotate(44deg);
  top: 1px;
  box-shadow: 1px -2px 3px -1px rgba(var(--accent-rgb), 0.3);
  animation: rotateArrowLine 1s linear infinite;
  animation-play-state: paused;
}
.icon div::after {
  bottom: 1px;
  transform: rotate(316deg);
  box-shadow: -2px 2px 3px 0 rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(200deg, var(--white), var(--color-100));
  animation: rotateArrowLine2 1s linear infinite;
  animation-play-state: paused;
}

.path {
  position: absolute;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  pointer-events: none;
}

.splash {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  stroke-dasharray: 60 60;
  stroke-dashoffset: 60;
  transform: translate(-17%, -31%);
  stroke: var(--color-300);
}

/** STATES */

.button:hover .words {
  opacity: 1;
}
.button:hover .words span {
  animation-play-state: running;
}

.button:hover .char.state-1 span::before {
  animation: charAppear 0.7s ease calc(var(--i) * 0.03s);
}

.button:hover .char.state-1 span::after {
  opacity: 1;
  animation: charDisappear 0.7s ease calc(var(--i) * 0.03s);
}

.button:hover .wrap {
  transform: translate(8px, -8px);
}

.button:hover .outline {
  opacity: 1;
}

.button:hover .outline::before,
.button:hover .icon div::before,
.button:hover .icon div::after,
.button:hover .icon div {
  animation-play-state: running;
}

.button:active .bg::before {
  filter: blur(5px);
  opacity: 0.7;
  box-shadow:
    -7px 6px 0 0 rgb(115 75 155 / 40%),
    -14px 12px 0 0 rgb(115 75 155 / 25%),
    -21px 18px 4px 0 rgb(115 75 155 / 15%);
}
.button:active .content {
  box-shadow:
    inset -1px 12px 8px -5px rgba(71, 0, 137, 0.4),
    inset 0px -3px 8px 0px var(--color-200);
}

.button:active .words,
.button:active .outline {
  opacity: 0;
}

.button:active .wrap {
  transform: translate(3px, -3px);
}

.button:active .splash {
  animation: splash 0.8s cubic-bezier(0.3, 0, 0, 1) forwards 0.05s;
}

.button:focus .path {
  animation: path 1.6s ease forwards 0.2s;
}

.button:focus .icon {
  animation: arrow 1s cubic-bezier(0.7, -0.5, 0.3, 1.5) forwards;
}

.char.state-2 span::after,
.button:focus .char.state-1 span {
  animation: charDisappear 0.5s ease forwards calc(var(--i) * 0.03s);
}

.button:focus .char.state-2 span::after {
  animation: charAppear 1s ease backwards calc(var(--i) * 0.03s);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes charAppear {
  0% {
    transform: translateY(50%);
    opacity: 0;
    filter: blur(20px);
  }
  20% {
    transform: translateY(70%);
    opacity: 1;
  }
  50% {
    transform: translateY(-15%);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes charDisappear {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-70%);
    opacity: 0;
    filter: blur(3px);
  }
}

@keyframes arrow {
  0% {
    opacity: 1;
  }
  50% {
    transform: translateX(60px);
    opacity: 0;
  }
  51% {
    transform: translateX(-200px);
    opacity: 0;
  }
  100% {
    transform: translateX(-128px);
    opacity: 1;
  }
}

@keyframes swingArrow {
  50% {
    transform: translateX(5px) scale(0.9);
  }
}

@keyframes rotateArrowLine {
  50% {
    transform: rotate(30deg);
  }
  80% {
    transform: rotate(55deg);
  }
}

@keyframes rotateArrowLine2 {
  50% {
    transform: rotate(330deg);
  }
  80% {
    transform: rotate(300deg);
  }
}

@keyframes resetArrow {
  0% {
    transform: translateX(-128px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes path {
  from {
    stroke: white;
  }
  to {
    stroke-dashoffset: -480;
    stroke: #f9c6fe;
  }
}

@keyframes splash {
  to {
    stroke-dasharray: 2 60;
    stroke-dashoffset: -60;
  }
}

/* Style anchors to match primary branding */
.main-article a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.main-article a:hover,
.main-article a:focus {
  transform: scale(1.1);
  text-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.5);
}

@media only screen and (max-width: 1220px) {
  body {
    padding: 0 10px;
  }
}

@media only screen and (max-width: 900px) {
  .container {
      flex-direction: column;
  }
}