:root {
    --sb-dark-felt-green: rgba(25, 60, 0, 1);
    --sb-mid-green: #45821a;
    --sb-bright-green: #52a425;
    --sb-light-bg-green: #eef7ee;
    --sb-orange: rgba(255, 152, 17, 1);
    --sb-dark-text: #111111;
    --sb-muted-grey: #64748b;
    --sb-border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--sb-dark-text);
    background-color: #fff;
    line-height: 1.5;
}

.sb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.sb-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.sb-text-center {
    text-align: center;
}

.sb-text-right {
    text-align: right;
}

.sb-color-green {
    color: var(--sb-mid-green);
}

/*HERO BANNER*/
.sb-hero {
    background-color: var(--sb-dark-felt-green);
    color: #ffffff;
    padding: 60px 0;
}

.sb-hero-title {
    font-size: 50px;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 12px;
}

.sb-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    max-width: 60%;
    margin: auto;
    opacity: 80%;
    margin-bottom: 24px;
}

.sb-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 29px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sb-btn-icon {
    line-height: 0;
}

.sb-btn-orange {
    background-color: var(--sb-orange);
    color: #ffffff;
    border: none;
}

.sb-btn-orange:hover {
    background-color: #e07f0a;
}

.sb-btn-outline-green {
    background: rgba(40, 85, 7, 1);
    border: 1px solid rgba(76, 120, 44, 1);
    color: #ffffff;
}

/*  FILTERS & CONTROLS */
.sb-filter-section {
    padding: 24px 0;
    background-color: rgba(249, 249, 249, 1);
    border-bottom: 1px solid rgba(233, 233, 233, 1);
}

.sb-search-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.sb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(104, 105, 104, 1);
    line-height: 0;
}

.sb-input-field {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 8px;
    border: 1px solid rgba(233, 233, 233, 1);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 1);
}

.sb-dropdown-group {
    display: flex;
    gap: 12px;
}

.sb-select-wrapper {
    position: relative;
}

.sb-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.sb-select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--sb-border-color);
    background-color: #ffffff;
    font-size: 14px;
    min-width: 140px;
    cursor: pointer;
}

.sb-select-wrapper::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23131413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}
.sb-event-pills-container-wrap {
    overflow: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.sb-pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-direction: row;
    flex-wrap: no-wrap;
}

.sb-pill-btn {
    background-color: #ffffff;
    border: 1px solid rgba(233, 233, 233, 1);
    color: rgba(19, 20, 19, 1);
    font-size: 14px;
    font-weight: 500;
    padding: 14px 22px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sb-pill-btn-count {
    color: rgba(104, 105, 104, 1);
}

.sb-pill-btn:hover {
    background-color: #f8fafc;
}

.sb-pill-btn-active {
    background-color: rgb(93 161 44);
    border-color: rgb(93 161 44);
    color: #ffffff;
}

.sb-pill-btn-active .sb-pill-btn-count {
    color: #ffffff;
}

/* STATE-DEPENDENT ACCORDION SYSTEM*/
.sb-calendar-section {
    padding: 40px 0px 40px 0px;
}

/* Master Accordion Default Container: Closed state styled precisely */
.sb-accordion {
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--sb-border-color);
    background-color: #ffffff;
    /* Closed state is clean white */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sb-accordion-header {
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Typography styles matching closed state */
.sb-month-title {
   
    font-size: 22px;
    font-weight: 700;
    color: rgba(19, 20, 19, 1);
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1em;
}

.sb-year-sub {
    font-size: 12px;
    color: rgba(104, 105, 104, 1);
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter';
}

.sb-accordion-title-block {
    display: flex;
    align-items: flex-start;
}

.sb-badge-count {
    background-color: rgba(230, 242, 221, 1);
    color: rgba(93, 161, 44, 1);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    margin-left: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sb-accordion-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sb-share-link-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: none;
}

.sb-icon {
    line-height: 0;
}

/* Circle outline look for closed state arrows */
.sb-arrow-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/*   DYNAMIC OPEN STATE OVERRIDES */
.sb-accordion-active {
    background-color: var(--sb-dark-felt-green);
    border-color: var(--sb-dark-felt-green);
}

.sb-accordion-active .sb-month-title {
    color: rgba(255, 255, 255, 1);
}

.sb-accordion-active .sb-year-sub {
    color: rgba(255, 255, 255, 1);
}

.sb-accordion-active .sb-share-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sb-accordion-active .sb-arrow-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/*  PURE EXPAND CSS TRANSITION ENGINE */
.sb-accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    /* Collapsed state */
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-accordion-active .sb-accordion-wrapper {
    grid-template-rows: 1fr;
    /* Expanded state */
}

.sb-accordion-content {
    overflow: hidden;
    padding: 0 24px;
    background-color: var(--sb-dark-felt-green);
}

.sb-table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 24px;
}

.sb-schedule-container {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 24px;
    width: 100%;
    border: 1px solid rgba(233, 233, 233, 1);
}

.sb-grid-header {
    display: none;
    /* Hidden on mobile screen sizes */
}

.sb-grid-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 29px;
    border-bottom: 1px solid #f1f5f9;
}

