/* ===== MOHAMMAD ALSHORMAN BLOG - SIMPLE WORKING CSS ===== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* Header */
.blog-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #2563eb;
}

/* Navigation */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

/* Controls */
.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.control-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.control-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-title-main {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-title-sub {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Search Section */
.search-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.search-icon {
  color: #666;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Post Card */
.post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #2563eb;
}

.post-card:hover::before {
  opacity: 1;
}

.post-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(37, 99, 235, 0.8) 0%, 
    rgba(124, 58, 237, 0.8) 50%, 
    rgba(245, 158, 11, 0.8) 100%);
  opacity: 0.9;
}

.post-image::after {
  content: '📝';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  z-index: 2;
  opacity: 0.3;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

.post-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
}

.language-badge {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-date i,
.post-read-time i {
  color: #2563eb;
}

.post-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #1f2937;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.post-title a:hover {
  color: #2563eb;
  background-size: 100% 2px;
}

.post-excerpt {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.post-tag {
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}

.post-tag:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.post-author {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.post-author i {
  color: #2563eb;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.read-more-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

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

/* Footer */
.blog-footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.blog-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b, #10b981);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #2563eb;
  object-fit: cover;
}

.footer-logo-text h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-logo-text p {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-description {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.social-link.github:hover {
  background: #333;
  border-color: #333;
  box-shadow: 0 10px 20px rgba(51, 51, 51, 0.4);
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.4);
}

.social-link.email:hover {
  background: #ea4335;
  border-color: #ea4335;
  box-shadow: 0 10px 20px rgba(234, 67, 53, 0.4);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 10px 20px rgba(29, 161, 242, 0.4);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
  box-shadow: 0 10px 20px rgba(230, 104, 60, 0.4);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: #2563eb;
  transform: translateX(5px);
}

.footer-link::before {
  content: '▶';
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-link:hover::before {
  opacity: 1;
}

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

.footer-copyright {
  color: #d1d5db;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin-bottom: 0.25rem;
}

.footer-copyright strong {
  color: white;
  font-weight: 600;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-location i {
  color: #f59e0b;
}

/* Loading */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-title-main {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .search-section {
    padding: 1rem;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dark Theme */
[data-theme="dark"] {
  background: #1a1a1a !important;
  color: #fff !important;
}

[data-theme="dark"] .blog-header {
  background: #2a2a2a !important;
  border-color: #444 !important;
}

[data-theme="dark"] .post-card {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #fff !important;
}

[data-theme="dark"] .search-section {
  background: #2a2a2a !important;
}

[data-theme="dark"] .search-box {
  background: #1a1a1a !important;
  border-color: #444 !important;
}

[data-theme="dark"] .blog-footer {
  background: #2a2a2a !important;
  border-color: #444 !important;
}

/* Post Modal */
.post-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.post-modal {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.post-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px 20px 0 0;
}

.post-modal-header h2 {
  color: #1f2937;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  margin-right: 1rem;
}

.modal-close-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

.post-modal-meta {
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.post-modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-modal-meta i {
  color: #2563eb;
}

.post-modal-content {
  padding: 2rem;
}

.post-modal-content p {
  line-height: 1.8;
  color: #374151;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.post-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Dark theme for modal */
[data-theme="dark"] .post-modal {
  background: #1f2937;
  color: #f9fafb;
}

[data-theme="dark"] .post-modal-header {
  background: linear-gradient(135deg, #374151, #1f2937);
  border-color: #374151;
}

[data-theme="dark"] .post-modal-header h2 {
  color: #f9fafb;
}

[data-theme="dark"] .modal-close-btn {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .post-modal-meta {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

[data-theme="dark"] .post-modal-content p {
  color: #e5e7eb;
}

[data-theme="dark"] .post-modal-tags {
  border-color: #4b5563;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .hero-title-main {
    font-size: 2.5rem;
  }
  
  .footer-top {
    gap: 2rem;
  }
  
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-image {
    width: 35px;
    height: 35px;
  }
  
  .header-controls {
    order: 2;
    gap: 0.75rem;
  }
  
  .control-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title-main {
    font-size: 2rem;
  }
  
  .hero-title-sub {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
    justify-content: center;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .search-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .filters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    text-align: center;
    max-width: none;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .post-modal {
    margin: 1rem;
    border-radius: 15px;
    max-height: 85vh;
  }
  
  .post-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .post-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .post-modal-content {
    padding: 1.5rem;
  }
  
  .post-modal-meta {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title-main {
    font-size: 1.75rem;
  }
  
  .hero-title-sub {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 120px;
  }
  
  .search-section {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 12px;
  }
  
  .search-box {
    padding: 0.75rem;
  }
  
  .search-input {
    font-size: 0.95rem;
  }
  
  .filter-select {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  .posts-summary {
    text-align: center;
    padding: 0.75rem;
  }
  
  .posts-count {
    font-size: 1rem;
  }
  
  .view-toggle {
    justify-content: center;
  }
  
  .post-card {
    border-radius: 12px;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .post-excerpt {
    font-size: 0.95rem;
  }
  
  .post-tags {
    gap: 0.5rem;
  }
  
  .post-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .read-more-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 20px;
  }
  
  .footer-brand {
    padding: 1rem;
  }
  
  .footer-social {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  .footer-column h4 {
    font-size: 1.1rem;
  }
  
  .post-modal-overlay {
    padding: 0.75rem;
  }
  
  .post-modal {
    border-radius: 12px;
    max-height: 90vh;
  }
  
  .post-modal-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .post-modal-header h2 {
    font-size: 1.3rem;
    margin-right: 0;
    text-align: center;
  }
  
  .modal-close-btn {
    align-self: center;
    width: 35px;
    height: 35px;
  }
  
  .post-modal-content {
    padding: 1rem;
  }
  
  .post-modal-content p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .post-modal-meta {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-title-main {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .search-section {
    padding: 0.75rem;
  }
  
  .post-content {
    padding: 1rem;
  }
  
  .post-title {
    font-size: 1.1rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .post-modal-header h2 {
    font-size: 1.1rem;
  }
  
  .post-modal-content p {
    font-size: 0.95rem;
  }
}
