:root {
    --green-deep: #1a3c2e;
    --green-mid: #2e6b4f;
    --teal: #4a9b8c;
    --teal-dark: #357a6d;
    --teal-light: #6bbdae;
    --green-accent: #3d9970;
    --gold: #c9a84c;
    --gold-light: #e8d59a;
    --cream: #faf7f2;
    --warm-white: #fffdf9;
    --text-dark: #1c1c1c;
    --text-mid: #4a4a4a;
    --text-light: #7a7a7a;
    --border: #e3ddd5;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .07);
    --shadow-md: 0 6px 28px rgba(0, 0, 0, .11);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .15);
    --radius: 14px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--ivory);
    color: var(--text-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.blog-hero-section {
    position: relative;
    min-height: 500px;
    background:
        url('https://www.puravidacasas.com/uploads/2/8/7/1/28712979/background-images/1526295871.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(10, 30, 20, 0.72) 0%,
            rgba(26, 60, 46, 0.60) 50%,
            rgba(10, 30, 20, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.blog-title {
    font-size: 2.50rem;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.breadcrumb {
    font-size: 0.83rem;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--green-mid);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--green-accent);
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-light);
}

/* ===== CARDS SECTION ===== */
.cards-section {
    background: var(--cream);
}

.blog-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.35);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .card-img-wrap img {
    transform: scale(1.07);
}

.card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--teal-light);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.card-body-custom {
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--green-accent);
    font-size: 0.8rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-mid);
    text-decoration: none;
    border: 1.5px solid var(--green-accent);
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    width: fit-content;
    transition: var(--transition);
}

.read-more-btn i {
    transition: transform 0.25s ease;
}

.read-more-btn:hover {
    background: var(--green-mid);
    border-color: var(--green-mid);
    color: #fff;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ===== PAGINATION ===== */
.custom-pagination .page-link {
    color: var(--green-mid);
    border-color: var(--border);
    background: var(--warm-white);
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    transition: var(--transition);
}

.custom-pagination .page-link:hover {
    background: var(--teal-dark);
    border-color: var(--teal);
    color: #fff;
}

.custom-pagination .page-item.active .page-link {
    background: var(--teal-dark);
    border-color: var(--teal);
    color: var(--warm-white);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.08);
}

.newsletter-heading {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.newsletter-sub {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.custom-input {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: var(--gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18) !important;
}

.subscribe-btn {
    background: var(--gold);
    border: none;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.form-success {
    color: var(--gold-light);
    font-size: 0.88rem;
    font-weight: 500;
}/* --- CUSTOM BLOG TABS --- */
.custom-tabs {
  gap: 10px;
  background: var(--warm-white);
  padding: 8px;
  border-radius: 50px;
  display: inline-flex;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.custom-tabs .nav-link {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.custom-tabs .nav-link:hover {
  color: var(--teal);
  background: rgba(74, 155, 140, 0.05);
}

.custom-tabs .nav-link.active {
  background: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(74, 155, 140, 0.3);
}

@media (max-width: 767px) {
  .custom-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 10px;
  }
  
  .custom-tabs::-webkit-scrollbar {
    height: 3px;
  }
  
  .custom-tabs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
  }
}
