/* ============================================
   Blog Styles — Skillmeup
   ============================================ */

/* --- Blog Listing Page --- */
.blog-area {
   padding: 110px 0 90px;
   background: #f9fafb;
   position: relative;
}

.blog-area::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 20% 50%, rgba(36, 103, 236, 0.03) 0%, transparent 50%),
               radial-gradient(circle at 80% 20%, rgba(255, 176, 19, 0.03) 0%, transparent 50%);
   pointer-events: none;
}

.blog-section-title {
   text-align: center;
   margin-bottom: 60px;
}

.blog-section-title h2 {
   font-size: 36px;
   font-weight: 700;
   color: #0e1133;
   margin-bottom: 15px;
}

.blog-section-title p {
   font-size: 16px;
   color: #6b7280;
   max-width: 600px;
   margin: 0 auto;
   line-height: 1.7;
}

/* Blog Card */
.blog-card {
   background: #ffffff;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   margin-bottom: 30px;
   position: relative;
}

.blog-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 20px 60px rgba(36, 103, 236, 0.15);
}

.blog-card-thumb {
   position: relative;
   overflow: hidden;
   height: 240px;
}

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

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

.blog-card-thumb .blog-category-badge {
   position: absolute;
   top: 16px;
   left: 16px;
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 100%);
   color: #fff;
   padding: 6px 16px;
   border-radius: 50px;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: 0.5px;
   text-transform: uppercase;
   z-index: 2;
   backdrop-filter: blur(10px);
}

.blog-card-thumb .blog-date-badge {
   position: absolute;
   bottom: 16px;
   right: 16px;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(10px);
   color: #0e1133;
   padding: 8px 14px;
   border-radius: 10px;
   font-size: 13px;
   font-weight: 600;
   z-index: 2;
   display: flex;
   align-items: center;
   gap: 6px;
}

.blog-card-thumb .blog-date-badge i {
   color: #2467ec;
   font-size: 14px;
}

.blog-card-thumb::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 50%;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 100%);
   pointer-events: none;
}

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

