.content-area {
    display: flex !important;
    align-items: flex-start !important;
}

/* =========================
   TEAM GRID
========================= */
.tpp-grid {
/*     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 16px; */
	
	width: 100%;
    float: left;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 16px;
}

/* =========================
   TEAM CARD (BASE)
========================= */
.tpp-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* =========================
   TEAM FLIP EFFECT
========================= */
.tpp-flip-card {
    perspective: 1000px;
}

.tpp-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
	aspect-ratio:1 / 1
}

.tpp-flip-card:hover .tpp-flip-inner {
    transform: rotateY(180deg);
}

/* FRONT & BACK */
.tpp-flip-front,
.tpp-flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* FRONT */
.tpp-flip-front img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.tpp-flip-front h3 {
    font-size: 16px;
    font-weight: 600;
}

/* BACK */
.tpp-flip-back {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    transform: rotateY(180deg);
}

.tpp-flip-back img {
    width: 40px;
    margin-bottom: 6px;
}

.tpp-cups-count {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.tpp-flip-back small {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.img-title-div{
	display: flex;
    gap: 25px;
	align-items: center;
}

.vn-teamBanLogo{
	    width: 130px;
    height: 130px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
	
}

.vn-teamBanLogo img{
	z-index:9
}

.team-tropy-img{
	position: absolute;
    left: -17px;
    top: -7px;
}

.team-sm-lg{
	position:relative
}

.team-desc-para{
	margin:25px 0
}

.team-info-container{
	display: grid;
    gap: 10px;
    padding: 0 20px;
	grid-template-columns: auto auto;
}

.team-sm-lg::after{
	content: "";
    position: absolute;
    background-image: url(/wp-content/plugins/team-players-plugin/assets/img/rounded_spiral-teams-logo-cover-img.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 500px;
    height: 400px;
    right: -210px;
    top: -130px;
}

.team-details-container{
	background-color: #031945;
    background-size: cover;
    padding: 0 0 115px 0;
    overflow: hidden;
}

/* =========================
   PLAYER GRID
========================= */
.tpp-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 14px;
}

/* =========================
   PLAYER CARD
========================= */
/* PLAYER CARD LAYOUT */
.tpp-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.site-dark .tpp-player-card{
	background:#121314
}

a.tpp-player-card{
	text-decoration:none!important
}

.tpp-role-title{
	margin-top:25px
}

.tpp-player-desc-con{
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb !important;
    width: 100%;
}

.tpp-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* PLAYER IMAGE */
.tpp-player-card img {
    object-fit: cover;
    border-radius: 6px;
	height:220px!important
}


/* =========================
   STATS TABLE
========================= */
.tpp-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.tpp-table {
    min-width: 1200px;
    border-collapse: collapse;
}

.tpp-table th,
.tpp-table td {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    font-size: 13px;
}

.tpp-table th {
    background: #f8fafc;
    font-weight: 600;
}

body.site-dark .tpp-table th{
	background:#060C22
}

body.site-dark .tpp-table-wrap{
	background:transparent
}

/* =========================
   SEASON FILTER
========================= */
.tpp-season-filter {
    margin: 10px 0 18px;
}

.tpp-season-select-box{
	width:155px!important
}

#tpp-season-form{
	display: flex;
    gap: 10px;
}

.tpp-season-filter label {
    margin-right: 6px;
    font-size: 13px;
}

/* =========================
   BREADCRUMB / BACK
========================= */
.tpp-breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
	width: 100%;
    padding:10px;
    background: #061e59;
    color: #fff;
    position: relative;
    z-index: 2;
}

.tpp-breadcrumb a {
    text-decoration: none!important;
    color: #FFF;
}

.tpp-breadcrumb span {
    margin: 0 6px;
    color:#FFF!important
}

