/* ==========================================================================
   PREMIUM LIGHT THEME STYLES FOR BLOG PAGE (BLOG.HTML) - 4 CARDS PER ROW
   ========================================================================== */

/* Main Page Section Background */
.blog-main-section {
  background-color: #f8f4ec !important;
  padding: 60px 0 80px !important;
}

/* Page Banner */
.page-banner {
  background-color: #f8f4ec !important;
  border-bottom: 1px solid #e5dac6 !important;
  padding: 65px 0 45px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(170, 124, 51, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.banner-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 3.2rem !important;
  color: #1a1714 !important;
  margin-bottom: 10px;
  line-height: 1.15;
}

.banner-title .gold-text {
  color: #aa7c33 !important;
  background: linear-gradient(135deg, #c5a059 0%, #aa7c33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner-subtitle {
  color: #555048 !important;
  font-size: 1.05rem !important;
  max-width: 650px;
  margin: 0 auto;
}

/* Controls (Filter Categories & Search) */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-btn {
  background: #ffffff !important;
  border: 1px solid #e2d7c5 !important;
  color: #555048 !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.cat-btn.active, .cat-btn:hover {
  background: #aa7c33 !important;
  color: #ffffff !important;
  border-color: #aa7c33 !important;
  box-shadow: 0 6px 15px rgba(170, 124, 51, 0.25);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  background: #ffffff !important;
  border: 1px solid #e2d7c5 !important;
  color: #1a1714 !important;
  padding: 10px 16px 10px 42px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #aa7c33 !important;
  box-shadow: 0 0 12px rgba(170, 124, 51, 0.2);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aa7c33 !important;
  font-size: 0.9rem;
}

/* 4 CARDS PER ROW LAYOUT GRID */
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* 4 CARDS IN 1 ROW */
  gap: 24px !important;
}

/* ULTRA PREMIUM LIGHT BLOG CARD */
.blog-card {
  background: #ffffff !important;
  border: 1px solid #e5dccb !important;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: #aa7c33 !important;
  box-shadow: 0 16px 35px rgba(170, 124, 51, 0.18);
}

.blog-img-box {
  height: 185px !important;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f4ede2;
}

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

.blog-card:hover .blog-img-box img {
  transform: scale(1.07);
}

.blog-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(26, 23, 20, 0.88);
  color: #e5c17c;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 20px 18px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #777065 !important;
  margin-bottom: 10px;
}

.blog-meta-info i {
  color: #aa7c33;
}

.blog-card-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.25rem !important;
  color: #1a1714 !important;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #aa7c33 !important;
}

.blog-card-excerpt {
  color: #555048 !important;
  font-size: 0.88rem !important;
  margin-bottom: 18px;
  line-height: 1.55;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  color: #aa7c33 !important;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease;
}

.read-more-btn:hover {
  color: #c5a059 !important;
  gap: 10px;
}

/* ULTRA PREMIUM LIGHT THEME BLOG MODAL POPUP */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #ffffff !important;
  border: 1px solid #e5dccb !important;
  border-radius: 12px !important;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 26px 30px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #aa7c33 !important;
  border: none !important;
  color: #ffffff !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(170, 124, 51, 0.3);
}

.modal-close-btn i {
  color: #ffffff !important;
  font-size: 1rem;
}

.modal-close-btn:hover {
  background: #1a1714 !important;
  color: #ffffff !important;
  transform: rotate(90deg);
}

.modal-category-badge {
  font-family: var(--font-luxury, 'Cinzel', serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aa7c33;
  background: #f7f2ea;
  border: 1px solid #e2d7c5;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-article-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.75rem !important;
  color: #1a1714 !important;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 700;
}

.modal-author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem !important;
  color: #666055 !important;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee6d8;
}

.modal-author-meta i {
  color: #aa7c33;
  margin-right: 4px;
}

.modal-img-container {
  width: 100%;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e5dccb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.modal-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-article-body {
  color: #2c2824 !important;
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  white-space: pre-line;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}
