/**
 * man_animal_conflict.css
 * Scoped styling for the Man-Animal Conflict (Wildlife Depredation) listing dashboard.
 */

.mac-page {
    --forest:     #0a2e1a;
    --emerald:    #059669;
    --gold:       #f1c40f;
    --cream:      #f9f6ef;
    --fog:        #e8f0e9;
    --ink:        #0f1c10;
    --white:      #ffffff;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
    --red:        #e74c3c;

    background: var(--cream);
    color: var(--ink);
    font-family: 'Open Sans', sans-serif;
    padding-bottom: 90px;
    overflow-x: hidden;
}

.mac-wrap {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* === HEADER / PAGE HERO === */
.mac-header-desc {
    text-align: center;
    max-width: 850px;
    margin: 30px auto 40px auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}
.mac-title-bar {
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 20px auto 45px auto;
}

.mac-section-title {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    color: var(--forest);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 40px 0 8px 0;
    text-align: left;
    border-left: 5px solid var(--emerald);
    padding-left: 15px;
}

.mac-section-subtitle {
    font-size: 0.95rem;
    color: #475569;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    text-align: left;
}

/* === ANTI-DEPREDATION MEASURES CARDS === */
.mac-measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.mac-measure-card {
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s var(--ease);
}
.mac-measure-card:hover {
    transform: translateY(-5px);
    border-color: var(--emerald);
    box-shadow: 0 20px 40px rgba(10,46,26,0.06);
}
.mac-measure-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 20px;
    border: 1px solid var(--fog);
}
.mac-measure-card:hover .mac-measure-icon {
    background: var(--emerald);
    color: var(--white);
    box-shadow: 0 0 15px rgba(5,150,105,0.2);
}
.mac-measure-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 10px;
}
.mac-measure-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #55695c;
}

/* === TABLE STYLING === */
.mac-table-container {
    background: var(--white);
    border: 1px solid var(--fog);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    margin-bottom: 50px;
    overflow-x: auto;
}
.mac-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.mac-table th {
    background: var(--forest);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    text-align: left;
    border: none;
}
.mac-table th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.mac-table th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.mac-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s ease;
}
.mac-table tbody tr:last-child td {
    border-bottom: none;
}
.mac-table tbody tr:hover td {
    background: rgba(5,150,105,0.03);
    color: var(--forest);
    font-weight: 700;
}

/* Highlight badge inside table */
.mac-highlight-td {
    color: var(--red);
    font-weight: 800;
}

/* Total Row styling */
.mac-table-total {
    font-weight: 800;
    background: var(--cream) !important;
}
.mac-table-total td {
    color: var(--forest) !important;
    border-top: 2px solid var(--emerald);
    border-bottom: none !important;
}

/* === PARALLEL IMAGES LAYOUT === */
.mac-parallel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
@media (max-width: 768px) {
    .mac-parallel-row {
        grid-template-columns: 1fr;
    }
}
.mac-img-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--fog);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease);
}
.mac-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.mac-img-frame {
    height: 300px;
    overflow: hidden;
}
.mac-img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.mac-img-card:hover .mac-img-frame img {
    transform: scale(1.08);
}
.mac-img-info {
    padding: 25px;
}
.mac-img-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 6px;
}
.mac-img-cap {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}
