/* ==================== */
/* RESET & BASE STYLES  */
/* ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== */
/* NAVBAR               */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.nav-brand a:hover {
    color: #4a90e2;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #4a90e2;
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

/* ==================== */
/* MAIN CONTENT         */
/* ==================== */

.main-content {
    min-height: calc(100vh - 180px);
    margin-top: 70px;
    padding: 3rem 2rem;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* HOME PAGE            */
/* ==================== */

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

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.7s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== */
/* POSTS GRID           */
/* ==================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease 0.2s both;
}

.post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-link {
    display: block;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}

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

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

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}

/* ==================== */
/* SINGLE POST PAGE     */
/* ==================== */

.post-container {
    max-width: 760px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
}

.post-article {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.post-date {
    font-weight: 500;
}

.post-separator {
    color: #d1d5db;
}

.post-author {
    font-weight: 500;
}

.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1a1a1a;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.625rem;
}

.post-content h3 {
    font-size: 1.375rem;
}

.post-content h4 {
    font-size: 1.125rem;
}

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

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

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

.post-content a {
    color: #4a90e2;
    text-decoration: underline;
}

.post-content a:hover {
    color: #357abd;
}

.post-content code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.post-content blockquote {
    border-left: 4px solid #4a90e2;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #4a90e2;
    transform: translateX(-4px);
}

/* ==================== */
/* FOOTER               */
/* ==================== */

.footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.footer-text {
    color: #6b7280;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-icon:hover {
    color: #4a90e2;
    background-color: #ffffff;
    transform: translateY(-2px);
}

/* ==================== */
/* RESPONSIVE DESIGN    */
/* ==================== */

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-brand a {
        font-size: 1.125rem;
    }

    .nav-social {
        gap: 0.5rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-article {
        padding: 2rem 1.5rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .post-article {
        padding: 1.5rem 1rem;
    }

    .post-title {
        font-size: 1.5rem;
    }
}



/* Layout wrapper */
.post-container {
  display: flex;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Article stays readable */
.post-article {
  max-width: 760px;
  width: 100%;
}

/* Sticky WhatsApp box */
/* ============================================
   WHATSAPP SIDEBAR COMPONENT
   ============================================ */

/* Container - uses flexbox for article + sidebar layout */
.post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* Main article takes up primary space */
.post-article {
  flex: 1;
  min-width: 0; /* Prevents flex item overflow */
  max-width: 720px;
}

/* Sidebar sticker */
.whatsapp-sticky {
  position: sticky;
  top: 80px; /* Distance from viewport top when sticky */
  width: 280px;
  flex-shrink: 0;
  
  /* Visual styling */
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  /* Subtle border for definition */
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Title styling */
.whatsapp-sticky h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Description text */
.whatsapp-sticky p {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #525252;
}

/* CTA Button */
.whatsapp-sticky a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  
  /* WhatsApp brand color */
  background: #25D366;
  color: #ffffff;
  
  /* Typography */
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  letter-spacing: -0.01em;
  
  /* Shape */
  border-radius: 8px;
  border: none;
  
  /* Interaction */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Button hover state */
.whatsapp-sticky a:hover {
  background: #22c55e; /* Slightly darker green */
  transform: translateY(-1px);
}

/* Button active state */
.whatsapp-sticky a:active {
  transform: translateY(0);
}

/* Button focus state (accessibility) */
.whatsapp-sticky a:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE: HIDE ON MOBILE/TABLET
   ============================================ */

@media (max-width: 1024px) {
  .post-container {
    flex-direction: column;
    gap: 0;
  }
  
  .whatsapp-sticky {
    display: none;
  }
  
  .post-article {
    max-width: 100%;
  }
}

/* Additional breakpoint for narrow desktop */
@media (max-width: 1200px) and (min-width: 1025px) {
  .post-container {
    gap: 32px;
  }
  
  .whatsapp-sticky {
    width: 240px;
    padding: 20px;
  }
  
  .whatsapp-sticky h4 {
    font-size: 16px;
  }
  
  .whatsapp-sticky p {
    font-size: 13px;
  }
}

/* secondary sticker */

/* Sidebar wrapper */
.sidebar {
  position: sticky;
  top: 120px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

/* Shared card styles */
.sidebar-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.sidebar-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.sidebar-card p {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.5;
}

/* Primary CTA button */
.cta-button {
  display: block;
  text-align: center;
  background: #25D366;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover {
  opacity: 0.92;
}

/* Secondary card list */
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* Mobile handling */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
}



/* footer cta */

.footer-cta {
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
  text-align: center;
}

.footer-cta a {
  color: #25D366;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.footer-cta a:hover {
  text-decoration: underline;
}
