@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color-brand-black: #000000;
    --color-brand-yellow: #FFD100;
    --color-brand-white: #FFFFFF;
    --color-brand-gray: #CDCCCE;
    --color-brand-dark-gray: #333;

    
    --color-background-primary: var(--color-brand-white);
    --color-background-secondary: var(--color-brand-black);
    --color-background-surface: var(--color-brand-yellow);
    --color-background-surface-hover: hsl(from var(--color-brand-yellow) h s calc(l + 12));
    --color-background-surface-active: hsl(from var(--color-brand-yellow) h s calc(l - 12));

    --color-text-primary: var(--color-brand-dark-gray);
    --color-text-secondary: var(--color-brand-white);
    --color-text-surface: var(--color-brand-black);

    --font-family-primary: 'Poppins', sans-serif;
    --font-family-secondary: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    font-family: var(--font-family-secondary);
    margin: 0;
    padding: 0;

    & > form {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

a {
    color: #4a90e2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;

    @media screen and (max-width: 1240px) {
        padding: 0 4rem;
    }

    @media screen and (max-width: 968px) {
        padding: 0 2rem;
    }

    @media screen and (max-width: 480px) {
        padding: 0 1rem;
    }
}

.body-panes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;

    .content-pane {
        flex: 1;
        min-width: min(100%, 600px);
    }

    .content-pane img {
        max-width: 100%;
    }

    .right-pane {
        max-width: 300px;
        min-width: 200px;
        flex: 1;

        img {
            width: 100% !important;
            height: auto !important;
        }
    }

    & > *:empty {
        display: none;
    }
}

.site-header {
    background-color: var(--color-background-secondary);
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;

    .mobile-nav-button {
        display: none;
    }

    a:first-child {
        display: block;
        flex: 1;
        margin-right: 1rem;
        
        img {
            width: 100%;
            max-width: fit-content;
        }
    }
}

@media screen and (max-width: 968px) {
    .site-header {
        .user-account-actions {
            display: none;
        }
        .mobile-nav-button {
            display: block;
        }
    }
}

.user-account-actions {
    display: flex;
    a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dashboard-link {
        text-align: right;
        border-right: 1px solid var(--color-brand-gray);
        padding-right: 1rem;
        margin-right: 1rem;
        display: inline-block;

        span {
            display: block;
        }
    }
}

.primary-nav {
    background-color: var(--color-background-surface);
    color: var(--color-text-surface);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;

    ol {
        padding-inline-start: 0;
        list-style: none;
        margin: 0;
        display: contents;
    }

    li {
        display: contents;
    }
    
    a {
        color: inherit;
        text-decoration: none;
        font-weight: bold;
    }
}

@media screen and (max-width: 968px) {
    .primary-nav {
        display: none;
    }
}