.blog-card-content h3 {
   font-size: 20px;
   font-weight: 700;
   color: #0e1133;
   line-height: 1.4;
   margin-bottom: 12px;
   transition: color 0.3s ease;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.blog-card-content h3 a {
   color: inherit;
   text-decoration: none;
}

.blog-card:hover .blog-card-content h3 {
   color: #2467ec;
}

.blog-card-content p {
   font-size: 15px;
   color: #6b7280;
   line-height: 1.7;
   margin-bottom: 20px;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.blog-card-meta {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding-top: 18px;
   border-top: 1px solid #f0f0f5;
}

.blog-card-author {
   display: flex;
   align-items: center;
   gap: 10px;
}

.blog-card-author-img {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   background: linear-gradient(135deg, #2467ec 0%, #ffb013 100%);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-size: 14px;
   font-weight: 700;
}

.blog-card-author span {
   font-size: 14px;
   color: #6b7280;
   font-weight: 500;
}

.blog-read-more {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   font-size: 14px;
   font-weight: 600;
   color: #2467ec;
   text-decoration: none;
   transition: all 0.3s ease;
}

.blog-read-more i {
   font-size: 12px;
   transition: transform 0.3s ease;
}

.blog-read-more:hover {
   color: #1a4fc7;
}

.blog-read-more:hover i {
   transform: translateX(4px);
}

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

.sidebar-widget {
   background: #ffffff;
   border-radius: 16px;
   padding: 28px;
   margin-bottom: 30px;
   box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.sidebar-widget-title {
   font-size: 20px;
   font-weight: 700;
   color: #0e1133;
   margin-bottom: 20px;
   padding-bottom: 15px;
   border-bottom: 2px solid #f0f0f5;
   position: relative;
}

.sidebar-widget-title::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 50px;
   height: 2px;
   background: linear-gradient(135deg, #2467ec 0%, #ffb013 100%);
}

/* Search Widget */
.sidebar-search {
   position: relative;
}

.sidebar-search input {
   width: 100%;
   height: 50px;
   border: 2px solid #f0f0f5;
   border-radius: 12px;
   padding: 0 50px 0 20px;
   font-size: 15px;
   color: #0e1133;
   transition: border-color 0.3s ease;
   outline: none;
}

.sidebar-search input:focus {
   border-color: #2467ec;
}

.sidebar-search button {
   position: absolute;
   right: 5px;
   top: 5px;
   width: 40px;
   height: 40px;
   border: none;
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 100%);
   color: #fff;
   border-radius: 10px;
   cursor: pointer;
   transition: all 0.3s ease;
}

.sidebar-search button:hover {
   background: linear-gradient(135deg, #1a4fc7 0%, #0e3aad 100%);
}

/* Categories Widget */
.sidebar-categories ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.sidebar-categories ul li {
   margin-bottom: 8px;
}

.sidebar-categories ul li a {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 12px 16px;
   border-radius: 10px;
   color: #4b5563;
   font-size: 15px;
   font-weight: 500;
   text-decoration: none;
   transition: all 0.3s ease;
   background: #f9fafb;
}

.sidebar-categories ul li a:hover {
   background: rgba(36, 103, 236, 0.08);
   color: #2467ec;
   transform: translateX(4px);
}

.sidebar-categories ul li a span {
   background: rgba(36, 103, 236, 0.1);
   color: #2467ec;
   padding: 2px 10px;
   border-radius: 50px;
   font-size: 13px;
   font-weight: 600;
}

/* Recent Posts Widget */
.sidebar-recent-post {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-bottom: 20px;
   padding-bottom: 20px;
   border-bottom: 1px solid #f0f0f5;
}

.sidebar-recent-post:last-child {
   margin-bottom: 0;
   padding-bottom: 0;
   border-bottom: none;
}

.sidebar-recent-post-thumb {
   width: 80px;
   height: 65px;
   border-radius: 10px;
   overflow: hidden;
   flex-shrink: 0;
}

.sidebar-recent-post-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.4s ease;
}

.sidebar-recent-post:hover .sidebar-recent-post-thumb img {
   transform: scale(1.1);
}

.sidebar-recent-post-content h4 {
   font-size: 15px;
   font-weight: 600;
   color: #0e1133;
   line-height: 1.4;
   margin-bottom: 6px;
   transition: color 0.3s ease;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.sidebar-recent-post-content h4 a {
   color: inherit;
   text-decoration: none;
}

.sidebar-recent-post:hover .sidebar-recent-post-content h4 {
   color: #2467ec;
}

.sidebar-recent-post-content span {
   font-size: 13px;
   color: #9ca3af;
   display: flex;
   align-items: center;
   gap: 5px;
}

.sidebar-recent-post-content span i {
   color: #2467ec;
   font-size: 12px;
}

/* Tags Widget */
.sidebar-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}

.sidebar-tags a {
   display: inline-block;
   padding: 8px 18px;
   background: #f3f4f6;
   border-radius: 50px;
   font-size: 13px;
   font-weight: 500;
   color: #4b5563;
   text-decoration: none;
   transition: all 0.3s ease;
}

.sidebar-tags a:hover {
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 100%);
   color: #fff;
   transform: translateY(-2px);
}

/* Newsletter Widget */
.sidebar-newsletter {
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 100%);
   border-radius: 16px;
   padding: 32px 28px;
   text-align: center;
}

.sidebar-newsletter h4 {
   font-size: 20px;
   font-weight: 700;
   color: #fff;
   margin-bottom: 10px;
}

.sidebar-newsletter p {
   font-size: 14px;
   color: rgba(255, 255, 255, 0.8);
   margin-bottom: 20px;
   line-height: 1.6;
}

.sidebar-newsletter input {
   width: 100%;
   height: 48px;
   border: none;
   border-radius: 12px;
   padding: 0 20px;
   font-size: 14px;
   margin-bottom: 12px;
   outline: none;
}

.sidebar-newsletter button {
   width: 100%;
   height: 48px;
   border: 2px solid #fff;
   background: transparent;
   color: #fff;
   border-radius: 12px;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
}

.sidebar-newsletter button:hover {
   background: #fff;
   color: #2467ec;
}

/* Pagination */
.blog-pagination {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 8px;
   margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 45px;
   height: 45px;
   border-radius: 12px;
   font-size: 15px;
   font-weight: 600;
   text-decoration: none;
   transition: all 0.3s ease;
}

.blog-pagination a {
   background: #fff;
   color: #4b5563;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.blog-pagination a:hover,
.blog-pagination span.active {
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 100%);
   color: #fff;
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(36, 103, 236, 0.3);
}

.blog-pagination span.active {
   transform: none;
}


/* ============================================
   Blog Detail Page
   ============================================ */

.blog-detail-area {
   padding: 110px 0 90px;
   background: #f9fafb;
}

.blog-detail-wrapper {
   background: #ffffff;
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.blog-detail-thumb {
   position: relative;
   height: 450px;
   overflow: hidden;
}

.blog-detail-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.blog-detail-thumb-overlay {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   padding: 40px;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.blog-detail-thumb-meta {
   display: flex;
   align-items: center;
   gap: 20px;
   flex-wrap: wrap;
}

.blog-detail-thumb-meta span {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: rgba(255, 255, 255, 0.9);
   font-size: 14px;
   font-weight: 500;
}

.blog-detail-thumb-meta span i {
   color: #ffb013;
}

.blog-detail-content {
   padding: 40px;
}

.blog-detail-content h2 {
   font-size: 32px;
   font-weight: 700;
   color: #0e1133;
   line-height: 1.35;
   margin-bottom: 24px;
}

.blog-detail-content p {
   font-size: 16px;
   color: #4b5563;
   line-height: 1.85;
   margin-bottom: 24px;
}

.blog-detail-content h3 {
   font-size: 24px;
   font-weight: 700;
   color: #0e1133;
   margin: 36px 0 16px;
}

.blog-detail-content h4 {
   font-size: 20px;
   font-weight: 600;
   color: #0e1133;
   margin: 28px 0 12px;
}

.blog-detail-content ul,
.blog-detail-content ol {
   padding-left: 24px;
   margin-bottom: 24px;
}

.blog-detail-content ul li,
.blog-detail-content ol li {
   font-size: 16px;
   color: #4b5563;
   line-height: 1.85;
   margin-bottom: 8px;
   position: relative;
}

.blog-detail-content ul li::marker {
   color: #2467ec;
}

.blog-detail-content blockquote {
   background: linear-gradient(135deg, rgba(36, 103, 236, 0.05) 0%, rgba(255, 176, 19, 0.05) 100%);
   border-left: 4px solid #2467ec;
   padding: 28px 32px;
   border-radius: 0 14px 14px 0;
   margin: 32px 0;
   position: relative;
}

.blog-detail-content blockquote::before {
   content: '\f10d';
   font-family: 'Font Awesome 5 Pro';
   font-weight: 900;
   font-size: 28px;
   color: rgba(36, 103, 236, 0.15);
   position: absolute;
   top: 16px;
   right: 24px;
}

.blog-detail-content blockquote p {
   font-size: 17px;
   font-style: italic;
   color: #374151;
   margin-bottom: 0;
   font-weight: 500;
}

/* Blog Detail Tags & Share */
.blog-detail-footer {
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 20px;
   padding: 28px 40px;
   border-top: 1px solid #f0f0f5;
   background: #fafbfc;
   border-radius: 0 0 20px 20px;
}

.blog-detail-tags {
   display: flex;
   align-items: center;
   gap: 8px;
   flex-wrap: wrap;
}

.blog-detail-tags span {
   font-size: 15px;
   font-weight: 600;
   color: #0e1133;
   margin-right: 4px;
}

.blog-detail-tags a {
   display: inline-block;
   padding: 6px 16px;
   background: #f3f4f6;
   border-radius: 50px;
   font-size: 13px;
   font-weight: 500;
   color: #4b5563;
   text-decoration: none;
   transition: all 0.3s ease;
}

.blog-detail-tags a:hover {
   background: #2467ec;
   color: #fff;
}

.blog-detail-share {
   display: flex;
   align-items: center;
   gap: 10px;
}

.blog-detail-share span {
   font-size: 15px;
   font-weight: 600;
   color: #0e1133;
}

.blog-detail-share a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   border-radius: 10px;
   background: #f3f4f6;
   color: #4b5563;
   text-decoration: none;
   transition: all 0.3s ease;
}

.blog-detail-share a:hover {
   background: #2467ec;
   color: #fff;
   transform: translateY(-3px);
}

/* Blog Navigation (Previous / Next) */
.blog-navigation {
   display: flex;
   justify-content: space-between;
   gap: 20px;
   margin-top: 40px;
}

.blog-nav-item {
   flex: 1;
   background: #ffffff;
   border-radius: 16px;
   padding: 24px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
   transition: all 0.3s ease;
   text-decoration: none;
}

.blog-nav-item:hover {
   transform: translateY(-4px);
   box-shadow: 0 10px 30px rgba(36, 103, 236, 0.12);
}

.blog-nav-item span {
   font-size: 13px;
   color: #9ca3af;
   text-transform: uppercase;
   letter-spacing: 1px;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: 6px;
   margin-bottom: 8px;
}

.blog-nav-item span i {
   color: #2467ec;
}

.blog-nav-item h4 {
   font-size: 16px;
   font-weight: 600;
   color: #0e1133;
   line-height: 1.4;
   transition: color 0.3s ease;
   margin: 0;
}

.blog-nav-item:hover h4 {
   color: #2467ec;
}

.blog-nav-next {
   text-align: right;
}

.blog-nav-next span {
   justify-content: flex-end;
}

/* Related Posts */
.related-posts {
   margin-top: 60px;
}

.related-posts-title {
   font-size: 28px;
   font-weight: 700;
   color: #0e1133;
   margin-bottom: 30px;
}

/* CTA Banner */
.blog-cta-banner {
   background: linear-gradient(135deg, #2467ec 0%, #1a4fc7 50%, #0e3aad 100%);
   border-radius: 20px;
   padding: 50px 40px;
   text-align: center;
   margin-top: 60px;
   position: relative;
   overflow: hidden;
}

.blog-cta-banner::before {
   content: '';
   position: absolute;
   top: -50%;
   right: -30%;
   width: 500px;
   height: 500px;
   border-radius: 50%;
   background: rgba(255, 176, 19, 0.1);
   pointer-events: none;
}

.blog-cta-banner::after {
   content: '';
   position: absolute;
   bottom: -50%;
   left: -20%;
   width: 400px;
   height: 400px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   pointer-events: none;
}

.blog-cta-banner h3 {
   font-size: 28px;
   font-weight: 700;
   color: #fff;
   margin-bottom: 14px;
   position: relative;
   z-index: 2;
}

.blog-cta-banner p {
   font-size: 16px;
   color: rgba(255, 255, 255, 0.85);
   margin-bottom: 28px;
   max-width: 500px;
   margin-left: auto;
   margin-right: auto;
   position: relative;
   z-index: 2;
}

.blog-cta-banner .edu-btn {
   position: relative;
   z-index: 2;
   background: #ffb013;
   color: #0e1133;
   font-weight: 700;
}

.blog-cta-banner .edu-btn:hover {
   background: #fff;
   color: #2467ec;
}

/* Responsive */
@media (max-width: 991px) {
   .blog-detail-thumb {
      height: 320px;
   }
   
   .blog-detail-content {
      padding: 30px 24px;
   }
   
   .blog-detail-content h2 {
      font-size: 26px;
   }
   
   .blog-detail-footer {
      padding: 20px 24px;
   }
   
   .blog-sidebar {
      position: static;
      margin-top: 30px;
   }
}

@media (max-width: 767px) {
   .blog-area {
      padding: 80px 0 60px;
   }
   
   .blog-section-title h2 {
      font-size: 28px;
   }
   
   .blog-detail-thumb {
      height: 220px;
   }
   
   .blog-detail-content h2 {
      font-size: 22px;
   }
   
   .blog-detail-content {
      padding: 24px 18px;
   }
   
   .blog-navigation {
      flex-direction: column;
   }
   
   .blog-nav-next {
      text-align: left;
   }
   
   .blog-nav-next span {
      justify-content: flex-start;
   }
   
   .blog-cta-banner {
      padding: 36px 24px;
   }
   
   .blog-cta-banner h3 {
      font-size: 22px;
   }
}

/* Animations */
@keyframes blogFadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.blog-card {
   animation: blogFadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(2) {
   animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
   animation-delay: 0.2s;
}

.blog-card:nth-child(4) {
   animation-delay: 0.3s;
}

.blog-card:nth-child(5) {
   animation-delay: 0.4s;
}

.blog-card:nth-child(6) {
   animation-delay: 0.5s;
}