.team-name-title{
	display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-name-title h2{
	font-size: 30px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
}

.tpp-back-btn {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    text-decoration: none;
    color: #2563eb;
}

.vn-trophyBtn{
	border: 1px solid rgba(255, 255, 255, .11);
    border-left: 0;
    color: #fff;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    background: rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-block: 5px;
    padding-right: 15px;
    margin-left: 14px;
	max-width:unset!important;
}

.vn-trophyBtn p{
	display: block;
    padding-left: 36px!important;
    width: 100%!important;
    font-size: 14px!important;
    letter-spacing: 1px!important;
}

.teams-logo-slider{
	    width: 100%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    justify-items: center;
    padding: 22px;
	gap:15px;
	z-index: 9;
    position: relative;
	 list-style: none;
}

.team-detail-text{

    height: auto;

    flex-wrap: wrap;
    background: #112a5c;
    border-radius: 10px;
    overflow: hidden;
	position:relative;
}

.team-detail-text p{
	
	width: 100%;
    margin: 0;
    padding: 10px 10px 8px 10px;
    display: flex;
    font-size: 12px;
    border-bottom: 2px solid #031945;
    color: #fff;
    letter-spacing: 1px;
	
	
}

.team-detail-text p b{
	margin: 0 10px;
}

.team-detail-text p span:first-child{
	color: #ffc52f;
}

.team-detail-text p span{
	    text-align: start;
    display: content;
    width: 64px;
}

.teams-logo-slider li{
	margin:0!important;
	border-radius: 8px;
	min-height:auto;
}


.current-team{
	border: 2px solid #FFF;
    border-radius: 8px;
}

/* Cups years list */
.tpp-cups-years {
    margin-top: -6px;
    font-size: 11px;
    opacity: 0.75;
    max-width: 160px;
}
/* PLAYER NAME (LINK STYLE) */
.tpp-player-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* DIVIDER LINE */
.tpp-player-divider {
    width: 40px;
    height: 1px;
    background: #cbd5e1;
    margin: 4px 0 6px;
}

/* ROLE */
.tpp-player-role {
    font-size: 12px;
    color: #6b7280;
    text-transform: capitalize;
}

.tpp-flip-front h3{
	color:#FFF
}

.team-chennai-super-kings , .team-CSK{
	background:#ffcb05
}

.team-deccan-chargers , {
	background:#D6D7D0
}

.team-delhi-capitals , .team-DC{
	background:#b9251c
}

.team-delhi-daredevils{
    background:#FFA736;
}

.team-gujarat-lions{
    background:#f36f21;
}

.team-gujarat-titans , .team-GT{
    background:#0b2a4a;
}

.team-kochi-tuskers-kerala , .team-KTK{
    background:#5b2b82;
}

.team-kolkata-knight-riders , .team-KKR{
    background:#3a225d;
}

.team-lucknow-super-giants , .team-LSG{
    background:#1c6cb5;
}

.team-mumbai-indians , .team-MI{
    background:#004ba0;
}

.team-pune-warriors-india{
    background:#2b6dad;
}

.team-punjab-kings , .team-PBKS{
    background:#d71920;
}

.team-rajasthan-royals , .team-RR{
    background:#365ee2;
}

.team-rising-pune-supergiant{
    background:#2e2a72;
}

.team-royal-challengers-bangalore , .team-RCB{
    background:#d11f27;
}

.team-sunrisers-hyderaba , .team-SRH{
    background:#f47920;
}

.team-chennai-super-kings .tpp-flip-back{
    background:#d3a800;
}

.team-deccan-chargers .tpp-flip-back{
    background:#b7b8b2;
}

.team-delhi-capitals .tpp-flip-back{
    background:#931c15;
}

.team-delhi-daredevils .tpp-flip-back{
    background:#d68518;
}

.team-gujarat-lions .tpp-flip-back{
    background:#d45e18;
}

.team-gujarat-titans .tpp-flip-back{
    background:#081e36;
}

.team-kochi-tuskers-kerala .tpp-flip-back{
    background:#4a2269;
}

.team-kolkata-knight-riders .tpp-flip-back{
    background:#2a1945;
}

.team-lucknow-super-giants .tpp-flip-back{
    background:#134f87;
}

.team-mumbai-indians .tpp-flip-back{
    background:#00326d;
}

.team-pune-warriors-india .tpp-flip-back{
    background:#204f7d;
}

.team-punjab-kings .tpp-flip-back{
    background:#aa131a;
}

.team-rajasthan-royals .tpp-flip-back{
    background:#2445b5;
}

.team-rising-pune-supergiant .tpp-flip-back{
    background:#231f57;
}

.team-royal-challengers-bangalore .tpp-flip-back{
    background:#aa191f;
}

.team-sunrisers-hyderabad .tpp-flip-back{
    background:#d56315;
}

/* Ensure card positioning works */
.tpp-player-card {
    position: relative;
}

/* ----------------------------
   Role badges (top-right)
---------------------------- */
.tpp-player-card.batsman::after,
.tpp-player-card.all-rounder::after,
.tpp-player-card.bowler::after,
.tpp-player-card.wicketkeeper::after {
	content: "";
    position: absolute;
    top: 6px;
    right: 16px;
    width: 27px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 5;
}

.tpp-player-card.batsman::after {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-batsman-icon.svg");
}

body.site-dark .tpp-player-card.batsman::after ,body.site-dark .tpp-player-card.all-rounder::after , body.site-dark .tpp-player-card.bowler::after , body.site-dark .tpp-player-card.wicketkeeper::after ,body.site-dark .default-player-img {
	filter:invert(1)
}

.tpp-player-card.all-rounder::after {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-all-rounder-icon.svg");
}

.tpp-player-card.bowler::after {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-bowler-icon.svg");
}

.tpp-player-card.wicketkeeper::after {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-wicket-keeper-icon.svg");
}

/* ----------------------------
   Captain & Overseas badges (top-left)
---------------------------- */
.tpp-player-card.captain::before,
.tpp-player-card.oversea-player::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 5;
}