.sb-grid-row:last-child {
    border-bottom: none;
}

.sb-mobile-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-muted-grey);
    text-transform: uppercase;
    min-width: 65px;
    margin-right: 8px;
}

.sb-col-date {
    font-size: 15px;
    color: #000000;
}

.sb-col-event {
    width: 100%;
}

.sb-col-venue,
.sb-col-td {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(19, 20, 19, 1);
    font-weight: 500;
}

.sb-news-section .sb-section-title-main {
    margin-bottom: 30px;
}

.sb-col-action {
    padding-top: 4px;
}

.sb-section-title-main {
    font-size: 45px;
    font-weight: 700;
    color:#131413;
}

.sb-btn-register {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 6px;
    border: 1px solid rgba(93, 161, 44, 1);
    color: rgba(93, 161, 44, 1);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.sb-btn-register:hover {
    background-color: var(--sb-light-bg-green);
    border-color: var(--sb-mid-green);
}

.sb-section-title-main span {
    color: rgba(93, 161, 44, 1);
}

      .sb-mobile-label {
        display: none;
      }
    .sb-grid-header {
        display: grid;
        grid-template-columns: 100px 1fr 200px 160px 100px;
        align-items: center;
        gap: 20px;
        padding: 20px 16px;
    }

    .sb-grid-row {
        display: grid;
        grid-template-columns: 70px 1fr 330px 250px 140px;    
        align-items: center;
        gap: 20px;
        padding: 29px 16px;
    }

    .sb-grid-header {
        border-bottom: 2px solid rgba(93, 161, 44, 1);
    }

    .sb-grid-header div {
        font-size: 14px;
        font-weight: 700;
        color: rgba(104, 105, 104, 1);
        letter-spacing: 0.5px;
    }

    .sb-col-venue,
    .sb-col-td {
        display: block;
    }

    .sb-col-action {
        padding-top: 0;
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: flex-end;
    }

    .sb-btn-register {
        display: inline-block;
        width: auto;
        padding: 6px 16px;
    }

.sb-ev-mcard {
    display: none;
}

@media (max-width:1030px) {
    /* Tighten the accordion so the card can use the full width. */
    .sb-grid-header{
      display:none;
    }
    .sb-accordion-content {
        padding: 0;
    }
    .sb-schedule-container {
        margin-bottom: 0;
    }

    /* Row becomes a plain card; hide the desktop stacked columns. */
    .sb-grid-row {
        display: block;
        padding: 0;
    }
    .sb-grid-row > .sb-col-date,
    .sb-grid-row > .sb-col-event,
    .sb-grid-row > .sb-col-venue,
    .sb-grid-row > .sb-col-td,
    .sb-grid-row > .sb-col-action {
        display: none;
    }
    .sb-month-title {
     margin: 0;
    }
    .sb-accordion-title-block {
        display: flex;
        align-items: center;
    }
    .sb-ev-mcard {
        display: block;
        padding: 16px;
    }

    .sb-ev-mtop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }
    .sb-ev-mdate {
        font-size: 12.5px;
        font-weight: 700;
        color: var(--sb-muted-grey, #8A8F86);
        white-space: nowrap;
    }
    .sb-ev-mcard .sb-tag {
        flex: 0 0 auto;
    }

    .sb-ev-mtitle {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--sb-ink, #1D2417);
        margin-bottom: 8px;
    }

    .sb-ev-mvenue {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: #4A4F45;
        margin-bottom: 12px;
    }
    .sb-ev-mvenue svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        color: #B4453D;
    }

    .sb-ev-mbottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .sb-ev-mtd {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    .sb-ev-mtd .sb-avatar {
        width: 26px;
        height: 26px;
        font-size: 10px;
        flex-shrink: 0;
    }
    .sb-ev-mtd-name {
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sb-ev-mactions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .sb-ev-mgcal {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(93, 161, 44, 1);
        border-radius: 100px;
        color: rgba(93, 161, 44, 1);
        text-decoration: none;
        flex: 0 0 auto;
    }
    .sb-ev-mregister {
        flex-shrink: 0;
        font-size: 12.5px;
        font-weight: 700;
        color: #5da12c;
        background: #fff;
        border: 1.5px solid #5da12c;
        padding: 7px 14px;
        border-radius: 100px;
        text-decoration: none;
        white-space: nowrap;
    }
}

.sb-td-date {
    color: #000000;
}

.sb-flex-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-mo-date-st {
    font-size: 14px;
    font-weight: 500;
}

.sb-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
}

.sb-tag-red {
    background-color: rgba(255, 233, 233, 1);
    color: rgba(181, 10, 12, 1);
}

.sb-tag-blue {
    background-color: rgba(232, 241, 254, 1);
    color: rgba(51, 117, 216, 1);
}

.sb-tag-purple {
    background-color: rgba(245, 232, 255, 1);
    color: rgba(120, 29, 190, 1);
}

.sb-tag-light-green {
    background-color: rgba(233, 245, 224, 1);
    color: rgba(93, 161, 44, 1);
}

.sb-event-name {
    font-weight: 500;
    color: rgba(19, 20, 19, 1);
    font-size: 14px;
}

.sb-td-venue {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(19, 20, 19, 1);
}

.sb-td-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
}

