
/* ============================================
   BLOG HEADER
   ============================================ */

#blog-header {
    padding: clamp(10rem, 20vw, 14rem) 1rem clamp(4rem, 8vw, 6rem);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#blog-header .cs-container {
    font-family: "Cinzel", serif;
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

#blog-header .cs-content {
    width: 100%;
    max-width: 43.75rem;
}

#blog-header .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
}

#blog-header .cs-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 0 1.5rem 0;
    color: var(--bodyTextColorWhite);
}

#blog-header .cs-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6em;
    text-align: center;
    width: 100%;
    max-width: 40.625rem;
    margin: 0 auto;
    color: var(--bodyTextColorWhite);
    opacity: 0.95;
}

#blog-header .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#blog-header .cs-background:before {
    content: "";
    position: absolute;
    display: block;
    height: 125rem;
    width: 187.5rem;
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(5px);
    top: 70.3125rem;
    left: 50%;
    z-index: 1;
    transform: rotate(30deg) translateX(-50%);
}

#blog-header .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media only screen and (min-width: 48rem) {
    #blog-header .cs-background:before {
        top: 7.5rem;
        margin-left: -127.1875rem;
        transform: rotate(60deg);
    }
}

/* ============================================
   BLOG CATEGORIES / FILTERS
   ============================================ */

#blog-categories {
    padding: 2rem 1rem;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

#blog-categories .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
}

#blog-categories .cs-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

#blog-categories .cs-filter-button {
    font-family: "Raleway", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: var(--bodyTextColor);
    border: 2px solid #e0e0e0;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#blog-categories .cs-filter-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 105, 63, 0.15);
}

#blog-categories .cs-filter-button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#blog-categories .cs-filter-button i {
    font-size: 1rem;
}

/* ============================================
   BLOG GRID
   ============================================ */

#blog-grid {
    padding: var(--sectionPadding);
    background: #fff;
}

#blog-grid .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
}

#blog-grid .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
}

#blog-grid .cs-item {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

#blog-grid .cs-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#blog-grid .cs-item.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#blog-grid .cs-picture {
    width: 100%;
    height: 16rem;
    overflow: hidden;
    display: block;
    position: relative;
}

#blog-grid .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease;
}

#blog-grid .cs-item:hover .cs-picture img {
    transform: scale(1.1);
}

#blog-grid .cs-info {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#blog-grid .cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#blog-grid .cs-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    background: #f0e2cb;
    color: var(--primary);
    border-radius: 1rem;
}

#blog-grid .cs-date {
    font-size: 0.875rem;
    line-height: 1.2em;
    font-weight: 600;
    margin: 0;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#blog-grid .cs-icon {
    width: 1rem;
    height: auto;
}

#blog-grid .cs-h3 {
    font-family: "Cinzel", serif;
    font-size: 1.35rem;
    line-height: 1.3em;
    font-weight: 700;
    margin: 0;
    color: var(--headerColor);
}

#blog-grid .cs-desc {
    font-size: 1rem;
    line-height: 1.6em;
    margin: 0;
    color: var(--bodyTextColor);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#blog-grid .cs-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

#blog-grid .cs-read-time {
    font-size: 0.875rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#blog-grid .cs-read-time i {
    font-size: 0.85rem;
}

#blog-grid .cs-link {
    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 700;
    text-decoration: none;
    width: auto;
    margin-top: auto;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: gap 0.3s ease;
}

#blog-grid .cs-link:hover {
    gap: 0.75rem;
}

#blog-grid .cs-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

#blog-grid .cs-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   COMING SOON CARDS
   ============================================ */

#blog-grid .cs-coming-soon {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0e2cb 100%);
    border: 2px solid #d4c5b0;
}

#blog-grid .cs-coming-soon:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

#blog-grid .cs-coming-soon-content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    min-height: 400px;
    justify-content: center;
}

#blog-grid .cs-coming-soon .cs-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: rgba(242, 105, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

#blog-grid .cs-coming-soon .cs-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.7;
}

#blog-grid .cs-coming-soon .cs-h3 {
    font-size: 1.5rem;
    color: var(--headerColor);
    margin: 0;
}

#blog-grid .cs-coming-soon .cs-desc {
    font-size: 1rem;
    line-height: 1.6em;
    color: var(--bodyTextColor);
    max-width: 20rem;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
}

#blog-grid .cs-coming-soon .cs-coming-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

#blog-grid .cs-coming-soon .cs-coming-date i {
    font-size: 1rem;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */

#newsletter-cta {
    padding: var(--sectionPadding);
    background: #111926;
}

#newsletter-cta .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: auto;
}

#newsletter-cta .cs-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#newsletter-cta .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: .1em;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

#newsletter-cta .cs-title {
    font-family: "Cinzel", serif;
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--bodyTextColorWhite);
}

#newsletter-cta .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.6em;
    text-align: center;
    width: 100%;
    max-width: 40.625rem;
    margin: 0 0 2rem;
    color: var(--bodyTextColorWhite);
    opacity: 0.9;
}

#newsletter-cta .cs-form {
    width: 100%;
    max-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#newsletter-cta .cs-input {
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    width: 100%;
    height: clamp(3rem, 8vw, 3.5rem);
    padding: 0 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#newsletter-cta .cs-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#newsletter-cta .cs-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

#newsletter-cta .cs-button-solid {
    font-size: 1rem;
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #1a1a1a;
    width: 100%;
    padding: 0 2rem;
    background-color: var(--secondary);
    border: none;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.3s;
}

#newsletter-cta .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #5d574e;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
}

#newsletter-cta .cs-button-solid:hover {
    color: #fff;
}

#newsletter-cta .cs-button-solid:hover:before {
    width: 100%;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE - TABLET & DESKTOP
   ============================================ */

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #newsletter-cta .cs-form {
        flex-direction: row;
        align-items: stretch;
    }
    
    #newsletter-cta .cs-input {
        flex: 1;
    }
    
    #newsletter-cta .cs-button-solid {
        width: auto;
        min-width: 10rem;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #blog-grid .cs-card-group {
        grid-template-columns: repeat(3, 1fr);
    }
}