/* Blog Section Styles */
.blog-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    min-height: 100vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    transform: translateZ(0);
    display: flex;
    flex-direction: column;
    height: 520px;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-3d);
    border-color: var(--secondary-blue);
}

.blog-card:hover::before {
    opacity: 0.03;
}

.blog-card__img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    z-index: 2;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.1);
}

.blog-card__img-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, var(--card-bg));
    z-index: 3;
}

.blog-card__content {
    padding: 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.blog-card__title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card__subtitle {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__bar {
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card__bar {
    width: 60px;
}

.blog-card__preview-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.btn11-hover {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn11-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn11-hover:hover::before {
    left: 100%;
}

.btn11-hover:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Blog Modal Styles */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.blog-modal.show {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.blog-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.blog-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    box-shadow: var(--shadow-3d);
    animation: slideInUp 0.5s ease-out;
    overflow: hidden;
}

.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.blog-modal-close:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.blog-modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.blog-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, var(--card-bg));
}

.blog-modal-title-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
}

.blog-modal-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.blog-modal-date {
    color: var(--light-blue);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.blog-modal-body {
    padding: 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.blog-modal-body p {
    margin-bottom: 20px;
}

.blog-modal-body p:last-child {
    margin-bottom: 0;
}

.blog-modal-body a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-modal-body a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.blog-modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .blog-card {
        height: auto;
        min-height: 480px;
    }
    
    .blog-card__content {
        padding: 24px 20px;
    }
    
    .blog-card__title {
        font-size: 20px;
    }
    
    .blog-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .blog-modal-header {
        height: 250px;
    }
    
    .blog-modal-title {
        font-size: 24px;
    }
    
    .blog-modal-body {
        padding: 30px 20px;
        font-size: 15px;
    }
    
    .blog-modal-close {
        top: 15px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-card__content {
        padding: 20px 16px;
    }
    
    .blog-card__title {
        font-size: 18px;
    }
    
    .blog-modal-title-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .blog-modal-title {
        font-size: 22px;
    }
    
    .blog-modal-body {
        padding: 25px 16px;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading Animation */
.blog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: var(--text-secondary);
    font-size: 18px;
}

.blog-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Blog Modal - Add to your existing CSS */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.blog-modal.active {
  opacity: 1;
  visibility: visible;
}

.blog-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.blog-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  z-index: 10000;
}

.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10001;
}

.blog-modal-header {
  position: relative;
}

.blog-modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blog-modal-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 30px 30px;
  color: #fff;
}

.blog-modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-modal-date {
  color: #ff6b35;
  font-size: 1rem;
}

.blog-modal-body {
  padding: 40px 30px;
  color: #ccc;
  line-height: 1.8;
  overflow-y: auto;
  max-height: 400px;
}