/* ====================================
   Стили для блога
   ==================================== */

        /* Programs Grid */
        .blog-programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }
        
.blog-program-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(108, 128, 159, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(211, 244, 251, 0.4);
  border-radius: 10px;
  padding: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

        

        
        .blog-program-card:hover::before {
            opacity: 1;
        }
        
        .blog-program-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary-blue);
            box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
        }
        
        .blog-program-card h3 {
            font-size: 1.4rem;
            color: #083f4a;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        
        .blog-program-card a {
          font-size: 1.4rem;
          color: #332d09;
          margin-bottom: 0.5rem;
          font-weight: 600;
          text-decoration: none; /* убирает подчеркивание */
        }

        
        .blog-program-card p {
            color: #000;
            line-height: 1.8;
            font-size: 1.05rem;
        }

/* Карточки блога на главной */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.blog-card-image2 {
    width: 40%;
    overflow: hidden;
    border-radius: 10px;
    margin: 2px;
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.blog-card p {
    flex-grow: 1;
    color: #666;
    line-height: 1.6;
}

.blog-card .btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Страница статьи */
.blog-post h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #34495e;
    font-weight: 600;
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #34495e;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.blog-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
    }
    
    .blog-post h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.6rem;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
    
    .blog-content h4 {
        font-size: 1.1rem;
    }
    
    .blog-content blockquote {
        padding: 0.8rem 1rem;
        margin: 1.5rem 0;
    }
    
    .section-title {
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 2rem;
      background: linear-gradient(105deg, #446E77 0%, #0F334A 50%, var(--gold) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
      letter-spacing: 2px;
    }
       .h2, h2 {
        font-size: 2rem;
    }
  
   .h4, h4 {
        font-size: 1rem;
    }
  
      .text-muted {
      --bs-text-opacity: 1;
      color: var(--bs-secondary-color) !important;
      font-size: 0.8rem;
    }
    
    .blog-card-image2 {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin: 2px;
    }
}

@media (max-width: 576px) {
    .blog-card-image {
        height: 250px;
    }
    
    .blog-card h3 {
        font-size: 1rem;
    }
    
    .blog-post h1 {
        font-size: 1.5rem;
    }
    
    .blog-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .blog-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }
}