/* CCL Landing — Base / Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Layout container */
.layout-wrapper {
    max-width: var(--site-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover,
a:focus {
    color: var(--color-secondary);
}
a:focus-visible {
    outline: 3px solid var(--color-tertiary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility: colour backgrounds */
.bg-primary   { background-color: var(--color-primary)   !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-tertiary  { background-color: var(--color-tertiary)  !important; }

/* Visually hidden (accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Site main spacing */
.site-main {
    min-height: 50vh;
}

/* Hero banner */
.hero-banner {
    position: relative;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 56vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-headline {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
}

/* Sponsor bar */
.sponsor-bar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-grey-light);
    padding: 0.75rem 0;
}

.sponsor-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-banner-img {
    max-height: 60px;
    object-fit: contain;
}

/* -----------------------------------------------------------------------
   NEWS SECTION
   ----------------------------------------------------------------------- */
.news-section {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.news-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-featured-col {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-featured-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-fast);
}

.news-featured-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-featured-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-badge {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.news-featured-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--color-dark);
}

.news-featured-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-grey);
    line-height: 1.5;
}

/* Smaller news cards (posts 2-3) */
.news-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-light);
    border-radius: 4px;
    transition: border-color var(--transition-fast);
}

.news-card:hover {
    border-color: var(--color-secondary);
}

.news-card-link {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.news-card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

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

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.news-card-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--color-dark);
}

/* Sidebar */
.news-sidebar {
    flex: 1;
}

.news-tabs {
    margin-bottom: 1.5rem;
}

.news-tabs .nav-tabs {
    border-bottom: 2px solid var(--color-secondary);
    gap: 0;
}

.news-tabs .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-grey);
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-tabs .nav-link.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.news-tabs .nav-link:hover {
    color: var(--color-primary);
}

.news-tab-content {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem 0;
}

.news-list-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-grey-light);
    align-items: flex-start;
}

.news-list-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-list-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    text-decoration: none;
}

.news-list-title:hover {
    color: var(--color-secondary);
}

.news-list-date {
    font-size: var(--font-size-xs);
    color: var(--color-grey);
}

/* -----------------------------------------------------------------------
   PLAYER OF THE WEEK SECTION
   ----------------------------------------------------------------------- */
.player-of-week-section {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0;
    margin: 3rem 0 0;
}

.player-of-week-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.player-of-week-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.player-of-week-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-of-week-info {
    flex: 1;
}

.player-of-week-label {
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.player-of-week-name {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
}

.player-of-week-link {
    display: inline-block;
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-sm);
    transition: opacity var(--transition-fast);
}

.player-of-week-link:hover {
    opacity: 0.8;
}
