/* Global Variables for Pinterest aesthetic */
:root {
  --primary: #e60023; /* Pinterest Red */
  --primary-hover: #ad001a;
  --secondary: #000000;
  --text-main: #333333;
  --text-light: #767676;
  --bg-color: #fafafa;
  --card-bg: #ffffff;
  --border-radius: 20px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, "ä¸‹ä¸€ä»£HeiTi", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Navbar */
header {
  position: sticky;
  top: 0;
  background-color: var(--card-bg);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 24px;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background-color: #efefef;
}

.cta-btn-nav {
  background-color: var(--primary);
  color: white !important;
  font-weight: 600;
}

.cta-btn-nav:hover {
  background-color: var(--primary-hover);
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Pinterest Masonry Grid */
.masonry-grid {
  columns: 5 250px;
  column-gap: 1.5rem;
  padding-bottom: 4rem;
}

.card {
  break-inside: avoid;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
}

.card-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* Darken image to make text pop */
  transition: background 0.3s;
}

.card:hover .card-img-wrapper::after {
  background: rgba(0, 0, 0, 0.25);
}

.pin-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  text-align: center;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0px 4px 15px rgba(0,0,0,0.9);
  z-index: 10;
  line-height: 1.3;
  pointer-events: none; /* So clicks pass through to the card */
  font-family: 'Inter', sans-serif;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Updated Article Hero Aesthetic */
.article-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(1.2); /* Enhance colors but darken for text */
  transition: transform 10s ease-out;
}

.article-hero:hover .hero-bg-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 2rem;
  text-align: center;
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

.article-title-hero {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: -1px;
}

.article-meta-hero {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

.article-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: white;
  box-shadow: 0 -30px 60px rgba(0,0,0,0.1);
  border-radius: 40px 40px 0 0;
  margin-top: -60px;
  position: relative;
  z-index: 20;
}

.article-intro {
  font-size: 1.4rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 3rem;
  font-weight: 500;
  border-left: 6px solid var(--primary);
  padding-left: 2rem;
}

.article-body {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
}


.article-body h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Call To Action Buttons inside Article */
.cta-box {
  background: linear-gradient(135deg, #1dbf73 0%, #10a35f 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: white;
  box-shadow: 0 10px 20px rgba(29, 191, 115, 0.2);
}

.cta-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.fiverr-btn {
  display: inline-block;
  background-color: white;
  color: #1dbf73;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fiverr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  background-color: var(--card-bg);
  color: var(--text-light);
  margin-top: 4rem;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 1200px) { .masonry-grid { columns: 4 200px; } }
@media (max-width: 992px)  { .masonry-grid { columns: 3 200px; } }
@media (max-width: 768px)  { 
  .masonry-grid { columns: 2 150px; }
  .article-title { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
}
@media (max-width: 480px)  { .masonry-grid { columns: 1 100%; } }
