#icdtg {
  width: 100%;
  padding: 40px;
  background: var(--bg-main);
}
.main-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}

.article-area {
  grid-column: span 8 / span 8;
}

.featured-image-card {
  background-color: var(--gold);
  border-radius: 1rem;
  padding: 0.5rem;
  /* box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5),
    0 1px 2px 0 rgb(0 0 0 / 0.05); */
}

.featured-image-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-1);
  background-color: var(--contrast);
  color: rgb(255 255 255 / 1);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.025em;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gp-search-modal-text-color);
  font-family: var(--font-2);
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-calendar {
  width: 1rem;
  height: 1rem;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-user {
  width: 1rem;
  height: 1rem;
}

.article-content-card {
  font-family: var(--font-2);
  margin-top: 1.5rem;
  background-color: var(--bg-main);
  border-radius: 1rem;
  padding: 1.5rem;
  /* box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5),
    0 1px 2px 0 rgb(0 0 0 / 0.05); */
}

.paragraph {
  color: rgb(51 65 85 / 1);
  line-height: 2rem;
}

.drop-cap {
  float: right;
  margin-left: 0.75rem;
  margin-top: -0.25rem;
  color: rgb(29 78 216 / 1);
  font-weight: 600;
  font-size: 3.75rem;
  line-height: 0.85;
}

.divider {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-color: rgb(226 232 240 / 1);
}

.sidebar {
  grid-column: span 4 / span 4;
}

.sidebar-stack {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input::placeholder::placeholder {
  color: rgb(148 163 184 / 1);
}

.categories-section {
  background-color: var(--bg-main-1);
  border-radius: 1rem;
  /* box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(201, 162, 77),
    0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

.categories-header {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-width: 1px;
  border-color: rgb(226 232 240 / 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-categories {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--contrast-2);
}

.categories-title {
  margin: 0px;
}

.categories-list > :not([hidden]) ~ :not([hidden]) {
  border-top-width: calc(1px * calc(1 - 0));
  border-bottom-width: calc(1px * 0);
  border-color: rgb(226 232 240 / 1);
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.category-item:hover {
  background-color: var(--bg-main-3);
}

.category-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bullet {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--gold);
}

.category-link {
  color: var(--color-grad-1);
  font-family: var(--font-2);
}

.category-link:hover {
  color: var(--gold-hover);
}

.category-count {
  color: var(--color-grad-1);
  font-family: var(--font-2);
}

.recent-posts-section {
  background-color: var(--bg-main-1);
  border-radius: 1rem;
  /* box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(201, 162, 77),
    0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

.recent-posts-header {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-width: 1px;
  border-color: rgb(226 232 240 / 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-clock {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--contrast-2);
  fill: var(--contrast-2);
}

.recent-posts-title {
  margin: 0px;
}

.recent-posts-list {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.recent-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
  /* box-shadow: 0 0 0 0px #fff, 0 0 0 calc(1px + 0px) rgb(59 130 246 / 0.5),
    0 0 #0000; */
}

.recent-text-wrap {
  min-width: 0px;
}

.recent-date {
  display: block;
  font-size: 11px;
  color: rgb(100 116 139 / 1);
  margin-bottom: 0.125rem;
}

.recent-link {
  color: var(--color-grad-1);
  font-family: var(--font-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.recent-link:hover {
  color: var(--gold-hover);
}

.footer {
  width: 100%;
  margin-top: 3rem;
}

.footer-container {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top-width: 1px;
  border-color: rgb(226 232 240 / 1);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(71 85 105 / 1);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-link {
  text-decoration-line: none;
}

.footer-link:hover {
  text-decoration-line: underline;
}

@media (max-width: 992px) {
  .header-container {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .header-content-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .header-text-column {
    grid-column: span 12 / span 12;
  }

  .page-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .header-image-column {
    grid-column: span 12 / span 12;
    order: -9999;
  }

  .header-image-wrapper {
    justify-content: center;
  }

  .header-side-image {
    width: 100%;
    height: 220px;
  }

  .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-area {
    grid-column: span 12 / span 12;
  }

  .featured-image {
    height: 320px;
  }

  .article-content-card {
    padding: 1.25rem;
  }

  .sidebar {
    grid-column: span 12 / span 12;
    order: -9999;
  }

  .sidebar-stack {
    position: static;
  }

  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Article Title */
.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.2;
  font-family: var(--font-1);
}

/* Article Content */
.article-content {
  font-family: var(--font-2);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-main);
  font-family: var(--font-1);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-content h2 {
  font-size: 1.875rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content h4 {
  font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-right: 4px solid var(--gold);
  padding-right: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-1);
}

/* Article Navigation */
.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgb(229 231 235 / 1);
  border-bottom: 1px solid rgb(229 231 235 / 1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgb(249 250 251 / 1);
  border: 1px solid rgb(229 231 235 / 1);
  flex: 1;
  max-width: 300px;
}

.nav-link:hover {
  background-color: rgb(243 244 246 / 1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.prev-link .nav-arrow {
  order: 1;
}

.next-link .nav-arrow {
  order: 3;
}

.nav-content {
  flex: 1;
  text-align: center;
}

.nav-label {
  font-size: 0.875rem;
  color: var(--color-1);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-2);
}

.nav-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-1);
}

/* Related Posts */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgb(229 231 235 / 1);
}

.related-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-1);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.related-card {
  background-color: var(--bg-main-1);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--bg-main-2);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.related-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1.5rem;
}

.related-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-family: var(--font-1);
}

.related-content h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-content h4 a:hover {
  color: var(--gold);
}

.related-date {
  font-size: 0.875rem;
  color: var(--color-1);
  font-family: var(--font-2);
}

/* Not Found State */
.article-not-found {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.article-not-found h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-family: var(--font-1);
}

.article-not-found p {
  font-size: 1.125rem;
  color: var(--color-1);
  margin-bottom: 2rem;
  font-family: var(--font-2);
}

.back-to-blog {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--gold);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: var(--font-2);
}

.back-to-blog:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  #imdd9 {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .article-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-link {
    max-width: 100%;
  }

  .article-title {
    font-size: 2rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  #icdtg {
    padding: 10px;
    margin-top: 50px;
  }
  .article-title {
    font-size: 1.75rem;
  }

  .article-content p {
    font-size: 1rem;
  }

  .nav-link {
    padding: 1rem;
  }

  .nav-content h4 {
    font-size: 1rem;
  }
}