.sb-avatar-green {
    background-color: rgba(233, 245, 224, 1);
    border-color: rgba(187, 213, 168, 1);
    color: rgba(93, 161, 44, 1);

}

.sb-avatar-blue {
    background-color: rgba(232, 241, 254, 1);
    border-color: rgba(177, 204, 245, 1);
    color: rgba(51, 117, 216, 1);
}

.sb-avatar-red {
    background-color: rgba(255, 233, 233, 1);
    border-color: rgba(229, 176, 176, 1);
    color: rgba(181, 10, 12, 1);
}

.sb-btn-register {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid var(--sb-border-color);
    color: var(--sb-mid-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.sb-btn-register:hover {
    background-color: var(--sb-light-bg-green);
    border-color: var(--sb-mid-green);
}

/*  LATEST TOURNAMENT NEWS CARDS */
.sb-news-section {
    padding: 0px 0 60px 0px;
    background-color: #ffffff;
}

.sb-section-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 36px;
}

.sb-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}



.sb-news-card {
    text-align: center;
}

.sb-card-img-box {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sb-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sb-card-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

/* BOTTOM FOOTER CTA BLOCK */
.sb-footer-cta {
    background-color: rgba(26, 26, 26, 1);
    color: #ffffff;
    padding: 40px 0;
}

.sb-footer-flex {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
}

.sb-footer-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sb-footer-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

.sb-btn-green-solid {
    background-color: var(--sb-bright-green);
    color: #ffffff;
    padding: 14px 28px;
    font-weight: 700;
}

.sb-live-ribbon {
    background-color: #17181c;
    border-top: 4px solid var(--sb-theme-green);
    color: #ffffff;
    padding: 12px 0;
}

.sb-live-ribbon .sb-section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sb-live-left {
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
}

.sb-live-center {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sb-live-ribbon {
    background-color: rgba(26, 26, 26, 1);
    border-top: 4px solid rgba(93, 161, 44, 1);
    color: #ffffff;
    padding: 40px 0;
}

.sb-header-btn-orange {
    background-color: rgb(255 152 17);
    color: #fff;
    padding: 14px 19px;
    border: none;
}

.sb-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 6px;
}

/*  MEDIA QUERIES*/
@media (min-width: 768px) {
 
    
    .sb-search-bar {
        flex-direction: row;
        align-items: center;
    }

    .sb-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sb-footer-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }


}

@media (min-width: 1024px) {
    .sb-news-grid {
        grid-template-columns: repeat(5, 1fr);
    }

}

@media (max-width:768px) {
    .sb-dropdown-group {
        flex-direction: column;
    }
    .sb-btn {
     font-size: 14px;
      padding: 12px 18px;
    }
    .sb-btn-green-solid {
        padding: 11px 16px;
        font-weight: 700;
        font-size: 14px;
    }
    .sb-footer-flex {
     text-align: center;
    }
    .sb-select {
        width: 100%;
    }
    .sb-hero-subtitle{
      max-width: 100%;
    }
    .sb-hero-title{
        font-size:30px;
    }
    .sb-section-title-main{
      font-size:30px;    
    }
     .sb-footer-title{
        font-size: 24px;   
    }
    .sb-footer-subtitle{
        font-size: 14px;    
    }
}
/* Passed events — registration closed (no register button) */
.sb-btn-closed {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e3e5ea;
    background: #f4f5f7;
    color: #98a0ab;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    cursor: not-allowed;
}
