
/*
Theme Name: Newspaper Child
Theme URI: https://etawahlive.com/
Description: Custom child theme for Etawah Live
Author: Etawah Live
Template: Newspaper
Version: 1.0.0
Text Domain: newspaper-child
*/

/* Etawah Live Custom Directory Styles */

/* Etawah Live - Directory Profile Share Card */
.el-profile-sharing {
    margin: 28px 0 35px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f7f9ff, #ffffff);
    border: 1px solid #e3e9f5;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(25, 48, 90, 0.06);
}

.el-share-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.el-share-heading-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #243b80;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
}

.el-share-heading h2 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 700;
    color: #17264d;
}

.el-share-heading p {
    margin: 0;
    color: #68748b;
    font-size: 13px;
}

.el-share-buttons {
    padding-top: 17px;
    border-top: 1px solid #e8edf5;
}

.el-share-buttons .a2a_kit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

@media (max-width: 600px) {
    .el-profile-sharing {
        padding: 18px 15px;
    }
    .el-share-heading h2 {
        font-size: 17px;
    }
}

/* =====================================
   ETAWAH LIVE BUSINESS DIRECTORY
===================================== */

.el-directory-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto 60px;
    padding: 0 15px;
    color: #252b38;
}

.el-directory-header {
    text-align: center;
    padding: 35px 15px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #172d63, #3159a0);
    border-radius: 16px;
    color: #fff;
}

.el-directory-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d9e5ff;
}

.el-directory-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 12px 0;
}

.el-directory-header p {
    color: #e5ecff;
    font-size: 16px;
    margin: 0;
}

.el-directory-filters {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    padding: 22px;
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 13px;
    box-shadow: 0 5px 22px rgba(20, 40, 80, .06);
}

.el-directory-filters label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #303b50;
}

.el-directory-filters input,
.el-directory-filters select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #dce1e9;
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
    color: #303b50;
}

.el-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.el-filter-actions button {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 7px;
    background: #2455a4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.el-filter-actions a {
    color: #2455a4;
    font-size: 14px;
    font-weight: 600;
}

.el-directory-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.el-directory-results-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #202c43;
}

.el-directory-results-heading span {
    color: #657087;
    font-size: 14px;
}

.el-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.el-directory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebf1;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(20, 40, 80, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.el-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 40, 80, .12);
}

.el-card-image {
    height: 190px;
    overflow: hidden;
    background: #edf1f8;
}

.el-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.el-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #3159a0;
    font-size: 55px;
    font-weight: 800;
}

.el-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px;
}

.el-card-type {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    background: #edf2ff;
    color: #28509a;
    font-size: 11px;
    font-weight: 700;
}

.el-card-content h3 {
    width: 100%;
    margin: 0 0 7px;
    color: #202c43;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.el-card-designation {
    margin: 0 0 12px;
    color: #69758a;
    font-size: 14px;
    line-height: 1.5;
}

.el-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.el-card-tags span {
    padding: 5px 9px;
    border-radius: 5px;
    background: #f2f4f8;
    color: #4d596d;
    font-size: 11px;
}

.el-card-location {
    margin: auto 0 16px;
    padding-top: 5px;
    color: #59677c;
    font-size: 13px;
}

.el-card-button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 11px 15px;
    border-radius: 7px;
    background: #2455a4;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.el-card-button:hover {
    background: #183d7e;
    color: #fff !important;
}

.el-directory-empty {
    padding: 45px 20px;
    text-align: center;
    background: #f7f9fc;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
}

.el-directory-empty h3 {
    color: #263b70;
}

.el-directory-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.el-directory-pagination a {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border: 1px solid #dce2ed;
    border-radius: 7px;
    color: #2455a4;
}

.el-directory-pagination a.active {
    background: #2455a4;
    border-color: #2455a4;
    color: #fff;
}

@media (max-width: 900px) {
    .el-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .el-directory-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .el-directory-wrap {
        padding: 0 10px;
        margin-top: 20px;
    }

    .el-directory-header {
        padding: 27px 12px;
    }

    .el-directory-header h1 {
        font-size: 23px;
    }

    .el-directory-header p {
        font-size: 14px;
    }

    .el-directory-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .el-filter-actions {
        justify-content: flex-start;
    }

    .el-directory-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .el-card-image {
        height: 210px;
    }

    .el-directory-results-heading h2 {
        font-size: 19px;
    }
}

/* FULL WIDTH - DIRECTORY TEST PAGE ONLY */
body.page-id-81043 .td-main-content-wrap .td-container {
    width: calc(100% - 30px) !important;
    max-width: 1200px !important;
}

body.page-id-81043 .td-main-content-wrap .td-pb-span8 {
    width: 100% !important;
}

body.page-id-81043 .td-main-content-wrap .td-pb-span4 {
    display: none !important;
}

body.page-id-81043 .el-directory-wrap {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Hide automatic AddToAny sharing on Directory Test page only */
body.page-id-81043 .addtoany_share_save_container {
    display: none !important;
}


/* Hide breadcrumb and page title on Directory Test only */
body.page-id-81043 .td-crumb-container,
body.page-id-81043 .td-page-title {
    display: none !important;
}



/* ETAWAH LIVE DIRECTORY IMAGE BANNER */
.el-directory-header {
    padding: 0 !important;
    margin-bottom: 28px;
    background: none !important;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 8px 28px rgba(20, 40, 80, 0.10);
}

.el-directory-header .el-directory-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
    border-radius: 16px;
}

@media (max-width: 767px) {
    .el-directory-header {
        padding: 0 !important;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .el-directory-header .el-directory-banner {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}