.mobile-nav-panel {
    position: fixed;
    inset: 0;
    background-color: var(--color-background-surface);
    z-index: 9999;

    --open-duration: 0.45s;
    --open-ease: cubic-bezier(0.76, 0, 0.24, 1);
    transform: translateX(100%);


    transition:
    transform var(--open-duration) var(--open-ease),
    display var(--open-duration) allow-discrete;

    &.open {
        transform: translateX(0%);
    }

    .mobile-nav-header {
        background-color: var(--color-background-secondary);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .mobile-nav-login {
        background-color: hsl(from var(--color-background-surface) h s calc(l - 40));
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;

        a {
            background-color: var(--color-background-surface);
            color: var(--color-text-surface);
            padding: 0.5em 1em;
            border-radius: 0.25em;
            text-decoration: none;
            font-weight: bold;
            border: none;
            cursor: pointer;
            font-family: var(--font-family-secondary);
            display: inline-block;
        }

        span {
            display: block;
        }
    }

    .mobile-nav {
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        font-size: 1.25rem;
        text-align: center;

        ol, li {
            display: contents;
        }

        a {
            color: var(--color-text-surface);
            text-decoration: none;
            font-weight: bold;
            font-family: var(--font-family-primary);
            
        }
    }
}

@media screen and (min-width: 968px) {
    .mobile-nav-panel {
        display: none;
    }
}

.members-nav {
    max-width: 170px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family-primary);
    border-right: 1px solid var(--color-brand-gray);
    padding-right: 2rem;
    margin-right: 2rem;
    margin-bottom: auto;

    @media screen and (max-width: 968px) {
        max-width: none;
        border-right: none;
        margin-right: none;
        margin-bottom: 2rem;
    }

    a {
        text-decoration: none;
    }

    ol {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    li {
        list-style: none;
        padding: 0;
        margin: 0;
    }
}

.hero {
    background-color: var(--color-background-secondary);
    color: var(--color-text-secondary);
    padding: 2rem 0;
}

.hero:has(.hero-content:empty) {
    padding: 0;
}

.main-content {
    flex-grow: 1;
    padding: 4rem 0;
}

.site-footer {
    background-color: var(--color-background-secondary);
    color: var(--color-text-secondary);
    padding: 2rem 0;

    a {
        color: white;
    }
}

.footer-nav-container {
    border-bottom: 1px solid var(--color-brand-gray);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;

    .footer-nav {
        flex-grow: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-nav-column {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

.copyright-container {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 2rem;

    .powered-by img {
        margin-left: 0.25rem;
    }
}

.footer-nav-social-link {
    background-color: var(--color-background-surface);
    border-radius: 9999rem;
    color: black !important;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


.main-content {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h2 {
        background: white;
        display: flex;
        gap: 1em;
        font-family: var(--font-family-primary);
        margin-bottom: 2rem;

        &::after {
            content: '';
            background-color: var(--color-background-surface);
            height: 2px;
            display: block;
            flex-grow: 1;
            position: relative;
            top: 0.5lh;
        }
    }

    h3, h4, h5, h6 {
        font-family: var(--font-family-primary);
        margin-bottom: 1em;
    }

    p {
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    p:not(+ p) {
        margin-bottom: 2rem;
    }
}


/**
 * For ease of use, we're making any anchors that are an :only-child
 * a button.
 */
/* .content-pane p a:only-child, */

/* p:not(:has(*:not(a))) > a:only-child, */
/* .content-pane p a:first-child:last-child, */
.content-pane p > strong > a,
input.loginbutton,
.button {
    background-color: var(--color-background-surface);
    color: var(--color-text-surface);
    padding: 0.5em 1em;
    border-radius: 0.25em;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: var(--font-family-secondary);
    display: inline-block;

    &:hover {
        background-color: var(--color-background-surface-hover);
    }

    &:active {
        background-color: var(--color-background-surface-active);
    }
}

.accountlogin {
    display: flex;
    justify-content: center;
    padding: 2rem;

    & > .module {
        width: min(100%, 600px);
    }
}
.accountlogin .module > div > div {
    margin: 2rem auto;
    border: 1px solid var(--color-brand-gray);
    padding: 2rem;
    
    & > div:first-child {
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        font-family: var(--font-family-primary);
        margin-bottom: 2rem;
        margin-top: 2rem;
    }

    & > div:nth-child(2) {
        border: none !important;

        & > div > div {
            width: 100%;
            margin: 0;

            & > div:nth-child(1) {
                display: none;
            }
            & > div:nth-child(2) {
                gap: 0.6rem !important;
            }
            & > div:nth-child(2) > div {
                gap: 1rem;
            }
        }
    }

    span {
        padding: 0 !important;
        margin: 0 !important;
    }

    input[type="submit"] {
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        margin-right: auto;
        min-width: 200px;
    }
}


/**
 * Form styling
 */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="dropdown"] {
    width: 100%;
    border: 1px solid var(--color-brand-gray);
    padding: 0.5em;
    border-radius: 0.25em;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--font-family-secondary);
    color: var(--color-text-primary);
    background-color: var(--color-background-primary);
    
}

.field {
    margin: 1rem 0;
}

.field label {
    font-size: 1rem !important;
    margin: 1rem 0;

    input {
        margin-top: 0.5rem;
    }
}

.mailing-list {
    max-width: min(100%, 400px);

    h2 {
        margin-bottom: 1rem;
    }
    .visually-hidden {
        font-size: 0.5rem;
        visibility: hidden;
        position: absolute;
        pointer-events: none;
    }
    .subscribe-button {
        font-size: 1rem;
        margin: 1rem 0;
    }
    input {
        margin-bottom: 0.5rem;
    }
}

/**
 * Blog styles
 */

.blog-entry {
    max-width: 700px;
    margin: auto;
}

.blog-title h1 {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1.25rem;

    &::after {
        display: none;
    }
}

.blog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin: 2rem 0;

    a {
        background: #ddd;
        border-radius: 0.25em;
        padding: 0.5em 1em;
        text-decoration: none;
        font-weight: bold;
        font-family: var(--font-family-secondary);
        color: var(--color-text-primary);
        font-size: 1rem;
    }
}

.recent-entry {
    margin-bottom: 6rem;
}

.edit-link {
    margin-left: 0.5rem;
}

.breadcrumb-nav, .pagination-nav {
    display: none;
}

.entry-summary {
    display: flex;
    gap: 2rem;

    @media screen and (max-width: 1200px) {
        flex-direction: column;
    }
}

.entry-content {
    p {
        line-height: 1.75;
        font-size: 1rem;
    }

    .summary-image {
        margin-bottom: 2rem;
    }
}

.entry-author-date {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-brand-gray);

}

.summary-image {
    flex-shrink: 1;
    min-width: 300px;

    @media screen and (max-width: 968px) {
        min-width: 0;
    }

    @media screen and (max-width: 1200px) {
        min-width: 200px;
        max-width: 500px;
    }

    @media screen and (max-width: 640px) {
        min-width: 100px;
    }

    img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0.25em;
        
        @media screen and (max-width: 968px) {
            width: auto;
            max-width: 100%;
            display: block;
        }
    }
}

.summary-content {
    flex: 1;
    min-width: 600px;

    @media screen and (max-width: 968px) {
        min-width: 100%;
    }
}

.entry-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;

    a {
        color: var(--color-text-primary);
        text-wrap: balance;
    }

    &::after { display: none !important; }
}

