@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

/* CSS Reset for Blog Cards */
.card-item * {
  box-sizing: border-box;
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-color);
  color: var(--text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
  --body-color: #e4e9f7;
  --nav-color: #4070f4;
  --side-nav: #010718;
  --text-color: #fff;
  --search-bar: #f2f2f2;
  --search-text: #010718;
  --card-color: #ffffff;
  --primary-color: #0066ff;
  --secondary-color: #002333;
  --accent-color: #ff6b6b;
  --text-dark: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-heavy: rgba(0, 0, 0, 0.2);
}

body.dark {
  --body-color: #1a1b1f;
  --nav-color: #262931;
  --side-nav: #242526;
  --text-color: #ccc;
  --search-bar: #363636;
  --card-color: #21242a;
  --button-color: #5f6061;
  --text-dark: #fff;
  --text-light: #ccc;
  --border-color: #444;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-heavy: rgba(0, 0, 0, 0.6);
  background-color: var(--body-color);
  color: var(--text-dark);
}

/* Scroll Bar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body.dark ::-webkit-scrollbar-track {
  background: #1a1b1f;
}

::-webkit-scrollbar-thumb {
  background: #003ec4;
  border-radius: 10px;
  transition: all 0.2s ease;
}

body.dark ::-webkit-scrollbar-thumb {
  background: #007ec3;
}

::-webkit-scrollbar-thumb:hover {
  background: #0051ff;
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: #005a8a;
}

/* Internet Connection Popup */
.popup {
  position: fixed;
  left: 50%;
  top: -25%;
  z-index: 9999;
  visibility: hidden;
  width: 490px;
  border-radius: 5px;
  padding: 13px 17px 20px;
  background: #fff;
  display: flex;
  border-top: 3px solid #d0342c;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(52, 87, 220, 0.1);
  transition: all 0.25s ease;
}

.popup.show {
  top: 0;
  visibility: visible;
}

.popup.online {
  border-color: #2ecc71;
}

.popup .icon i {
  width: 40px;
  height: 40px;
  display: flex;
  color: #fff;
  margin-right: 15px;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d0342c;
}

.popup.online .icon i {
  background: #2ecc71;
}

.popup .title {
  font-size: 1.2rem;
}

.popup .desc {
  color: #474747;
  margin: 3px 0 10px;
  font-size: 1.04rem;
}

.popup .reconnect {
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 4px;
  background: #5372f0;
}

.popup.online .reconnect {
  background: #bfbfbf;
  pointer-events: none;
}

/* Dark Mode Popup */
body.dark .popup {
  background: #21242a;
  border-top: 3px solid #d0342c;
}

body.dark .popup.online {
  border-color: #2ecc71;
}

body.dark .popup .title {
  color: #fff;
}

body.dark .popup .desc {
  color: #ccc;
}

/* Modern Animated Scroll Up Button */
.scroll-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 126, 195, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
}

.scroll-button a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.scroll-button a:hover::before {
  width: 300px;
  height: 300px;
}

.scroll-button a:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 126, 195, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.scroll-button a i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.scroll-button a:hover i {
  transform: none;
}

/* Dark Mode */
body.dark .scroll-button a {
  background: linear-gradient(135deg, #007ec3 0%, #005a8a 100%);
  box-shadow: 0 8px 25px rgba(0, 126, 195, 0.5);
}

body.dark .scroll-button a:hover {
  box-shadow: 0 12px 35px rgba(0, 126, 195, 0.6);
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0, 126, 195, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 126, 195, 0.5);
  }
}

.scroll-button.show a {
  animation: pulse 2s ease-in-out infinite;
}

