/* blog.css */

/* Blog Banner (Header Area) */
.blog-banner {
  background-color: var(--color-navy);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 8rem 0 10rem 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  z-index: 11;
}

.blog-banner h1 {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  position: relative;
  z-index: 5;
}

.blog-banner .breadcrumbs {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  position: relative;
  z-index: 5;
}

.blog-banner .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.blog-banner .breadcrumbs a:hover {
  color: var(--color-white);
}

.blog-banner .breadcrumbs span {
  color: var(--color-white);
  font-weight: 600;
  margin-left: 5px;
}

.blog-banner .cloud-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 5;
  pointer-events: none;
}

.blog-banner .cloud-divider svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-beige-light); /* Matches main background color */
}

/* Blog Main Layout */
.blog-main {
  padding: 4rem 0 6rem 0;
  position: relative;
  margin-top: -3rem;
  z-index: 10;
}

/* Blog Page Grid (2 columns on desktop) */
.blog-grid-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Section Grid on Home (3 columns on desktop) */
.blog-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Blog Cards */
.blog-card {
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(35, 59, 90, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(35, 59, 90, 0.12);
}

.blog-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.blog-card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-image-wrapper img {
  transform: scale(1.06);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Category badge if we want to expand */
.blog-card-category {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-navy);
  transition: color 0.3s ease;
}

.blog-card-title a {
  color: var(--color-navy);
}

.blog-card-title a:hover {
  color: var(--color-gold);
}

.blog-card-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-date i {
  color: var(--color-gold);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
  align-self: flex-start;
  margin-top: auto;
}

.blog-card-link:hover {
  color: var(--color-gold-hover);
  transform: translateX(3px);
}

/* Home Section Layout adjustment */
.home-blog-section {
  padding: 6rem 0;
  background-color: transparent;
  position: relative;
}

.home-blog-header {
  margin-bottom: 3rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .blog-grid-page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .blog-grid-home {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Blog Section Pencil Doodle */
.blog-header-doodle {
  position: absolute;
  left: -80px;
  top: -30px;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 10;
  animation: float-pencil 6s ease-in-out infinite;
}

@keyframes float-pencil {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -10px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-pencil-mobile {
  0% { transform: rotate(180deg) translate(0, 0); }
  50% { transform: rotate(176deg) translate(-4px, -10px); }
  100% { transform: rotate(180deg) translate(0, 0); }
}

@media (max-width: 991px) {
  .blog-header-doodle {
    display: block;
    width: 95px;
    left: 140px;
    top: -50px;
    animation: float-pencil-mobile 6s ease-in-out infinite;
  }
}
