/* FACTORYVET INSIGHTS GRID & CAROUSEL STYLING - CLICKABLE VERSION */

/* Container Setup */
.fv-insight-grid .sow-carousel-container {
    padding: 20px 0 !important;
}

/* Individual Card Styling */
.fv-insight-grid .sow-carousel-item {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 1.5rem !important;
    padding: 0 !important;
    margin: 15px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Hover Effect */
.fv-insight-grid .sow-carousel-item:hover {
    transform: translateY(-8px) !important;
    border-color: #0D5C63 !important;
    box-shadow: 0 20px 25px -5px rgba(13, 92, 99, 0.1) !important;
}

/* Image/Thumbnail Styling */
.fv-insight-grid .sow-carousel-thumbnail a {
    display: block !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    overflow: hidden !important;
    aspect-ratio: 16 / 9 !important;
}

.fv-insight-grid .sow-carousel-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.fv-insight-grid .sow-carousel-item:hover .sow-carousel-thumbnail img {
    transform: scale(1.05) !important;
}

/* Title Styling */
.fv-insight-grid .sow-carousel-item h3 {
    padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    margin: 0 !important;
}

.fv-insight-grid .sow-carousel-item h3 a {
    color: #0D5C63 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important; /* Make the link a block to contain the pseudo-element */
}

/* THE FIX: Move "Read Article" inside the 'a' tag so it is clickable */
.fv-insight-grid .sow-carousel-item h3 a::after {
    content: 'Read Article →';
    display: block;
    margin-top: 1rem;
    color: #D97706;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease;
}

.fv-insight-grid .sow-carousel-item h3 a:hover::after {
    transform: translateX(5px);
}

/* Navigation Arrows Styling */
.fv-insight-grid .sow-carousel-nav a {
    background-color: #0D5C63 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fv-insight-grid .sow-carousel-nav a:hover {
    background-color: #D97706 !important;
}
/* FACTORYVET: TEMPLATE TITLE, IMAGE, AND CONTENT FIX */

/* 1. Constrain Title, Featured Image, and Article Text to 800px and center them */
.wp-block-post-title,
.wp-block-post-featured-image,
.wp-block-post-content {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 25px !important;
}

/* 2. Style the Post Title so it looks like a real Headline */
.wp-block-post-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin-top: 60px !important; 
    margin-bottom: 40px !important; 
}

/* 3. Style the Featured Image to look modern */
.wp-block-post-featured-image {
    margin-bottom: 40px !important; /* Space between image and text */
}
.wp-block-post-featured-image img {
    border-radius: 12px !important; /* Soft rounded corners */
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important; /* Subtle professional shadow */
}

/* 4. Style the Article Text for readability */
.wp-block-post-content {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    margin-bottom: 80px !important; 
}

/* 5. Fix mobile sizing for the Title */
@media (max-width: 768px) {
    .wp-block-post-title {
        font-size: 2rem !important;
        margin-top: 40px !important;
    }
}