/* =========================================
   VEDHAS — HOMEPAGE ARTICLE CARDS
   ========================================= */

/* Individual article cards */
.wp-block-query .wp-block-post-template > li {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    /* MORE HORIZONTAL SPACE */
    padding: 28px 34px;

    box-sizing: border-box;

    /* Slightly shorter, wider-feeling cards */
    min-height: 350px;

    /* Subtle depth */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);

    /* Smooth movement */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* Individual hover effect */
.wp-block-query .wp-block-post-template > li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.14);
}


/* Article titles */
.wp-block-query .wp-block-post-title {
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 20px;
}


/* Article excerpts */
.wp-block-query .wp-block-post-excerpt {
    line-height: 1.55;
    margin-top: 0;

    /* Allow a longer 20-word excerpt */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Read More */
.wp-block-query .wp-block-post-excerpt__more-text {
    margin-top: 10px;
}

.wp-block-query .wp-block-post-excerpt__more-link {
    font-weight: 600;
    text-decoration: none;
}


/* Article date */
.wp-block-query .wp-block-post-date {
    margin-top: 18px;
    font-size: 0.85em;
    opacity: 0.7;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .wp-block-query .wp-block-post-template > li {
        min-height: auto;
        padding: 24px 22px;
    }

}
/* =========================================
   VEDHAS — INTERACTIVE HOMEPAGE SECTIONS
   ========================================= */


/* -----------------------------------------
   MAIN SECTION
   ----------------------------------------- */

.vedhas-feature-section {
    position: relative;
    padding: 34px 38px;
    margin: 36px 0;

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* -----------------------------------------
   CURSOR / HOVER INTERACTION
   ----------------------------------------- */

@media (hover: hover) and (pointer: fine) {

    .vedhas-feature-section:hover {
        transform: translateY(-4px);

        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.09);

        border-color:
            rgba(0, 0, 0, 0.13);
    }

}


/* -----------------------------------------
   SECTION HEADINGS
   ----------------------------------------- */

.vedhas-feature-section h1,
.vedhas-feature-section h2,
.vedhas-feature-section h3 {
    margin-top: 0;

    transition:
        transform 0.3s ease;
}


@media (hover: hover) and (pointer: fine) {

    .vedhas-feature-section:hover h1,
    .vedhas-feature-section:hover h2,
    .vedhas-feature-section:hover h3 {
        transform: translateX(4px);
    }

}


/* -----------------------------------------
   SECTION LINKS
   ----------------------------------------- */

.vedhas-feature-section a {
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {

    .vedhas-feature-section a:hover {
        opacity: 0.72;
    }

}


/* -----------------------------------------
   SUBTLE SCROLL-ENTRY ANIMATION
   ----------------------------------------- */

/*
   Modern browsers animate the section as it
   enters the viewport while scrolling.
*/

@supports (animation-timeline: view()) {

    .vedhas-feature-section {
        animation-name: vedhas-section-reveal;
        animation-duration: 1ms;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
        animation-fill-mode: both;
    }

}


@keyframes vedhas-section-reveal {

    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* -----------------------------------------
   REDUCED MOTION
   ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .vedhas-feature-section {
        animation: none !important;
        transition: none !important;
    }

}
/* =========================================
   VEDHAS — ABOUT SECTION
   ========================================= */

.vedhas-about-section {
    position: relative;

    padding: 42px 44px;
    margin: 50px 0 30px;

    background: #ffffff;

    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Subtle hover interaction */
@media (hover: hover) and (pointer: fine) {

    .vedhas-about-section:hover {
        transform: translateY(-3px);

        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.06);
    }

}


/* Section heading */
.vedhas-about-section h1,
.vedhas-about-section h2,
.vedhas-about-section h3 {
    margin-top: 0;
    margin-bottom: 28px;

    transition: transform 0.3s ease;
}


@media (hover: hover) and (pointer: fine) {

    .vedhas-about-section:hover h1,
    .vedhas-about-section:hover h2,
    .vedhas-about-section:hover h3 {
        transform: translateX(5px);
    }

}


/* Opening statement */
.vedhas-about-section p:first-of-type {
    font-size: 1.08em;
    line-height: 1.65;
}


/* Closing statement */
.vedhas-about-section p:nth-last-of-type(1) {
    margin-top: 28px;
}


/* Discover Vedhas link */
.vedhas-about-section a {
    display: inline-block;

    margin-top: 10px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {

    .vedhas-about-section a:hover {
        transform: translateX(6px);
        opacity: 0.72;
    }

}


/* Mobile */
@media (max-width: 700px) {

    .vedhas-about-section {
        padding: 30px 24px;
        margin: 40px 0 20px;
    }

}
/* =========================================
   ABOUT VEDHAS — SCROLL REVEAL
   ========================================= */

@supports (animation-timeline: view()) {

    .vedhas-about-section {
        animation-name: vedhas-about-reveal;
        animation-duration: 1ms;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
        animation-fill-mode: both;
    }

}

@keyframes vedhas-about-reveal {

    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   DISCOVER VEDHAS — INTERACTION
   ========================================= */

.vedhas-about-section a {
    position: relative;
    text-decoration: none;
}

.vedhas-about-section a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .vedhas-about-section a:hover::after {
        width: 100%;
    }

}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .vedhas-about-section {
        animation: none !important;
        transition: none !important;
    }

}
