/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* =========================================
   AUTHORITY HERO
========================================= */

.authority-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 160px 20px;
    background: url('https://jemiva.com/wp-content/uploads/2026/02/jemiva-hero-image-6.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
    border-radius: 0px 0px 50px 50px;
}

.authority-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.authority-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.09);
    border-radius: 0px 0px 50px 50px;
}

.authority-hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
}


.authority-hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
}

.authority-hero p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   GRID SECTION
========================================= */

.authority-grid-section {
    padding: 60px 20px 100px;
    background: #f6f5f2;
        margin: 50px 0px 50px 0px;
    border-radius: 20px;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* =========================================
   CARD
========================================= */

.authority-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.authority-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.authority-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.authority-content {
    padding: 22px;
}

.authority-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #111;
}

.authority-link {
    font-size: 14px;
    color: #4a7c59;
    font-weight: 500;
}
/* =========================================
   FIX ASTRA FLEX ON AUTHORITY TEMPLATE
========================================= */

/* Target ONLY Plant Authority Template */
.page-template-page-plant-authority .ast-row {
    display: block !important;
}

.page-template-page-plant-authority .ast-primary {
    width: 100% !important;
    flex: unset !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {
    .authority-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .authority-hero {
        height: 300px;
    }
    .authority-hero-inner {
        margin-top: -90px;
    }
}

@media (max-width: 600px) {

    .authority-hero h1 {
        font-size: 36px;
    }

    .authority-grid {
        grid-template-columns: 1fr;
    }

    .authority-image img {
        height: 220px;
    }
    .authority-hero-inner {
        margin-top: -90px;
    }
}
}