/* ==========================================================================
   Depolama Uzmani - Custom Styles
   Bootstrap 4.6 loaded from CDN
   Slick Carousel CSS loaded from CDN
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #1a56db;
  --primary-dark: #1e3a5f;
  --primary-light: #e8f0fe;
  --accent: #0e9f6e;
  --accent-light: #def7ec;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --bg-body: #f3f4f6;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
}

/* --- Base --- */
* { box-sizing: border-box; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img { max-width: 100%; height: auto; }

/* --- Loading Screen --- */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.loading-container .spinner {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 16px;
}

.loading-container .spinner div {
  width: 4px;
  height: 24px;
  background: var(--primary);
  animation: spinner-wave 1.2s infinite ease-in-out;
  border-radius: 2px;
}

.loading-container .spinner .rect2 { animation-delay: -1.1s; }
.loading-container .spinner .rect3 { animation-delay: -1.0s; }
.loading-container .spinner .rect4 { animation-delay: -0.9s; }
.loading-container .spinner .rect5 { animation-delay: -0.8s; }

@keyframes spinner-wave {
  0%, 40%, 100% { transform: scaleY(0.4); }
  20% { transform: scaleY(1); }
}

.loading-container p {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
}

/* --- Navbar --- */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0;
  min-height: 64px;
}

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

.navbar-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav-links li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-nav-links li a:hover,
.navbar-nav-links li a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.navbar-search {
  position: relative;
}

.navbar-search input {
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px 8px 40px;
  font-size: 14px;
  background: var(--bg-light);
  width: 220px;
  transition: var(--transition);
  outline: none;
}

.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.navbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar-toggle { display: block; }

  .navbar-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .navbar-nav-links.open { display: flex; }

  .navbar-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
  }

  .navbar-search.open { display: block; }

  .navbar-search input { width: 100%; }
  .navbar-search input:focus { width: 100%; }
}

/* --- Hero Section --- */
.hero-section {
  padding: 32px 0 16px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  display: block;
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-card:hover img {
  opacity: 0.55;
}

.hero-card .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.hero-card .hero-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.hero-card .hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-card .hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.hero-card .hero-meta span + span::before {
  content: "\00b7";
  margin: 0 8px;
}

@media (max-width: 768px) {
  .hero-card img { height: 280px; }
  .hero-card .hero-title { font-size: 20px; }
  .hero-card .hero-overlay { padding: 24px 20px; }
}

/* --- Sidebar Featured --- */
.sidebar-featured {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.sidebar-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  flex: 1;
  display: block;
}

.sidebar-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sidebar-card:hover img {
  opacity: 0.55;
}

.sidebar-card .sidebar-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.sidebar-card .sidebar-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.35;
}

