/* Bilex Recent Posts Stylesheet */

/* Root variables */
:root {
    --primary-color: #5c42f3;
    --secondary-color: #4a90e2;
    --tertiary-color: #32a852;
    --accent-color: #e74c3c;
    --neutral-color: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
  }
  
  /* Container Styles for Recent Posts */
  .bilex-recent-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    animation: fadeIn 1s ease-out forwards;
  }
  
  .bilex-recent-posts-title {
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
  }
  
  .bilex-recent-posts-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  /* Posts Grid */
  .bilex-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  /* Post Card */
  .bilex-post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
  }
  
  .bilex-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
  }
  
  .bilex-post-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--post-color, var(--primary-color));
    transition: width 0.3s ease;
  }
  
  .bilex-post-card:hover:before {
    width: 100%;
  }
  
  /* Post Icon */
  .bilex-post-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--post-color, var(--primary-color));
  }
  
  .post-svg {
    width: 100%;
    height: 100%;
  }
  
  /* Post Meta */
  .bilex-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .bilex-post-category {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    background-color: rgba(var(--post-color, var(--primary-color)), 0.1);
    color: var(--post-color, var(--primary-color));
    letter-spacing: 0.5px;
  }
  
  .bilex-post-date {
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  /* Post Title */
  .bilex-post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .bilex-post-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
  }
  
  .bilex-post-link:hover {
    color: var(--post-color, var(--primary-color));
  }
  
  /* Post Excerpt */
  .bilex-post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0rem;
    flex-grow: 1;
  }

  .bilex-post-excerpt, .bilex-post-card p {
    font-size: 1rem;
    margin:0rem;
  }
  
  /* Read More Link */
  .bilex-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--post-color, var(--primary-color));
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
  }
  
  .bilex-read-more:hover {
    opacity: 0.8;
  }
  
  .arrow-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .bilex-read-more:hover .arrow-icon {
    transform: translateX(5px);
  }
  
  /* Footer */
  .bilex-posts-footer {
    text-align: center;
    margin-top: 2rem;
  }
  
  .bilex-view-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(92, 66, 243, 0.3);
    transition: var(--transition);
  }
  
  .bilex-view-all-btn:hover {
    background: #4a35d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 66, 243, 0.4);
  }
  
  /* No Posts Message */
  .bilex-no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .bilex-post-card:nth-child(1) { animation-delay: 0.1s; }
  .bilex-post-card:nth-child(2) { animation-delay: 0.2s; }
  .bilex-post-card:nth-child(3) { animation-delay: 0.3s; }
  .bilex-post-card:nth-child(4) { animation-delay: 0.4s; }
  .bilex-post-card:nth-child(5) { animation-delay: 0.5s; }
  .bilex-post-card:nth-child(6) { animation-delay: 0.6s; }
  .bilex-post-card:nth-child(7) { animation-delay: 0.7s; }
  .bilex-post-card:nth-child(8) { animation-delay: 0.8s; }
  .bilex-post-card:nth-child(9) { animation-delay: 0.9s; }
  .bilex-post-card:nth-child(10) { animation-delay: 1s; }
  
  /* --- New Section Styles --- */
  
  /* Base Section Styles */
  section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem!important;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .section-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
  }
  
  /* Button Styles */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    margin: 0.5rem;
  }
  
  .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(92, 66, 243, 0.3);
  }
  
  .btn-primary:hover {
    background: #4a35d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 66, 243, 0.4);
  }
  
  .btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  }
  
  .btn-secondary:hover {
    background: #3a80d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
  }
  
  .btn-tertiary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-tertiary:hover {
    background: rgba(92, 66, 243, 0.1);
    transform: translateY(-2px);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-outline:hover {
    background: rgba(92, 66, 243, 0.1);
    transform: translateY(-2px);
  }
  
  /* Technology Section */
  .technology {
    padding-top: 2rem;
  }
  
  .tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 0rem;
  }
  
  .tech-card {
    background: var(--neutral-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .tech-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
  }
  
  .tech-icon {
    width: 100%;
    height: 100%;
  }
  
  .tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .tech-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
  }
  
  /* Focus Section */
  .focus {
    background-color: var(--neutral-color);
    border-radius: 20px;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .focus-grid p {
    font-size: 1rem;
  }
  
  .focus-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
  }
  
  .focus-icon {
    width: 100%;
    height: 100%;
  }
  
  .focus-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .focus-card p {
    color: var(--text-light);
    line-height: 1.6;
  }
  
  .cta-container {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .bilex-posts-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .bilex-recent-posts-title,
    .section-title {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 576px) {
    .bilex-posts-grid,
    .focus-grid,
    .tech-showcase {
      grid-template-columns: 1fr;
    }
    
    .bilex-recent-posts-title,
    .section-title {
      font-size: 1.75rem;
    }
    
    .bilex-post-card {
      min-height: auto;
    }
  }
  