/* Blog Page Styles - Matching Website Theme */

/* Hero Section - Using website theme */
.about-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    background-attachment: fixed;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.about-hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-hero-content {
    animation: fadeInUp 1s ease-out;
}

.about-hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--primary-color, #ff4d00);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-hero-line {
    width: 50px;
    height: 2px;
    background: var(--primary-color, #ff4d00);
}

.about-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.about-hero-title .highlight {
    color: var(--primary-color, #ff4d00);
}

.about-hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Section - Zurihub Style */
.blog-content {
    padding: 80px 0 60px;
    background: #ffffff;
    min-height: 100vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Categories Filter - Simplified */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-filter {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.category-filter:hover,
.category-filter.active {
    background: var(--primary-color, #ff4d00);
    color: white;
    border-color: var(--primary-color, #ff4d00);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 0, 0.2);
}

.category-filter:hover .category-count,
.category-filter.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Blog Post Styles - Zurihub Inspired */
.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

.blog-post.hiding {
    opacity: 0;
    transform: translateY(20px);
}

.blog-post.showing {
    animation: fadeInUp 0.5s ease-out;
}

/* No Posts Message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-posts-message i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 20px;
    display: block;
}

.no-posts-message h3 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-posts-message p {
    color: #6b7280;
    font-size: 1rem;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #ff4d00);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-height: 400px;
}

.post-image {
    overflow: hidden;
    height: 200px;
    background: #f9fafb;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-post.featured .post-image {
    height: 100%;
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post.featured .post-content {
    padding: 40px;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category {
    background: var(--primary-color, #ff4d00);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-post:hover .post-content h2,
.blog-post:hover .post-content h3 {
    color: var(--primary-color, #ff4d00);
}

.post-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #ff4d00);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #e64500;
    gap: 12px;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

/* Load More Button - Simplified */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.load-more-btn {
    background: white;
    color: var(--primary-color, #ff4d00);
    border: 1px solid var(--primary-color, #ff4d00);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: var(--primary-color, #ff4d00);
    color: white;
    transform: translateY(-2px);
}

/* Blog Section Title */
.blog-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark, #1a202c);
    margin-bottom: 20px;
    position: relative;
}

.blog-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color, #ff4d00);
    border-radius: 2px;
}

/* Newsletter Section - Website Theme */
.newsletter {
    background: var(--dark-bg, #1a202c);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    border-color: var(--primary-color, #ff4d00);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    background: var(--primary-color, #ff4d00);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-hover, #e64500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

/* Category Colors - Using website theme */
.category.web-development {
    background: var(--secondary-color, #2563eb);
}

.category.app-development {
    background: var(--success-color, #059669);
}

.category.digital-marketing {
    background: var(--warning-color, #d97706);
}

.category.design {
    background: var(--purple-color, #7c3aed);
}

.category.technology {
    background: var(--info-color, #0891b2);
}

.category.security {
    background: var(--danger-color, #dc2626);
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1000px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .blog-post.featured {
        grid-column: 1;
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .blog-post.featured .post-image {
        height: 200px;
    }
    
    .about-hero-title {
        font-size: 2rem;
    }
    
    .about-hero-description {
        font-size: 1rem;
    }
    
    .blog-categories {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .category-filter {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .blog-post.featured .post-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        min-height: 60vh;
    }
    
    .about-hero-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        padding: 18px;
    }
    
    .post-content h2 {
        font-size: 1.2rem;
    }
    
    .post-content h3 {
        font-size: 1.1rem;
    }
    
    .blog-post.featured .post-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-container {
        padding: 0 15px;
    }
}

/* Footer Base Styles */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--text-secondary);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 77, 0, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: footerShimmer 3s ease-in-out infinite;
}

@keyframes footerShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 20px;
  text-align: left;
}

.footer-logo-img {
  max-height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.footer-logo-img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 77, 0, 0.3));
  transform: scale(1.05);
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-section p,
.footer-section ul {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(5px);
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 16px;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 77, 0, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--primary-color);
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #ff4d00), #e64300);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
    background: linear-gradient(135deg, #ff6633, #ff4d00);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments for floating buttons */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 15px;
        left: 15px;
    }
}
