/**
 * Theme Name: Player Child
 * Template: astra
 * Version: 1.0.0
 * Text Domain: astra-child
 */
/*home styles*/
.homepage-hero {
    padding: 40px 0 32px;
    background: #fdf8f4;
}

.homepage-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.homepage-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b01217;
    font-weight: 600;
}

.homepage-kicker-icon {
    font-size: 18px;
}

.homepage-title {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #171820;
}

.homepage-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 36rem;
    margin-bottom: 22px;
}

.homepage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.homepage-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.homepage-button-primary {
    background: #b01217;
    color: #fff;
}

.homepage-button-secondary {
    background: transparent;
    color: #b01217;
    border: 1px solid #e5d5cf;
}

.homepage-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 8px;
}

.homepage-feature {
    max-width: 160px;
    font-size: 14px;
}

.homepage-feature-icon {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.homepage-feature strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.homepage-feature p {
    margin: 0;
    color: #6b7280;
}

.homepage-hero-image-wrap {
    text-align: right;
}

.homepage-hero-image {
    max-width: 100%;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
    .homepage-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .homepage-hero-image-wrap {
        text-align: center;
        margin-top: 24px;
    }

    .homepage-title {
        font-size: 32px;
    }
}
/* Astra single layout reset — applies to all single posts that use the hero */
body.single-player .ast-container,
body.single-player .site-content,
body.single-player .content-area,
body.single-player .site-main,
body.single-player .ast-single-post,
body.single-player article,
body.single-player .post,
body.single-player .entry-content,
body.single-profile .ast-container,
body.single-profile .site-content,
body.single-profile .content-area,
body.single-profile .site-main,
body.single-profile .ast-single-post,
body.single-profile article,
body.single-profile .post,
body.single-profile .entry-content {
    width: 100% !important;
    max-width: 100% !important;
}

body.single-player .ast-container,
body.single-profile .ast-container {
    display: block !important;
}

body.single-player .content-area,
body.single-player .site-main,
body.single-profile .content-area,
body.single-profile .site-main {
    width: 100% !important;
    flex: 0 0 100% !important;
}

body.single-player .widget-area,
body.single-player aside,
body.single-player .sidebar-main,
body.single-profile .widget-area,
body.single-profile aside,
body.single-profile .sidebar-main {
    display: none !important;
}

/* Section 1 — hero (shared for Player + Profile) */
.player.player-hero {
    padding: 36px 0 0 !important;
    background: #f6f6f8;
}

.player-hero .container {
    max-width: 1140px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.player-hero-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e7e7ea;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    padding: 24px;
    overflow: hidden;
}

.player-banner {
    align-items: center;
}

.player-photo {
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f6;
}

.player-photo img {
    width: 100%;
    height: 470px;
    object-fit: cover;
}

.player-summary {
    position: relative;
    min-height: 470px;
    padding: 10px 18px 10px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.player-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 118px;
    width: 2px;
    height: 210px;
    background: #d7a62d;
    border-radius: 999px;
}

.player-name {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    max-width: 340px;
    font-size: 56px;
    line-height: 0.98;
    letter-spacing: -1.5px;
    font-weight: 700;
    color: #08245c;
    word-break: break-word;
}

.player-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.player-meta-row {
    display: grid;
    grid-template-columns: 40px 100px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8eb;
}

.player-meta-row:last-child {
    border-bottom: none;
}

.player-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #08245c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 6px 15px rgba(8, 36, 92, 0.16);
}

.player-meta-label {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7c8696;
}

.player-meta-value {
    min-width: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #12234d;
    overflow-wrap: anywhere;
}

/* Section 2 — information (shared for Player + Profile) */
.player-information {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    padding: 28px 0 70px !important;
    background: #f6f6f8;
}

.player-information .container {
    max-width: 1140px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.player-information .row {
    align-items: flex-start;
}

.player-profile-side {
    position: relative;
    padding-right: 28px;
    min-height: 100%;
}

.player-profile-side::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #e5e7eb;
}

.player-profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
}

.player-profile-heading .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #08245c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 42px;
}

.player-profile-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0b2458;
}

.player-detail {
    padding-left: 30px;
    background: transparent;
    color: #16233f;
}

.player-detail h2 {
    margin: 0 0 24px;
    font-size: 64px;
    line-height: 1.04;
    letter-spacing: -1.5px;
    font-weight: 700;
    color: #1c2b4a;
}

.player-detail p {
    margin: 0 0 26px;
    font-size: 18px;
    line-height: 1.85;
    color: #16233f;
}

