.blog-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.blog-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-col {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(49, 50, 113, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.blog-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #313271 0%, #ffc107 50%, #e41a1a 100%);
}

.blog-col::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 193, 7, 0.03) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-col:hover::after {
  opacity: 1;
}

.blog-col:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(49, 50, 113, 0.2), 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.blog-title {
  color: #313271;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  transition: all 0.3s ease;
  position: relative;
}

.blog-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffc107, #e41a1a);
  transition: width 0.3s ease;
}

.blog-col:hover .blog-title {
  color: #e41a1a;
  transform: translateX(4px);
}

.blog-col:hover .blog-title::after {
  width: 60px;
}

.blog-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.read-more-button {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(45deg, #313271, #4a4b9e);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(49, 50, 113, 0.3);
}

.read-more-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ffc107, #ffb300);
  transition: left 0.3s ease;
  z-index: 0;
}

.read-more-button:hover::before {
  left: 0;
}

.read-more-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.read-more-button span {
  position: relative;
  z-index: 1;
}

.read-more-button::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.read-more-button:hover::after {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-section {
    padding: 0 0.5rem;
  }

  .blog-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-col {
    padding: 1.5rem;
  }

  .blog-title {
    font-size: 1.3rem;
  }

  .blog-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .blog-col {
    padding: 1.25rem;
  }

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

  .read-more-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Focus states for accessibility */
.read-more-button:focus {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

.read-more-button:focus:not(:focus-visible) {
  outline: none;
}

.read-more-button:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

/* Animation for page load */
.blog-col {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.blog-col:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-col:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-col:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* blogs page */
.blog-container:nth-child(1) {
  box-shadow: none;
}
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.toc-wrapper {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px 30px 10px 30px;
  margin-bottom: 40px;
  border-left: 5px solid #ffc107;
}

.toc-wrapper .toc-header {
  color: #313271;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toc-wrapper .toc-header:hover {
  color: #e41a1a;
}

.toc-wrapper .toc-icon {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.toc-wrapper .toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toc-wrapper .toc-content.active {
  max-height: 500px;
}

.toc-wrapper .toc-list {
  list-style: none;
  padding-left: 0;
}

.toc-wrapper .toc-list li {
  margin-bottom: 8px;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.toc-wrapper .toc-list li:hover {
  transform: translateX(5px);
}

.toc-wrapper .toc-list a {
  text-decoration: none;
  color: #313271;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding-left: 20px;
  display: block;
  transition: color 0.3s ease;
}

.toc-wrapper .toc-list a::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #e41a1a;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.toc-wrapper .toc-list a:hover {
  color: #e41a1a;
  font-weight: 600;
}

.toc-wrapper .toc-list a:hover::before {
  transform: translateX(3px);
}

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

.content-section .section-title {
  color: #313271;
  font-size: 2rem;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #ffc107;
}

.content-section .subsection-title {
  color: #313271;
  font-size: 1.5rem;
  margin: 30px 0 15px 0;
  position: relative;
  padding-left: 20px;
}

.content-section .subsection-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #e41a1a;
}

.content-section .sub-heading {
  color: #313271;
  font-size: 1.3rem;
  margin: 25px 0 12px 0;
}

.content-section .minor-heading {
  color: #313271;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
}

.content-section .text-content {
  margin-bottom: 15px;
  text-align: justify;
  font-size: 1rem;
}

.content-section .content-list {
  margin: 15px 0;
  padding-left: 15px;
  list-style: none;
}

.content-section .content-list li {
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 25px;
}

.content-section .content-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #ffc107;
  font-size: 1.2rem;
  font-weight: bold;
}

.content-section .ordered-list {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}

.content-section .ordered-list li {
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 35px;
  counter-increment: list-counter;
}

.content-section .ordered-list li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #313271;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.highlight-section {
  background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  border-left: 5px solid #e41a1a;
}

.highlight-section .highlight-title {
  color: #313271;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.highlight-section .highlight-text {
  margin-bottom: 15px;
}

.career-section {
  margin: 30px 0;
}

.career-section .career-role {
  background-color: #f8f9fa;
  border-left: 4px solid #e41a1a;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.career-section .career-role:hover {
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.career-section .career-title {
  color: #313271;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.career-section .career-description {
  color: #555;
  line-height: 1.7;
}

.features-wrapper {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  border-top: 4px solid #ffc107;
}

.features-wrapper .feature-list {
  list-style-type: none;
  padding-left: 0;
}

.features-wrapper .feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.features-wrapper .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e41a1a;
  font-weight: bold;
  font-size: 1.2rem;
}

.intro-section {
  margin-bottom: 40px;
}

.intro-section .intro-text {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

.conclusion-wrapper {
  background: linear-gradient(135deg, #313271 0%, #4a4a9e 100%);
  color: white;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
}

.conclusion-wrapper .conclusion-title {
  color: white;
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: 3px solid #ffc107;
  padding-bottom: 10px;
}

.conclusion-wrapper .conclusion-text {
  margin-bottom: 15px;
  line-height: 1.7;
  opacity: 0.95;
}

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

  .blog-container .hero-title {
    padding: 40px 20px;
    font-size: 2rem;
  }

  .blog-container .hero-subtitle {
    font-size: 1rem;
  }

  .toc-wrapper {
    padding: 20px;
  }

  .content-section .section-title {
    font-size: 1.6rem;
  }

  .content-section .subsection-title {
    font-size: 1.3rem;
  }

  .career-section .career-role {
    padding: 20px;
  }

  .conclusion-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .blog-container .hero-title {
    font-size: 1.8rem;
    padding: 30px 15px;
  }

  .content-section .section-title {
    font-size: 1.4rem;
  }

  .content-section .subsection-title {
    font-size: 1.2rem;
  }

  .toc-wrapper {
    padding: 15px;
  }

  .career-section .career-role {
    padding: 15px;
  }
}
