
/* =========================================
   AST3 - THREE SECTION COMPONENT
========================================= */

.ast3 {
    --ast3-maroon: #7a2a10;
    --ast3-rust: #b9531f;
    --ast3-saffron: #ff8a00;
    --ast3-saffron-dark: #e07300;
    --ast3-ink: #3a2418;
    --ast3-muted: #8a6f60;
    --ast3-tint: #fff7ef;
    --ast3-border: #f3d9c0;
    --ast3-field: #ecc9a8;

    --ast3-grad: linear-gradient(
        135deg,
        var(--ast3-maroon),
        var(--ast3-rust) 55%,
        var(--ast3-saffron)
    );

    --ast3-grad-btn: linear-gradient(
        90deg,
        var(--ast3-saffron),
        var(--ast3-saffron-dark)
    );

    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--ast3-ink);
    font-size: 14px;
}

.ast3 * {
    box-sizing: border-box;
}

/* =========================================
   COMMON CARDS
========================================= */

.ast3 .ast3-col {
    position: relative;
    background: var(--ast3-tint);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(122,42,16,.18);
    border: 1px solid var(--ast3-border);
    height: 100%;
    min-width: 0;
}

.ast3 .ast3-hd {
    background: var(--ast3-grad);
    color: #fff;
    padding: 10px 14px;
    font-weight: bold;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ast3 .ast3-hd:before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ast3-saffron);
    box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}

.ast3 .ast3-bd {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}

/* =========================================
   PANCHANG
========================================= */

.ast3 .ast3-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ast3 .ast3-tile {
    background: #fff;
    border: 1px solid var(--ast3-border);
    border-left: 3px solid var(--ast3-saffron);
    border-radius: 8px;
    padding: 7px 9px;
    min-width: 0;
}

.ast3 .ast3-tile.wide {
    grid-column: 1 / -1;
}

.ast3 .ast3-lbl {
    font-size: .78em;
    color: var(--ast3-muted);
}

.ast3 .ast3-val {
    font-weight: bold;
    color: var(--ast3-maroon);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ast3 .ast3-val small {
    display: block;
    font-weight: normal;
    color: var(--ast3-muted);
    font-size: .8em;
}

.ast3 .ast3-location {
    text-align: center;
    font-weight: bold;
    color: var(--ast3-maroon);
    margin-top: 5px;
}

/* =========================================
   FORM
========================================= */

.ast3 .ast3-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ast3 .ast3-form .form-control,
.ast3 .ast3-form .form-select {
    width: 100%;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--ast3-field);
    border-radius: 6px;
    background-color: #fff;
    color: var(--ast3-ink);
    font-family: inherit;
    font-size: .92em;
    box-shadow: none;
}

.ast3 .ast3-form .form-control:focus,
.ast3 .ast3-form .form-select:focus {
    border-color: var(--ast3-saffron);
    box-shadow: 0 0 0 2px rgba(255,138,0,.15);
}

.ast3 .ast3-form .form-control::placeholder {
    color: var(--ast3-muted);
    opacity: .8;
}

.ast3 .ast3-r {
    display: grid;
    gap: 6px;
    margin-bottom: 6px;
    min-width: 0;
}

.ast3 .ast3-r2 {
    grid-template-columns: 1fr 1fr;
}

.ast3 .ast3-r3 {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.ast3 .ast3-r4 {
    grid-template-columns: 1fr 1fr 1fr;
}

.ast3 .ast3-gender {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: .9em;
    white-space: nowrap;
}

.ast3 .ast3-gender input {
    accent-color: var(--ast3-rust);
}

.ast3 .ast3-cap {
    font-size: .78em;
    color: var(--ast3-muted);
    margin: 0 0 3px 2px;
}

.ast3 .ast3-pages {
    font-size: .78em;
    color: var(--ast3-muted);
    text-align: center;
    margin: 2px 0 0;
}

/* =========================================
   BUTTONS
========================================= */

.ast3 .ast3-cta {
    display: block;
    width: 100%;
    border: 0;
    background: var(--ast3-grad-btn);
    color: #fff;
    font: bold 1em "Trebuchet MS", Arial, sans-serif;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: filter .2s;
}

.ast3 .ast3-cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.ast3 .ast3-cta:focus-visible {
    outline: 2px solid var(--ast3-maroon);
    outline-offset: -4px;
}

/* =========================================
   TESTIMONIAL SLIDER - SWIPER JS
========================================= */

.ast3 .ast3-swiper {
    width: 100%;
    flex: 1;
    min-width: 0;
    min-height: 190px;
    overflow: hidden;
}

.ast3 .ast3-swiper .swiper-wrapper {
    align-items: stretch;
}

.ast3 .ast3-swiper .swiper-slide {
    height: auto;
    display: flex;
    min-width: 0;
}

.ast3 .ast3-slide {
    position: relative;
    width: 100%;
    min-height: 190px;
    padding: 14px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ast3 .ast3-slide:before {
    content: "\201C";
    display: block;
    font: bold 52px/.8 Georgia, serif;
    color: var(--ast3-saffron);
    margin-bottom: 6px;
}

.ast3 .ast3-slide p {
    margin: 0 0 10px;
    line-height: 1.55;
    font-style: italic;
    overflow-wrap: anywhere;
}

.ast3 .ast3-slide b {
    display: block;
    color: var(--ast3-maroon);
}

.ast3 .ast3-slide span {
    font-size: .82em;
    color: var(--ast3-muted);
}

/* =========================================
   SWIPER CONTROLS
========================================= */

.ast3 .ast3-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 12px 12px;
}

.ast3 .ast3-arr {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--ast3-field);
    background: #fff;
    color: var(--ast3-rust);
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.ast3 .ast3-arr:hover {
    background: var(--ast3-saffron);
    color: #fff;
    border-color: var(--ast3-saffron);
}

.ast3 .ast3-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ast3 .ast3-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: var(--ast3-field);
    opacity: 1;
    transition: all .2s;
}

.ast3 .ast3-pagination .swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 10px;
    background: var(--ast3-saffron);
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:767.98px) {

    .ast3 .ast3-col {
        height: auto;
        min-height: 220px;
    }

    .ast3 .ast3-form {
        min-height: 0;
    }

    .ast3 .ast3-swiper {
        min-height: 190px;
    }

    .ast3 .ast3-slide {
        min-height: 190px;
    }
}

@media(max-width:400px) {

    .ast3 .ast3-grid2,
    .ast3 .ast3-r2 {
        grid-template-columns: 1fr;
    }

    .ast3 .ast3-gender {
        justify-content: flex-start;
    }
}

@media(prefers-reduced-motion:reduce) {

    .ast3 .ast3-swiper .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}