.scroll-button.show a:hover {
  animation: none;
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-button {
    bottom: 20px;
    right: 20px;
  }

  .scroll-button a {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
}

/* Navigation Styles */
nav {
  position: fixed;
  width: 100%;
  z-index: 998;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
}

body.dark nav {
  background: linear-gradient(135deg, #1a1b1f, #0d1117) !important;
}

.blog-page nav,
.project-page nav,
.contact-page nav,
.software-page nav {
  background: linear-gradient(135deg, #013179, #002333) !important;
}

body.dark .blog-page nav,
body.dark .project-page nav,
body.dark .contact-page nav,
body.dark .software-page nav {
  background: linear-gradient(135deg, #1a1b1f, #0d1117) !important;
}

nav.sticky {
  background: linear-gradient(135deg, #013179, #002333);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark nav.sticky {
  background: linear-gradient(135deg, #1a1b1f, #0d1117) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  width: 90%;
  max-width: 1400px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: auto;
}

nav .navbar .logo-text {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  display: block;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.logo-highlight {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-dot {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 32px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

nav .navbar .logo-text:hover {
  transform: scale(1.02);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

nav .navbar .menu {
  display: flex;
  position: relative;
  margin: 0;
  padding: 0;
}

nav .navbar .menu .nav-item {
  list-style: none;
  font-weight: 500;
  margin: 0 20px;
  position: relative;
}

.navbar .menu .nav-item a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  padding: 10px 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar .menu .nav-item a:hover {
  color: #0066ff;
}

.navbar .menu .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066ff;
  transition: width 0.3s ease;
}

.navbar .menu .nav-item:hover::after,
.navbar .menu .nav-item.active::after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #013179, #002333);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark .dropdown-menu {
  background: linear-gradient(135deg, #1a1b1f, #0d1117);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  padding: 12px 20px !important;
  color: #fff;
  font-size: 15px !important;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: rgba(0, 102, 255, 0.1);
  color: #0066ff !important;
  border-left-color: #0066ff;
}

/* Right Side Controls */
.nav-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}

/* Language Selector */
.language-selector {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.selected-lang {
  border-radius: 50%;
  background-color: #10215a;
  color: #fff;
  height: 40px;
  width: 40px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  padding: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

body.dark .selected-lang {
  background-color: #262931;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.selected-lang:hover {
  background-color: #003cb5;
  color: #fff;
}

body.dark .selected-lang:hover {
  background-color: #005a8a;
}

/* Dark Mode Toggle */
.dark-light {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 0;
}

.dark-light i {
  position: absolute;
  font-size: 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.dark-light .sun {
  opacity: 1;
}

.dark-light .moon {
  opacity: 0;
}

body.dark .dark-light .sun {
  opacity: 0;
}

body.dark .dark-light .moon {
  opacity: 1;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn i {
  font-size: 20px;
  color: #fff;
}

/* Cancel Button */
.cancel-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn i {
  font-size: 20px;
  color: #fff;
}

/* Main Blog Container */
.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 20px 40px;
}

/* Hero Section */
.blog-hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero-content {
  margin-bottom: 40px;
}

.blog-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.2;
}

.title-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search Container */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card-color);
  border-radius: 50px;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-box:focus-within {
  box-shadow: 0 15px 40px var(--shadow-medium);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 20px;
  font-size: 20px;
  color: var(--text-light);
  z-index: 2;
}

.search-box input {
  flex: 1;
  padding: 18px 20px 18px 60px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 18px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 4px;
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* Content Wrapper */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* Blog Main */
.blog-main {
  min-height: 100vh;
}

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

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
}

.filter-tab {
  padding: 10px 20px;
  border: 2px solid var(--text-light);
  background: transparent;
  color: var(--text-light);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

body.dark .filter-tab {
  border-color: var(--border-color);
  color: var(--text-light);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

body.dark .filter-tab.active,
body.dark .filter-tab:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Card List */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Blog Kartları - Yeni Tasarım */
.card-item {
  background: var(--card-color);
  border-radius: 24px;
  box-shadow: 0 8px 24px var(--shadow-light);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  list-style: none;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.card-item:hover::before {
  transform: scaleX(1);
  animation: shimmer 3s linear infinite;
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px var(--shadow-medium);
  border-color: rgba(0, 102, 255, 0.2);
}

.card-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card-footer a {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.card-item:hover::after {
  opacity: 1;
}

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

.card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--card-color);
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .card-meta {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.card-category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.card-category::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.card-category:hover::before {
  width: 300px;
  height: 300px;
}


.card-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.card-date {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 102, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

body.dark .card-date {
  background: rgba(0, 102, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.card-date i {
  font-size: 12px;
  opacity: 0.8;
}

.card-item:hover .card-date {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary-color);
}

body.dark .card-item:hover .card-date {
  background: rgba(0, 102, 255, 0.15);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  letter-spacing: -0.3px;
}

.card-item:hover .card-title {
  color: var(--primary-color);
  transform: translateX(3px);
}

.card-excerpt {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  flex-grow: 1;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

body.dark .card-excerpt {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}

.card-item:hover .card-excerpt {
  opacity: 1;
}

body.dark .card-item:hover .card-excerpt {
  opacity: 0.9;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  gap: 15px;
}

body.dark .card-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  transition: all 0.3s ease;
}

body.dark .card-author {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.card-item:hover .card-author {
  background: rgba(0, 102, 255, 0.08);
  color: var(--text-dark);
}

body.dark .card-item:hover .card-author {
  background: rgba(0, 102, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.card-author span {
  transition: color 0.3s ease;
}

.card-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark .card-author img {
  border-color: rgba(255, 255, 255, 0.15);
}

.card-item:hover .card-author img {
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.card-read-more {
  color: var(--primary-color) !important;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  padding: 10px 22px;
  border: 2px solid var(--primary-color) !important;
  border-radius: 25px;
  background: transparent !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  z-index: 10;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer;
}

.card-read-more * {
  position: relative;
  z-index: 2;
}

.card-read-more::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
  pointer-events: none;
}

.card-read-more:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  border-color: var(--primary-color);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.card-read-more:hover::before {
  width: 300px;
  height: 300px;
}

.card-read-more span {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: inherit;
}

.card-read-more::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
  font-weight: bold;
  margin-left: 0;
  position: relative;
  z-index: 2;
  display: inline-block;
  color: inherit;
}

.card-read-more:hover::after {
  transform: translateX(6px);
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-section {
  background: var(--card-color);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px var(--shadow-light);
  border: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-title i {
  color: var(--primary-color);
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-card {
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.popular-card:hover {
  transform: translateX(5px);
}

.popular-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
}

.popular-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.popular-image {
  width: 80px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-info {
  flex: 1;
}

.popular-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-card:hover .popular-info h4 {
  color: var(--primary-color);
}

.popular-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
}

.popular-date,
.popular-stats {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Newsletter Card */
.newsletter-card {
  text-align: center;
}

.newsletter-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
}

.newsletter-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.newsletter-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-input {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  background: var(--card-color);
  color: var(--text-dark);
}

body.dark .newsletter-input {
  background: var(--card-color);
  color: var(--text-dark);
  border-color: var(--border-color);
}

body.dark .newsletter-input::placeholder {
  color: var(--text-light);
}

.newsletter-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

body.dark .newsletter-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 126, 195, 0.2);
}

.newsletter-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
}

.category-item:hover {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary-color);
}

.category-item.active {
  background: rgba(0, 102, 255, 0.15);
  color: var(--primary-color);
  font-weight: 600;
}

.category-name {
  font-weight: 500;
}

.category-count {
  background: var(--border-color);
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

body.dark .category-count {
  background: var(--border-color);
  color: var(--text-light);
}

.category-item:hover .category-count {
  background: var(--primary-color);
  color: white;
}

body.dark .category-item:hover .category-count {
  background: var(--primary-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
}

@media (max-width: 968px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
  }

  .card-list {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }

  .card-content {
    padding: 24px 28px 28px;
  }

  .card-title {
    font-size: 20px;
  }
}

/* Popup Responsive */
@media screen and (max-width: 550px) {
  .popup {
    width: 100%;
    padding: 10px 15px 17px;
  }

  .scroll-button {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding: 100px 15px 30px;
  }

  .blog-title {
    font-size: 36px;
  }

  .blog-subtitle {
    font-size: 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }

  .card-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-content {
    padding: 22px 24px 24px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-excerpt {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .card-read-more {
    padding: 10px 20px;
    font-size: 14px;
  }

  .card-author img {
    width: 32px;
    height: 32px;
  }

  .card-author {
    padding: 6px 10px;
    font-size: 13px;
  }

  .card-date {
    font-size: 12px;
    padding: 5px 10px;
  }

  .popular-content {
    flex-direction: column;
    gap: 10px;
  }

  .popular-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 28px;
  }

  .search-box {
    flex-direction: column;
    border-radius: 15px;
  }

  .search-box input {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
  }

  .search-btn {
    border-radius: 0 0 15px 15px;
    margin: 0;
  }

  .sidebar-section {
    padding: 20px;
  }
}

/* Footer */
body.dark footer {
  background: linear-gradient(135deg, #1a1b1f, #0d1117);
}

body.dark footer .bottom-details {
  background: linear-gradient(135deg, #0d1117, #010409);
}

footer {
  width: 100%;
  background: linear-gradient(135deg, #013179, #002333);
  width: 100%;
  bottom: 0;
  left: 0;
}

footer .content {
  max-width: 1250px;
  margin: auto;
  padding: 30px 40px 40px 40px;
}

footer .content .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

.content .top .logo-details img {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.content .top .logo-details .logo_name {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

.content .top .media-icons a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background: linear-gradient(135deg, #0066ff, #002333);
  margin: 0 4px 8px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.content .top .media-icons a:hover {
  background: linear-gradient(135deg, #002333, #0066ff);
  transform: scale(1.1);
}

footer .content .link-boxes {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

footer .content .link-boxes .box {
  width: calc(100% / 5 - 10px);
}

.link-boxes .box .link_name {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  position: relative;
}

.link-boxes .box .link_name::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #fff;
  transition: all 0.3s ease;
}

.box .link_name:hover::before {
  width: 100%;
}

.link-boxes .box li {
  margin: 6px 0;
  list-style: none;
}

.link-boxes .box li a {
  color: #bfbfbf;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.link-boxes .box li a:hover {
  opacity: 1;
  text-decoration: underline;
}

footer .bottom-details {
  width: 100%;
  background: linear-gradient(135deg, #002333, #001122);
}

footer .bottom-details .bottom_text {
  max-width: 1250px;
  margin: auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
}

.bottom-details .bottom_text span,
.bottom-details .bottom_text a {
  font-size: 14px;
  font-weight: 300;
  color: #bfbfbf;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  footer .content .link-boxes {
    flex-wrap: wrap;
  }

  footer .content .link-boxes .box {
    width: calc(100% / 3 - 10px);
  }
}

@media (max-width: 700px) {
  footer {
    position: relative;
  }

  footer .content .link-boxes .box {
    width: calc(100% / 2 - 10px);
  }
}

@media (max-width: 550px) {
  footer::before {
    top: 145px;
  }

  footer .content .top {
    flex-direction: column;
    align-items: center;
  }

  footer .content .link-boxes .box {
    width: 100%;
  }
}