/* Responsive hero + information (shared) */
@media (max-width: 1199px) {
    .player-name {
        max-width: 300px;
        font-size: 48px;
    }

    .player-photo img,
    .player-summary {
        height: 420px;
        min-height: 420px;
    }

    .player-summary::before {
        top: 96px;
        height: 190px;
    }

    .player-detail h2 {
        font-size: 52px;
    }
}

@media (max-width: 991px) {
    .player.player-hero {
        padding-top: 24px !important;
    }

    .player-hero-card {
        padding: 18px;
        border-radius: 18px;
    }

    .player-photo img {
        height: auto;
        max-height: 460px;
    }

    .player-summary {
        min-height: auto;
        height: auto;
        padding: 22px 0 0;
    }

    .player-summary::before {
        display: none;
    }

    .player-name {
        max-width: 100%;
        margin-bottom: 22px;
        font-size: 40px;
    }

    .player-profile-side {
        padding-right: 0;
        margin-bottom: 18px;
    }

    .player-profile-side::after {
        display: none;
    }

    .player-detail {
        padding-left: 0;
        padding-top: 20px;
    }

    .player-detail h2 {
        font-size: 42px;
    }

    .player-detail,
    .player-detail p {
        font-size: 16px;
        line-height: 1.75;
    }
}

@media (max-width: 767px) {
    .player-hero .container,
    .player-information .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .player-name {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .player-meta-row {
        grid-template-columns: 40px 1fr;
        column-gap: 12px;
        row-gap: 3px;
        padding: 13px 0;
    }

    .player-meta-label,
    .player-meta-value {
        grid-column: 2 / 3;
    }

    .player-meta-label {
        font-size: 12px;
    }

    .player-meta-value {
        font-size: 16px;
    }

    .player-detail h2 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }
}

/* Archive Player — markup styling */

body.post-type-archive-player .site-content,
body.post-type-archive-player .ast-container,
body.post-type-archive-player .content-area,
body.post-type-archive-player .site-main,
body.tax-division .site-content,
body.tax-division .ast-container,
body.tax-division .content-area,
body.tax-division .site-main,
body.tax-city .site-content,
body.tax-city .ast-container,
body.tax-city .content-area,
body.tax-city .site-main,
body.tax-squad .site-content,
body.tax-squad .ast-container,
body.tax-squad .content-area,
body.tax-squad .site-main {
    width: 100% !important;
    max-width: 100% !important;
}

body.post-type-archive-player .ast-container,
body.tax-division .ast-container,
body.tax-city .ast-container,
body.tax-squad .ast-container {
    display: block !important;
}

body.post-type-archive-player .widget-area,
body.post-type-archive-player aside,
body.post-type-archive-player .sidebar-main,
body.tax-division .widget-area,
body.tax-division aside,
body.tax-division .sidebar-main,
body.tax-city .widget-area,
body.tax-city aside,
body.tax-city .sidebar-main,
body.tax-squad .widget-area,
body.tax-squad aside,
body.tax-squad .sidebar-main {
    display: none !important;
}

.players-archive {
    background: #f8f3f3;
    padding: 42px 0 72px;
}

.players-archive .container {
    max-width: 1240px;
    padding-left: 20px;
    padding-right: 20px;
}

.players-header {
    background: #ffffff;
    border: 1px solid #efe7e7;
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.players-title {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
    color: #8f0909;
}

.players-grid {
    margin-left: -12px;
    margin-right: -12px;
    row-gap: 24px;
}

.players-grid > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
}

.player-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ece6e6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.player-card-image {
    display: block;
    overflow: hidden;
    background: #e9edf1;
    text-decoration: none;
}

.player-card-image img,
.player-card-image .img-fluid,
.player-card-image .wp-post-image {
    display: block;
    width: 100%;
    height: 250px;
    max-width: none;
    object-fit: cover;
}

.player-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 22px;
    gap: 0;
}

.player-card-name {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efeaea;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.player-card-name a {
    color: #8f0909;
    text-decoration: none;
}

.player-card-name a:hover {
    color: #6f0606;
}

.player-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fbf7f4;
    border: 1px solid #f1e7e3;
    overflow: hidden;
}

.player-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 22px;
    border-bottom: 1px solid #f1e7e3;
}

.player-card-meta-row:last-child {
    border-bottom: none;
}

.player-card-meta-text {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    color: #374151;
    font-weight: 600;
}

/* Slight variation per row (optional) */
.player-card-meta-row:first-child .player-card-meta-text {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #b01217;
    font-weight: 500;
}

