/* ==========================================================================
   HAIR CARE EDUCATION SECTION
   Class: .custom-hair-education
   Target: Add this class to the Container Block wrapping the Heading and Post Grid
   ========================================================================== */

/* 1. Section Container */
.custom-hair-education {
    background-color: #FFF9F0 !important;
    /* Creamy Beige Background */
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* 2. Top Heading Styling */
/* Assuming UAGB Advanced Heading */
.custom-hair-education h1,
.custom-hair-education h2,
.custom-hair-education .uagb-heading-text {
    font-family: "Playfair Display", serif !important;
    text-align: center;
    color: #0A1E35 !important;
    /* Dark Navy/Black */
    /* Dark Navy/Black */
    margin-bottom: 15px;
    position: relative;
    display: block;
}

/* Decorative Line Above Heading */
.custom-hair-education h1::before,
.custom-hair-education h2::before,
.custom-hair-education .uagb-heading-text::before {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #C5A059;
    /* Gold */
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* If user colors distinct words ("Education") manually in editor, they usually use a span. 
   We define the Gold accent color just in case they need a utility class or stick to editor color. */
.custom-hair-education .has-text-color-primary,
.custom-hair-education strong,
.custom-hair-education em {
    color: #C5A059 !important;
    /* Gold */
    font-style: normal;
}

/* Tagline/Description */
.custom-hair-education p,
.custom-hair-education .uagb-desc-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    color: #555555;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* 3. Post Grid Card Styling */
/* Targets UAGB Post Grid */
.custom-hair-education .uagb-post__inner-wrap {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    /* Clips content to radius */
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    /* Ensure no internal padding pushes image */
}

.custom-hair-education .uagb-post__inner-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.2) !important;
}

/* Image Wrapper */
.custom-hair-education .uagb-post__image {
    margin-bottom: 0 !important;
    position: relative;
    /* Context for badge */
}

.custom-hair-education .uagb-post__image img {
    width: 100%;
    height: 229px !important;
    max-height: 229px !important;
    /* Force uniform height if needed, or object-fit */
    object-fit: cover;
    border-radius: 0 !important;
    /* Inner wrap handles radius */
}

/* "Read Time" Badge Mockup */
/* If the theme puts a category or meta here, we style it to look like the pill badge */


/* 4. Card Content */
.custom-hair-education .uagb-post__text {
    padding: 0 25px !important;
    /* Top/Bottom 0, Left/Right 25px */
    text-align: left;
}

/* Date / Meta */
.custom-hair-education .uagb-post-grid-byline {
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comment Section Styling */
.custom-hair-education .uagb-post-grid-byline .uagb-post__comment,
.custom-hair-education .uagb-post-grid-byline .comments-link,
.custom-hair-education .uagb-post-grid-byline .uagb-post__meta-comments {
    display: none !important;
    align-items: center;
    margin-left: 15px;
    color: #888888;
}

.custom-hair-education .uagb-post__comment svg,
.custom-hair-education .uagb-post__meta-comments svg {
    fill: #C5A059 !important;
    /* Gold Icon */
    width: 14px;
    height: 14px;
    margin-right: 5px;
    display: inline-block;
}

/* Title */
.custom-hair-education .uagb-post__title {
    margin-bottom: 10px !important;
}

.custom-hair-education .uagb-post__title a {
    font-family: "Playfair Display", serif !important;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.3;
    color: #0A1E35 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-hair-education .uagb-post__title a:hover {
    color: #C5A059 !important;
}

/* Excerpt */
.custom-hair-education .uagb-post__excerpt {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    /* margin-bottom removed as per request */
}

/* 5. Read More Link */
.custom-hair-education .uagb-post__cta a,
.custom-hair-education .uagb-post__cta .wp-block-button__link {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #C5A059 !important;
    /* Gold */
    text-transform: capitalize;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    border: none !important;
    padding-bottom: 25px !important;
    /* Bottom padding added to CTA as requested */
}

.custom-hair-education .uagb-post__cta a::after,
.custom-hair-education .uagb-post__cta .wp-block-button__link::after {
    content: "\2192";
    /* Right arrow */
    margin-left: 5px;
    transition: margin-left 0.2s ease;
}

.custom-hair-education .uagb-post__cta a:hover,
.custom-hair-education .uagb-post__cta .wp-block-button__link:hover {
    color: #A08030 !important;
    padding-left: 0 !important;
    /* No padding shift for link itself, just arrow */
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.custom-hair-education .uagb-post__cta a:hover::after,
.custom-hair-education .uagb-post__cta .wp-block-button__link:hover::after {
    margin-left: 10px;
}

/* 6. View All Button (Bottom) */
/* Assuming user adds a button block at the bottom */
.custom-hair-education .wp-block-button__link {
    background: linear-gradient(135deg, #D4AF37 0%, #B8952E 100%) !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
    margin-top: 30px;
}

.custom-hair-education .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* 7. Mobile Responsive */
@media (max-width: 768px) {
    .custom-hair-education .uagb-post__inner-wrap {
        margin-bottom: 20px;
    }
}

/* 8. Gold Line Decoration (Dynamically Added via JS) */
.custom-hair-education h1::before,
.custom-hair-education h2::before,
.custom-hair-education .uagb-heading-text::before,
.files-gold-decoration::before {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #C5A059;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}