.entry-tools {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.read-more {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: bold;
    font-family: var(--font-family-secondary);
    font-size: 1rem;
    background-color: var(--color-background-surface);
    color: var(--color-text-surface);
    padding: 0.5em 1em;
    border-radius: 0.25em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    
    a {
        color: inherit;
        text-decoration: none;
    }
}


/*
 * Right pane marked for ads
 */
.right-pane {
    text-align: center;

    p {
        font-size: 0.8em;
        color: var(--color-brand-dark-gray);
    }
}


/* Sponsors Section */
.sponsors-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
  }
  
  .sponsors-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  /* Sponsor Tier */
  .sponsor-tier {
    margin-bottom: 3rem;
  }
  
  .tier-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Tier-specific colors */
  .sponsor-tier:nth-child(2) .tier-title {
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid #d0d0d0;
  }
  
  .sponsor-tier:nth-child(3) .tier-title {
    background: linear-gradient(135deg, #f4d03f 0%, #ffd700 50%, #f4d03f 100%);
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid #e6c200;
  }
  
  .sponsor-tier:nth-child(4) .tier-title {
    background: linear-gradient(135deg, #c9c9c9 0%, #e0e0e0 50%, #c9c9c9 100%);
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid #b0b0b0;
  }
  
  .sponsor-tier:nth-child(5) .tier-title {
    background: linear-gradient(135deg, #b87333 0%, #cd7f32 50%, #b87333 100%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #8b5a2b;
  }
  
  .sponsor-tier:nth-child(6) .tier-title,
  .sponsor-tier:nth-child(7) .tier-title {
    background: linear-gradient(135deg, #3b4a5a 0%, #4b5d6f 50%, #3b4a5a 100%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c3744;
  }
  
  /* Base Flex Styles */
  .sponsor-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }
  
  /* Platinum - Largest */
  .sponsor-grid--platinum .sponsor-item {
    flex: 0 1 400px;
    max-width: 400px;
  }
  
  @media (max-width: 767px) {
    .sponsor-grid--platinum .sponsor-item {
      flex: 0 1 100%;
      max-width: 400px;
    }
  }
  
  /* Gold - Medium-large */
  .sponsor-grid--gold .sponsor-item {
    flex: 0 1 300px;
    max-width: 300px;
  }
  
  @media (max-width: 767px) {
    .sponsor-grid--gold .sponsor-item {
      flex: 0 1 calc(50% - 1rem);
      max-width: 300px;
    }
  }
  
  @media (max-width: 480px) {
    .sponsor-grid--gold .sponsor-item {
      flex: 0 1 100%;
    }
  }
  
  /* Silver - Medium */
  .sponsor-grid--silver .sponsor-item {
    flex: 0 1 200px;
    max-width: 200px;
  }
  
  @media (max-width: 767px) {
    .sponsor-grid--silver .sponsor-item {
      flex: 0 1 calc(50% - 1rem);
      max-width: 200px;
    }
  }
  
  @media (max-width: 480px) {
    .sponsor-grid--silver .sponsor-item {
      flex: 0 1 calc(50% - 1rem);
    }
  }
  
  /* Bronze - Smaller */
  .sponsor-grid--bronze .sponsor-item {
    flex: 0 1 150px;
    max-width: 150px;
  }
  
  @media (max-width: 767px) {
    .sponsor-grid--bronze .sponsor-item {
      flex: 0 1 calc(33.333% - 1.5rem);
      max-width: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .sponsor-grid--bronze .sponsor-item {
      flex: 0 1 calc(50% - 1rem);
    }
  }
  
  /* Supporters - Smaller */
  .sponsor-grid--supporters .sponsor-item {
    flex: 0 1 150px;
    max-width: 150px;
  }
  
  @media (max-width: 767px) {
    .sponsor-grid--supporters .sponsor-item {
      flex: 0 1 calc(33.333% - 1.5rem);
      max-width: 150px;
    }
  }
  
  @media (max-width: 480px) {
    .sponsor-grid--supporters .sponsor-item {
      flex: 0 1 calc(50% - 1rem);
    }
  }
  
  /* Sponsor Item */
  .sponsor-item {
    width: 100%;
  }
  
  .sponsor-link {
    display: block;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .sponsor-link:hover,
  .sponsor-link:focus {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
  }
  
  .sponsor-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
  
  /* Mobile-first adjustments */
  @media (max-width: 640px) {
    .sponsors-title {
      font-size: 2rem;
    }
    
    .tier-title {
      font-size: 1.25rem;
      padding: 0.875rem 1.5rem;
    }
    
    .sponsor-grid {
      gap: 1.5rem;
    }
  }



/**
 * Home page blog grid
 */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.home-blog-entry {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-blog-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Large items (8x8) - First 3 entries */
.home-blog-entry:nth-child(1) {
    grid-column: 1 / 9;
    grid-row: 1 / 9;
}

.home-blog-entry:nth-child(2) {
    grid-column: 9 / 17;
    grid-row: 1 / 9;
}

.home-blog-entry:nth-child(3) {
    grid-column: 1 / 9;
    grid-row: 9 / 17;
}

/* Small items (1x1) - Remaining 4 entries */
.home-blog-entry:nth-child(4) {
    grid-column: 9 / 13;
    grid-row: 9 / 13;
}

.home-blog-entry:nth-child(5) {
    grid-column: 13 / 17;
    grid-row: 9 / 13;
}

.home-blog-entry:nth-child(6) {
    grid-column: 9 / 13;
    grid-row: 13 / 17;
}

.home-blog-entry:nth-child(7) {
    grid-column: 13 / 17;
    grid-row: 13 / 17;
}

.home-blog-entry-content {
    a {
        color: white;
        text-decoration: none;
    }
}

/* First three grid items */
.home-blog-entry:nth-child(n+1):nth-child(-n+3) {
    position: relative;
    .home-blog-entry-image {
        position: absolute;
        inset: 0;
        z-index: 1;

        &::after {
            content: '';
            display: block;
            position: absolute;
            inset: 0;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
            z-index: 2;
            pointer-events: none;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 1;
        }
    }
    .home-blog-entry-content {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        z-index: 2;
        padding: 1.5rem;

        &::before {
            content: 'NEWS';
            display: block;
            color: var(--color-brand-yellow);
        }

        h3 {
            font-size: 1.25rem;
            margin: 0;
        }
    }
}

/* Bottom-right grid items */
.home-blog-entry:nth-child(n+4):nth-child(-n+7) {
    background: var(--color-brand-black);
    .home-blog-entry-image {
        display: none;
    }
    .home-blog-entry-content {
        padding: 1rem;

        &::before {
            content: 'NEWS';
            display: block;
            color: var(--color-brand-yellow);
        }

        h3 {
            font-weight: normal;
            font-size: 1rem;
            margin: 0;
        }
    }
}


/* Responsive design */
@media screen and (max-width: 1200px) {
    .home-blog-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(12, 1fr);
    }
    
    .home-blog-entry:nth-child(1) {
        grid-column: 1 / 7;
        grid-row: 1 / 7;
    }
    
    .home-blog-entry:nth-child(2) {
        grid-column: 7 / 13;
        grid-row: 1 / 7;
    }
    
    .home-blog-entry:nth-child(3) {
        grid-column: 1 / 7;
        grid-row: 7 / 13;
    }
    
    .home-blog-entry:nth-child(4) {
        grid-column: 7 / 10;
        grid-row: 7 / 10;
    }
    
    .home-blog-entry:nth-child(5) {
        grid-column: 10 / 13;
        grid-row: 7 / 10;
    }
    
    .home-blog-entry:nth-child(6) {
        grid-column: 7 / 10;
        grid-row: 10 / 13;
    }
    
    .home-blog-entry:nth-child(7) {
        grid-column: 10 / 13;
        grid-row: 10 / 13;
    }
}

@media screen and (max-width: 968px) {
    .home-blog-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .home-blog-entry:nth-child(1),
    .home-blog-entry:nth-child(2),
    .home-blog-entry:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    .home-blog-entry:nth-child(4),
    .home-blog-entry:nth-child(5) {
        grid-column: span 4;
        grid-row: auto;
    }
    
    .home-blog-entry:nth-child(6),
    .home-blog-entry:nth-child(7) {
        grid-column: span 4;
        grid-row: auto;
    }
}

@media screen and (max-width: 640px) {
    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .home-blog-entry:nth-child(1),
    .home-blog-entry:nth-child(2),
    .home-blog-entry:nth-child(3),
    .home-blog-entry:nth-child(4),
    .home-blog-entry:nth-child(5),
    .home-blog-entry:nth-child(6),
    .home-blog-entry:nth-child(7) {
        grid-column: 1;
        grid-row: auto;
    }
}


/**
 * Accordion styles
 */
.accordion-item {
    border: 1px solid var(--color-brand-gray);
    border-radius: 0.25em;
    margin-bottom: 1rem;
}

.accordion-item summary {
    padding: 1rem;
    cursor: pointer;
    border-radius: 0.25em;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    &::-webkit-details-marker {
        display: none;
    }
    
    &::marker {
        display: none;
    }
    
    &::after {
        content: "Read More";
        font-size: 0.875rem;
        font-weight: normal;
        color: var(--color-text-primary);
        opacity: 0.7;
    }
    
    h2 {
        margin: 0;
        font-size: 1.25rem;
        
        &::after {
            display: none;
        }
    }
}

.accordion-item[open] summary::after {
    content: "Read Less";
}

.accordion-content {
    padding: 1rem;
    border-top: 1px solid var(--color-brand-gray);
    
    p, ul {
        margin-top: 0;
    }
    
    p:last-child, ul:last-child {
        margin-bottom: 0;
    }
}

/**
 * Affinity Programs
 */
.affinity-programs-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.affinity-programs-item {
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--color-brand-gray);
    padding: 1.5rem;
    border-radius: 0.25em;
}

.affinity-programs-image {
    flex-shrink: 0;
    width: 150px;
}

.affinity-programs-image img {
    width: 100%;
    height: auto;
    display: block;
}

.affinity-programs-content {
    flex: 1;
}

@media screen and (max-width: 640px) {
    .affinity-programs-item {
        flex-direction: column;
        text-align: center;
    }
    
    .affinity-programs-image {
        width: 100px;
        margin: 0 auto;
    }
}

/**
 * Job Links
 */
.job-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-links-list li {
    border: 1px solid var(--color-brand-gray);
    border-radius: 0.25em;
}

.job-links-list a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: bold;
}

.job-links-list a:hover {
    background-color: var(--color-background-surface);
    color: var(--color-text-surface);
}




/** Slider fixes? **/
/* .slotholder {
    height: 320px !important;

    img {
        object-fit: contain !important;
        height: 100% !important;
        width: 100% !important;
    }
} */


/** Form fixes ? **/
.ctct-form-defaults {
    background: transparent !important;
    padding: 0 !important;
    max-width: min(100%, 400px) !important;

    * {
        font-family: var(--font-family-secondary) !important;
    }

    .ctct-form-header {
        color: var(--color-text-secondary) !important;
        font-family: var(--font-family-primary) !important;
    }

    .ctct-form-text,
    .ctct-form-label {
        color: var(--color-text-secondary) !important;
    }

    .ctct-gdpr-text {
        display: none !important;
    }

    .ctct-form-footer {
        display: none !important;
    }

    .ctct-form-button {
        background-color: var(--color-background-surface) !important;
        color: var(--color-text-surface) !important;
        padding: 0.5em 1em !important;
        border-radius: 0.25em !important;
        text-decoration: none !important;
        font-weight: bold !important;
        border: none !important;
        cursor: pointer !important;
        font-family: var(--font-family-secondary) !important;
        display: inline-block !important;
        font-size: 1rem !important;
        margin-top: 1rem !important;
    
        &:hover {
            background-color: var(--color-background-surface-hover) !important;
        }
    
        &:active {
            background-color: var(--color-background-surface-active) !important;
        }
    }
}


.events-container {
    font-family: var(--font-family-primary);
}

.header {
    border-bottom: 2px solid var(--color-brand-primary);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
    background: none;
}

.header h1 {
    color: var(--color-brand-primary);
    margin: 0;
    font-size: 2rem;
    font-family: var(--font-family-secondary);
    letter-spacing: 0.01em;
    font-weight: 700;
}

.header p {
    margin: 0.5rem 0 0 0;
    font-size: 1.05rem;
}

.event {
    border: 1px solid var(--color-brand-gray);
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.03);
    display: flex;
}

.event-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;

    img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
}

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: .75rem;
    font-family: var(--font-family-primary);
    text-overflow: ellipsis;
    overflow: hidden;
}

.event-title a {
    color: var(--color-brand-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover,
.event-title a:focus {
    text-decoration: underline;
    color: var(--color-brand-primary-dark, var(--color-brand-primary));
}

.event-dates {
    font-size: 0.95rem;
    margin-bottom: .5rem;
    font-family: var(--font-family-secondary);
}

.event-description {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-family-primary);
}

.no-events {
    text-align: center;
    color: var(--color-text-tertiary, #b0b0b0);
    font-style: italic;
    padding: 2.5rem;
    font-size: 1.1rem;
}

@media screen and (max-width: 640px) {
    .event-image {
        width: 100%;
        height: 200px;
    }

    .event {
        flex-direction: column;
    }
}