.player-card-meta-row:nth-child(2) .player-card-meta-text,
.player-card-meta-row:nth-child(3) .player-card-meta-text {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.player-card-meta-icon {
    width: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    opacity: 0.8;
}

.player-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 160px;
    margin-top: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b30d0d 0%, #8f0909 100%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(143, 9, 9, 0.18);
}

.players-pagination {
    margin-top: 36px;
}

.players-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.players-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #ece7e7;
    color: #172033;
    text-decoration: none;
}

.players-pagination .page-numbers.current,
.players-pagination .page-numbers:hover {
    background: #8f0909;
    border-color: #8f0909;
    color: #ffffff;
}

.player-card-position,
.player-card-division {
    position: relative;
    margin: 0 0 18px;
    padding: 18px 0 0 22px;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    color: #1f2433;
    letter-spacing: -0.8px;
}

.player-card-position::before,
.player-card-division::before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 1.6px;
    color: #a30c0c;
}

.player-card-position::after,
.player-card-division::after {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 4px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c20d0d 0%, #8f0909 100%);
}

.player-card-position::before {
    content: "POSITION";
}

.player-card-division::before {
    content: "DIVISION";
}

@media (max-width: 991px) {
    .players-title {
        font-size: 36px;
    }

    .player-card-image img,
    .player-card-image .img-fluid,
    .player-card-image .wp-post-image {
        height: 230px;
    }

    .player-card-name {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .players-archive {
        padding: 30px 0 48px;
    }

    .players-archive .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .players-header {
        padding: 22px 20px;
        margin-bottom: 22px;
    }

    .players-title {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .players-grid {
        margin-left: -8px;
        margin-right: -8px;
        row-gap: 18px;
    }

    .players-grid > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .player-card-image img,
    .player-card-image .img-fluid,
    .player-card-image .wp-post-image {
        height: 220px;
    }

    .player-card-content {
        padding: 16px 16px 20px;
    }

    .player-card-name {
        font-size: 20px;
    }

    .player-card-button {
        width: 100%;
        align-self: stretch;
        min-width: 0;
    }

    .player-card-position,
    .player-card-division {
        padding-left: 18px;
        font-size: 26px;
        margin-bottom: 16px;
    }

    .player-card-position::before,
    .player-card-division::before {
        font-size: 11px;
        letter-spacing: 1.3px;
    }

    .player-card-position::after,
    .player-card-division::after {
        width: 4px;
        height: 44px;
    }
}

.players-filters {
    margin: 0 0 30px;
}

.players-filters {
    background: #ffffff;
    border: 1px solid #efe7e7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.players-filters .searchandfilter > div > ul {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(170px, 1fr)) auto;
    gap: 16px;
    align-items: end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.players-filters .searchandfilter ul li {
    margin: 0;
    padding: 0;
}

.players-filters .searchandfilter h4 {
    margin: 0 0 10px;
    color: #8f0909;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.players-filters .searchandfilter input[type="text"],
.players-filters .searchandfilter select {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid #e9e3e3;
    border-radius: 10px;
    background: #ffffff;
    color: #4a5565;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    appearance: none;
    -webkit-appearance: none;
}

.players-filters .searchandfilter input[type="text"]::placeholder {
    color: #9aa3af;
    opacity: 1;
}

.players-filters .searchandfilter select {
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.players-filters .searchandfilter input[type="text"]:focus,
.players-filters .searchandfilter select:focus {
    outline: none;
    border-color: #c97d7d;
    box-shadow: 0 0 0 4px rgba(143, 9, 9, 0.08);
}

.players-filters .searchandfilter input[type="submit"] {
    height: 56px;
    padding: 0 34px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #b30d0d 0%, #8f0909 100%);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(143, 9, 9, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.players-filters .searchandfilter input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(143, 9, 9, 0.22);
}

.players-filters .searchandfilter input[type="hidden"] {
    display: none !important;
}

@media (max-width: 1199px) {
    .players-filters .searchandfilter > div > ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .players-filters .searchandfilter > div > ul > li:first-child {
        grid-column: 1 / -1;
    }

    .players-filters .searchandfilter > div > ul > li:last-child {
        grid-column: 1 / -1;
    }

    .players-filters .searchandfilter input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .players-filters {
        margin-bottom: 22px;
    }

    .players-filters .searchandfilter > div > ul {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .players-filters .searchandfilter h4 {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .players-filters .searchandfilter input[type="text"],
    .players-filters .searchandfilter select,
    .players-filters .searchandfilter input[type="submit"] {
        height: 52px;
        font-size: 15px;
    }

    .players-filters .searchandfilter input[type="submit"] {
        width: 100%;
    }
}