body { background-color: var(--bg-dark-purple); }

:root {
  --dark-purple: #050505;
  --gold: #f9b522;
  --gold-hover: #f1c40f;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-purple);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* Hero Section */
.hero-section {
  background:
    linear-gradient(rgba(32, 5, 32, 0.7), rgba(32, 5, 32, 0.9)),
    url("../../../images/external/static-vecteezy-com-system-resources-thumbnails-057-631-725-small-a-glowing-ligh-382870393e0c.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 800px;
}

.hero-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Featured Grid */
.featured-section {
  padding: 4rem 5%;
  position: relative;
  z-index: 10;
  background: #200520;
  overflow: hidden;
}

.featured-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.featured-section .grid-3 {
  position: relative;
  z-index: 1;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--deep-purple-page);
  padding: 1.5rem;
  border-radius: 0.5rem;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
}

.card-img-wrapper {
  overflow: hidden;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  height: 200px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.1);
  opacity: 1;
}

.tag {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  width: fit-content;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card a {
  text-decoration: none !important;
}

.read-story {
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
}

.read-story span {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-story:hover span {
  transform: translateX(5px);
}

/* Main Content Layout */
.main-container {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 5%;
  gap: 4rem;
  align-items: flex-start;
  background: #200520;
}

.content-area {
  flex: 1;
  min-width: 300px;
}

.sidebar {
  flex: 0 0 350px;
  position: sticky;
  top: 8rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
}

/* Blog Items */
.blog-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
  transform: translateX(-20px);
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

.card-cta-link {
  position: relative;
  z-index: 3;
}

.blog-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.blog-img-box {
  flex: 0 0 30%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-item:hover .blog-img-box img {
  filter: grayscale(0);
  transform: scale(1.1);
}

.blog-info {
  flex: 1;
}

.meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

.blog-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
  cursor: pointer;
}

.blog-item:hover h3 {
  color: var(--gold);
}

.blog-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.read-more-btn:hover {
  border-color: var(--gold);
}

.read-more-btn span {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.read-more-btn:hover span {
  transform: translateX(5px);
}

/* Sidebar Widgets */
.sidebar-title {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.pill:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.pill.active {
  border-color: var(--gold);
  background: rgba(249, 181, 34, 0.16);
  color: var(--white);
}

/* Pagination */
.pagination-container {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: none;
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark-purple);
  font-weight: 700;
}

.page-next {
  padding: 0 1.5rem;
  width: auto;
}

.page-prev {
  padding: 0 1.5rem;
  width: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    flex: 1 0 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  .blog-item {
    flex-direction: column;
  }

  .blog-img-box {
    flex: 0 0 auto;
    width: 100%;
  }
}