.sidebar-card .sidebar-card-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* --- Top Carousel --- */
.top-carousel-section {
  padding: 24px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.top-carousel-item {
  padding: 0 8px;
}

.top-carousel-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-carousel-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.top-carousel-card .tc-content {
  min-width: 0;
}

.top-carousel-card .tc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-carousel-card .tc-title a {
  color: inherit;
}

.top-carousel-card .tc-title a:hover {
  color: var(--primary);
}

.top-carousel-card .tc-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Post Cards Grid --- */
.posts-section {
  padding: 32px 0 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card .post-card-image {
  position: relative;
  overflow: hidden;
}

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

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

.post-card .post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.post-card .post-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .post-card-title a {
  color: var(--text-primary);
}

.post-card .post-card-title a:hover {
  color: var(--primary);
}

.post-card .post-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.post-card .post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-card .post-card-meta span + span::before {
  content: "\00b7";
  margin: 0 6px;
}

/* --- Bottom Carousel --- */
.bottom-carousel-section {
  padding: 32px 0;
  background: var(--bg-white);
}

.bottom-carousel-item {
  padding: 0 8px;
}

.bottom-post-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.bottom-post-card:hover {
  box-shadow: var(--shadow-md);
}

.bottom-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.bottom-post-card .bpc-body {
  padding: 16px;
}

.bottom-post-card .bpc-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bottom-post-card .bpc-title a {
  color: var(--text-primary);
}

.bottom-post-card .bpc-title a:hover {
  color: var(--primary);
}

.bottom-post-card .bpc-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Article Detail --- */
.article-detail {
  padding: 32px 0 64px;
}

.article-detail .breadcrumb-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-detail .breadcrumb-nav a {
  color: var(--text-muted);
}

.article-detail .breadcrumb-nav a:hover {
  color: var(--primary);
}

.article-detail .breadcrumb-nav .separator {
  color: var(--text-muted);
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-header .article-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-header .article-summary {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author .author-info {
  font-size: 14px;
}

.article-author .author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.article-author .author-date {
  color: var(--text-muted);
  font-size: 13px;
}

.article-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content h2 {
  font-size: 24px;
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 20px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-content ul, .article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.article-content table th,
.article-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content table th {
  background: var(--bg-light);
  font-weight: 600;
}

.article-content table tr:nth-child(even) {
  background: var(--bg-light);
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tags .tag-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-tags a {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.article-tags a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Article Info Bar */
.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.article-info-bar .info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-info-bar .info-item svg {
  opacity: 0.6;
}

/* Author bio */
.article-author .author-bio {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* GEO/AIO: Key Takeaways Box */
.article-key-takeaways {
  background: linear-gradient(135deg, var(--primary-light), #f0f7ff);
  border: 1px solid rgba(26, 86, 219, 0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.article-key-takeaways .takeaway-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.article-key-takeaways .takeaway-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-key-takeaways .takeaway-list li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
}

.article-key-takeaways .takeaway-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Image caption */
.article-featured-image figcaption,
.image-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* GEO/AIO: FAQ Section */
.article-faq {
  margin: 40px 0 32px;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.article-faq .faq-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border: none;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-left: 12px;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* GEO/AIO: Related Articles */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.article-related .related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border: none;
  padding: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card-body {
  padding: 12px 14px;
}

.related-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover h3 {
  color: var(--primary);
}

.related-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .article-header h1 { font-size: 24px; }
  .article-header .article-summary { font-size: 16px; }
  .article-content { font-size: 15px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-faq { padding: 20px 16px; }
}

/* --- Search Results --- */
.search-section {
  padding: 32px 0 64px;
}

.search-header {
  margin-bottom: 32px;
}

.search-header h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.search-header .search-count {
  color: var(--text-muted);
  font-size: 14px;
}

.search-result-card {
  display: flex;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 16px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.search-result-card:hover {
  box-shadow: var(--shadow-md);
}

.search-result-card .src-image {
  flex-shrink: 0;
}

.search-result-card .src-image img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-result-card .src-body {
  flex: 1;
  min-width: 0;
}

.search-result-card .src-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 6px;
}

.search-result-card .src-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.search-result-card .src-title a {
  color: var(--text-primary);
}

.search-result-card .src-title a:hover {
  color: var(--primary);
}

.search-result-card .src-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.search-result-card .src-meta {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .search-result-card {
    flex-direction: column;
  }
  .search-result-card .src-image img {
    width: 100%;
    height: 180px;
  }
}

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 13px;
  margin-top: 8px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Back to top */
#return-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#return-to-top.show {
  opacity: 1;
  visibility: visible;
}

#return-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* --- Slick Overrides --- */
.slick-prev, .slick-next {
  width: 36px;
  height: 36px;
  z-index: 1;
  background: var(--bg-white) !important;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.slick-prev { left: -8px; }
.slick-next { right: -8px; }

.slick-prev:before, .slick-next:before {
  color: var(--text-primary) !important;
  font-size: 18px;
}

.slick-dots {
  bottom: -30px;
}

.slick-dots li button:before {
  color: var(--text-muted) !important;
}

.slick-dots li.slick-active button:before {
  color: var(--primary) !important;
}

/* --- Utility --- */
.mb-grid { margin-bottom: 24px; }

/* Fix container for wide layouts */
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* No content message */
.no-content {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

.no-content svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.no-content p {
  font-size: 16px;
}

/* --- Slick required base styles (in case CDN fails) --- */
.slick-slider { position: relative; display: block; box-sizing: border-box; }
.slick-list { overflow: hidden; margin: 0; padding: 0; }
.slick-track { display: flex; }
.slick-slide { float: left; min-height: 1px; }
.slick-slide > div { width: 100%; }

/* --- Google Ads spacing --- */
.ad-container {
  margin: 24px 0;
  text-align: center;
}

/* --- Pagination --- */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.page-item .page-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  pointer-events: none;
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  pointer-events: none;
  background: var(--bg-light);
}

@media (max-width: 576px) {
  .page-item .page-link {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* --- Print styles --- */
@media print {
  .site-header, .site-footer, #return-to-top, .ad-container, .pagination-nav { display: none; }
  .article-content { font-size: 12pt; }
}