/* Captain badge */
.tpp-player-card.captain::before {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-captain-icon.svg");
}

/* Overseas badge */
.tpp-player-card.oversea-player::before {
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/teams-foreign-player-icon.svg");
}

/* If card has BOTH captain and oversea-player, offset one to avoid overlap */
.tpp-player-card.captain.oversea-player::before {
    left: 6px; /* Captain stays left */
}

.tpp-player-card.captain.oversea-player::after { 
    /* To avoid conflicts, optional small offset for one of the left badges */
}

/* Optional: Add small gap between multiple top-left badges (stack) */
.tpp-player-card.captain.oversea-player::before {
    left: 6px;
}
.tpp-player-card.captain.oversea-player.overlap::after {
    left: 40px; /* second badge slightly to the right */
}

.tpp-player-header{
	position:relative;
	overflow:hidden;
	border-radius:8px
}

.tpp-player-header.chennai-super-kings{
 	background: linear-gradient(180deg, #FFCB05 0%, #FFCB05 100%);
}

.chennai-super-kings .teams-membr-overflow-color
{
	background: linear-gradient(180deg, #FFCB0500 0%, #FFCB05 100%);
}

/* Delhi Capitals */
.tpp-player-header.delhi-capitals{
 	background: linear-gradient(180deg, #B9251C 0%, #B9251C 100%);
}
.delhi-capitals .teams-membr-overflow-color{
	background: linear-gradient(180deg, #B9251C00 0%, #B9251C 100%);
}

/* Gujarat Titans */
.tpp-player-header.gujarat-titans{
 	background: linear-gradient(180deg, #0B2A4A 0%, #0B2A4A 100%);
}
.gujarat-titans .teams-membr-overflow-color{
	background: linear-gradient(180deg, #0B2A4A00 0%, #0B2A4A 100%);
}

/* Kolkata Knight Riders */
.tpp-player-header.kolkata-knight-riders{
 	background: linear-gradient(180deg, #3A225D 0%, #3A225D 100%);
}
.kolkata-knight-riders .teams-membr-overflow-color{
	background: linear-gradient(180deg, #3A225D00 0%, #3A225D 100%);
}

/* Lucknow Super Giants */
.tpp-player-header.lucknow-super-giants{
 	background: linear-gradient(180deg, #1C6CB5 0%, #1C6CB5 100%);
}
.lucknow-super-giants .teams-membr-overflow-color{
	background: linear-gradient(180deg, #1C6CB500 0%, #1C6CB5 100%);
}

/* Mumbai Indians */
.tpp-player-header.mumbai-indians{
 	background: linear-gradient(180deg, #004BA0 0%, #004BA0 100%);
}
.mumbai-indians .teams-membr-overflow-color{
	background: linear-gradient(180deg, #004BA000 0%, #004BA0 100%);
}

/* Punjab Kings */
.tpp-player-header.punjab-kings{
 	background: linear-gradient(180deg, #D71920 0%, #D71920 100%);
}
.punjab-kings .teams-membr-overflow-color{
	background: linear-gradient(180deg, #D7192000 0%, #D71920 100%);
}

/* Rajasthan Royals */
.tpp-player-header.rajasthan-royals{
 	background: linear-gradient(180deg, #365EE2 0%, #365EE2 100%);
}
.rajasthan-royals .teams-membr-overflow-color{
	background: linear-gradient(180deg, #365EE200 0%, #365EE2 100%);
}

/* Royal Challengers Bangalore */
.tpp-player-header.royal-challengers-bangalore{
 	background: linear-gradient(180deg, #D11F27 0%, #D11F27 100%);
}
.royal-challengers-bangalore .teams-membr-overflow-color{
	background: linear-gradient(180deg, #D11F2700 0%, #D11F27 100%);
}

/* Sunrisers Hyderabad */
.tpp-player-header.sunrisers-hyderabad{
 	background: linear-gradient(180deg, #F47920 0%, #F47920 100%);
}
.sunrisers-hyderabad .teams-membr-overflow-color{
	background: linear-gradient(180deg, #F4792000 0%, #F47920 100%);
}

/* Deccan Chargers */
.tpp-player-header.deccan-chargers{
 	background: linear-gradient(180deg, #D6D7D0 0%, #D6D7D0 100%);
}
.deccan-chargers .teams-membr-overflow-color{
	background: linear-gradient(180deg, #D6D7D000 0%, #D6D7D0 100%);
}

/* Pune Warriors India */
.tpp-player-header.pune-warriors-india{
 	background: linear-gradient(180deg, #2B6DAD 0%, #2B6DAD 100%);
}
.pune-warriors-india .teams-membr-overflow-color{
	background: linear-gradient(180deg, #2B6DAD00 0%, #2B6DAD 100%);
}

/* Kochi Tuskers Kerala */
.tpp-player-header.kochi-tuskers-kerala{
 	background: linear-gradient(180deg, #5B2B82 0%, #5B2B82 100%);
}
.kochi-tuskers-kerala .teams-membr-overflow-color{
	background: linear-gradient(180deg, #5B2B8200 0%, #5B2B82 100%);
}

/* Gujarat Lions */
.tpp-player-header.gujarat-lions{
 	background: linear-gradient(180deg, #F36F21 0%, #F36F21 100%);
}
.gujarat-lions .teams-membr-overflow-color{
	background: linear-gradient(180deg, #F36F2100 0%, #F36F21 100%);
}

/* Rising Pune Supergiant */
.tpp-player-header.rising-pune-supergiant{
 	background: linear-gradient(180deg, #2E2A72 0%, #2E2A72 100%);
}
.rising-pune-supergiant .teams-membr-overflow-color{
	background: linear-gradient(180deg, #2E2A7200 0%, #2E2A72 100%);
}

/* Delhi Daredevils */
.tpp-player-header.delhi-daredevils{
 	background: linear-gradient(180deg, #FFA736 0%, #FFA736 100%);
}
.delhi-daredevils .teams-membr-overflow-color{
	background: linear-gradient(180deg, #FFA73600 0%, #FFA736 100%);
}



.membr-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.membr-details .membr-details-img{
	width: 550px;
    height: auto;
	min-height:550px;
	text-align:center
	
}

.membr-details .membr-details-img img{
	    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.membr-details-img::before{
	content: "";
    position: absolute;
    background-image: url("/wp-content/plugins/team-players-plugin/assets/img/rounded_spiral_full.avif");
    background-repeat: no-repeat;
    background-position: top left;
    left: -30px;
    top: -20px;
    width: 100%;
    height: 593px;
}

.membr-details-img::after{
	content: "";
    position: absolute;
    left: 0;
    width: 62%;
    height: 332px;
    right: 0;
    border: 10px solid #fff;
    margin: 0 auto;
    top: 140px;
}

.plyr-name-nationality{
	    position: absolute;
    bottom: 60px;
    z-index: 9;
    left: 0;
    width: 100%;
}

.plyr-name-nationality h2{
    text-align: center;
    font-size: 42px;
    color: #fff;
    text-shadow: 0 9px 20px rgba(0, 0, 0, .16);
    font-weight: 700;
    margin-bottom: 20px;
}

.country-name{
	    background: rgba(0, 0, 0, .2);
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 10px;
    font-style: italic;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

.teams-membr-overflow-color{
	width: 100%;
    height: 60%;
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
	
}

.grid-container {
    display: grid;
    height: auto;
    grid-template-columns: 1fr 1fr;
}

.grid-items {
    color: #000;
    text-align: center;
    border: .5px solid rgba(0 0 0 / 100%);
    outline: .5px solid rgba(0 0 0 / 100%) !important;
    padding: 15px;
}

.grid-items p{
    font-size: 18px;
    color: #11141c;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-title, .squad-season-title{
	margin-top:25px
}

/* ===============================
   NEWS WRAPPER
=================================*/
.tpp-news-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.tpp-news-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #111;
    border-left: 5px solid #f04e23;
    padding-left: 12px;
}

/* ===============================
   NEWS GRID
=================================*/
.tpp-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* ===============================
   NEWS CARD
=================================*/
.tpp-news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
}

.tpp-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Make whole card clickable */
.tpp-news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 18px;
}

/* ===============================
   THUMBNAIL
=================================*/
.tpp-thumb {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.tpp-thumb img {
    width: 100%;
    height: 200px!important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tpp-news-card:hover .tpp-thumb img {
    transform: scale(1.08);
}

/* ===============================
   TITLE
=================================*/
.tpp-news-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tpp-news-card:hover h3 {
    color: #f04e23;
}

/* ===============================
   EXCERPT
=================================*/
.tpp-news-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ===============================
   PAGINATION
=================================*/
.tpp-news-wrapper .page-numbers {
    display: inline-block;
    margin: 40px 6px 0 0;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tpp-news-wrapper .page-numbers:hover,
.tpp-news-wrapper .page-numbers.current {
    background: #f04e23;
    color: #fff;
}

.tpp-news-card a{
	text-decoration:none!important
}

/* ===============================
   MASONRY GRID
================================ */
.tpp-gallery-wrapper {
    margin-top: 40px;
}

.tpp-gallery-wrapper h2 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

/* Masonry Layout */
.tpp-gallery-wrapper > div {
    column-count: 4;
    column-gap: 20px;
}

.tpp-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.tpp-gallery-inner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tpp-gallery-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

/* Hover Lift */
.tpp-gallery-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

/* Zoom Image */
.tpp-gallery-inner:hover img {
    transform: scale(1.08);
}

/* ===============================
   OVERLAY EFFECT
================================ */

.tpp-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tpp-gallery-overlay h4 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

/* Fade In Overlay */
.tpp-gallery-inner:hover .tpp-gallery-overlay {
    opacity: 1;
}

.tpp-gallery-inner:hover .tpp-gallery-overlay h4 {
    transform: translateY(0);
}

#tpp-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    overflow-y: auto;   /* ✅ allows scrolling */
    padding: 60px 20px;
    text-align: center;
}

#tpp-lightbox-modal img {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
}

.tpp-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.tpp-lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
}

.team-detail-text a.glossaryLink {
    color: #ffc52f !important;
}

/* =========================================================
   TEAM NAVIGATION MENU - FULL CSS
========================================================= */

/* --- 1. THE WRAPPER (Positions the menu on the header line) --- */
.team-navigation-wrapper {
    display: flex;
    justify-content: center !important;
    position: relative;
    margin-top: -30px; /* Pulls it onto the border line of the blue section */
    z-index: 10;
    width: 100%;
    padding: 0 10px;
}

/* --- 2. THE MENU PILL --- */
.team-navigation-menu {
    display: flex;
    align-items: center;
    list-style: none;
    background: #ffffff;
    padding: 6px 15px;
    border-radius: 50px;
    margin: 0;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
    
    /* MOBILE SCROLL SUPPORT */
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.team-navigation-menu::-webkit-scrollbar {
    display: none;
}

.team-navigation-menu li {
    margin: 0 2px;
    padding: 0;
    display: flex;
    align-items: center;
}

/* --- 3. BASE LINK STYLES --- */
.team-navigation-menu li a {
    text-decoration: none;
    color: #777777; /* Neutral gray for inactive */
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 20px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 30px;
}

/* --- 4. HOVER EFFECT --- */
.team-navigation-menu li a:hover {
    color: #004ba0;
    background: rgba(0, 75, 160, 0.04); /* Very faint hint of blue */
}

/* --- 5. ACTIVE STATE (The Highlighted Item) --- */
.team-navigation-menu li.active a {
    color: #004ba0 !important;
    background: rgba(0, 75, 160, 0.08); /* Light blue bubble */
    border-radius: 25px;
}

/* Vibrant Animated Underline for Active Item */
.team-navigation-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: #004ba0;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 75, 160, 0.4); /* Glow effect */
    animation: underlineFade 0.4s ease-out;
}

@keyframes underlineFade {
    from { opacity: 0; transform: scaleX(0.5); }
    to { opacity: 1; transform: scaleX(1); }
}

/* --- 6. TABLET ADJUSTMENTS --- */
@media (max-width: 768px) {
    .team-navigation-wrapper {
        justify-content: center; /* Better for horizontal scrolling */
        padding-left: 15px;
        margin-top: -25px;
    }
    
    .team-navigation-menu {
        padding: 4px 8px;
    }
    
    .team-navigation-menu li a {
        font-size: 11px;
        padding: 10px 15px;
    }

    .team-navigation-menu li.active a::after {
        bottom: 6px;
        height: 2px;
    }
    
    .team-detail-text p {
    font-size: 11px;
}
}


/* --- 6. MOBILE ADJUSTMENTS --- */
@media (max-width: 480px) {
    
        .teams-logo-slider {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 10px;
        width: auto;
        margin-left: -2%;
    }
    
    .team-navigation-wrapper {
        justify-content: center; /* Better for horizontal scrolling */
        padding-left: 15px;
        margin-top: -25px;
    }
    
    .team-navigation-menu {
        padding: 4px 8px;
    }
    
    .team-navigation-menu li a {
        font-size: 9px;
        padding: 6px 3px;
    }

    .team-navigation-menu li.active a::after {
        bottom: 6px;
        height: 2px;
    }
    
    .team-detail-text p {
    font-size: 11px;
}

.vn-trophyBtn {

    padding-right: 10px;
    margin-left: 5px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


.team-desc-para {
    margin: 25px 0;
    font-size: 11px;
}

}



@media only screen and (max-width: 1980px){
	.membr-details{
		justify-content: center;
	}
	.player-overview-detail{
		z-index: 4;
		padding-top:1rem;
    	padding-bottom: 3rem;
		text-align:center
	}
}

@media only screen and (max-width: 1200px){
	.teams-logo-slider{
		grid-template-columns: repeat(5, 1fr);
    gap: 10px;
	}
	 .tpp-gallery-wrapper > div {
        column-count: 3;
    }
}

@media only screen and (max-width: 767px) {
    .membr-details-img::before {
        left: 12px;
        top: -8px;
        width: 100%;
        height: 300px;
        background-size: 86%;
    }
	.tpp-gallery-wrapper > div {
        column-count: 2;
    }
}

@media only screen and (max-width: 480px) {
    .team-tropy-img {
        position: absolute;
        left: -18px;
        top: 3px;
    }
}

@media only screen and (max-width: 768px) {
    .vn-trophyBtn p{
    padding-left: 40px!important;
}

    .membr-details-img::after {
        width: 60%;
        height: 220px;
        top: 70px;
    }
	.plyr-name-nationality {
        position: relative;
        bottom: -25px;
    }
	    .plyr-name-nationality h2 {
        font-size: 30px;
    }
	.membr-details .membr-details-img{
		min-height:280px;
	}
	
	.membr-details-img img{
		height:280px!important;
		object-fit:contain
	}
	
	.player-overview-detail{
		margin-top:2.5rem;
		padding:1rem;
		z-index:4;
	    text-align:center;
	}
	.grid-items p{
		line-height:20px
	}
	.teams-logo-slider li{
		min-height:unset
	}
	.vn-teamBanLogo{
		width:60px
	}
	.team-info-container{
		padding: 0 20px;
		grid-template-columns: auto;
	}
    .team-tropy-img {
        width: auto;
    }
    
    .team-tropy-img {
        position: absolute;
        left: -18px;

    }
	.team-name-title h2{
		font-size:18px
	}
	.team-sm-lg::after{
		right:-629px
	}
	 .tpp-gallery-wrapper > div {
        column-count: 1;
    }
    
    .vn-trophyBtn p {
    padding-left: 45px !important;
    width: 100% !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
}
}


