/* bulma overrides */
.navigation,
.navbar {
    background-color: #3D77B2;
}

.navbar-item,
.navbar-link {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.navbar-menu.is-active .navbar-item,
.navbar-menu.is-active .navbar-link {
    color: #111;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: #fff;
}

.navbar-link.is-active,
.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
a.navbar-item.is-active,
a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover {
    color: #fff;
    opacity: 1;
}

.navbar-dropdown a.navbar-item {
    color: #111;
}

.hero-body {
    align-items: flex-end !important;
}

.navbar-burger {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-burger:hover {
    color: #fff;
}

.article-link {
    text-decoration: none !important;
    transition: transform 0.3s ease;
    display: block;
}

.article-link .subtitle {
    text-decoration: underline;
}

.article-link .is-info .subtitle {
    color: #3273dc;
}

.article-link:hover {
    transform: translateY(-4px);
}

.article-link:hover .subtitle {
    text-decoration: none;
}

a.block {
    display: block;
}

@media screen and (min-width: 769px) {

    .modal-card,
    .modal-content {
        width: 80%;
        max-width: 1920px;
    }
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-content .image {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content .image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.content ul {
    margin: 0;
}

.contact li {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.section--np {
    padding-top: 0;
    padding-bottom: 0;
}



/* site-specific */
.logo {
    width: 100%;
    max-width: 400px;
}

.logo--golf-nsw {
    max-width: 120px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .logo--golf-nsw {
        display: none;
    }
}

@media (min-width: 769px) {
    .text--golf-nsw {
        display: none;
    }

    .wrapper {
        padding: 4rem;
        margin-top: -10vh;
        background-color: #fff;
        box-shadow: 0 0 32px rgba(0, 0, 0, 0.05);
    }
}

.logo--golf-nsw:hover {
    transform: translateY(-8px) rotate(-5deg);
}

.hero {
    background-size: cover;
    background-position: center;
}

.footer-text {
    margin-top: 4rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}


.subtle {
    color: #999;
}

.decorative {
    color: #ccc;
}

.quote {
    color: #999;
    font-size: 1.5rem;
    line-height: 1.2;
}

.strike {
    text-decoration: line-through;
}

.download {
    text-decoration: none !important;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: block;
}

.download:hover {
    transform: translateY(-4px);
}

.wrapper {
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 4rem;
}

.divisions .card,
.results .card {
    transition: transform 0.3s ease;
}

.divisions .card strong,
.results .card strong {
    color: #3D77B2;
}

.divisions .card:hover .subtitle {
    text-decoration: none;
}

.divisions .card:hover,
.results .card:hover {
    transform: translateY(-4px);
}

.divisions ul {
    list-style-type: none;
    color: #777;
}

.results .card {
    color: #999;
}

.faint {
    opacity: 0.2;
}

.divisions table {
    width: 100%;
}

.winner {
    background-color: #effaf3;
    color: #257942;
    /* font-weight: bold; */
    padding: .5rem;
    border-radius: 4px;
}


.home-offset {
    margin-top: -4rem;
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .home-cards {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero.home {
        min-height: 300px;
    }
}

@media (min-width: 769px) {
    .home-offset {
        margin-top: -6rem;
    }
}

.fade-in {
    animation: 1s ease 1 forwards fade-in;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.about .content ul {
    margin-left: 2rem;
}

.about .content em {
    display: block;
    background-color: #eee;
    padding: 1rem;
    border-left: 3px solid #ddd;
}

.honey {
    position: absolute;
    left: -9999px;
}

/* Modal fade animations */
.modal {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal.is-closing {
    opacity: 0;
    visibility: hidden;
}

/* Draw Cards - Mobile View */
.draw-cards .draw-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.draw-cards .draw-card .card-content {
    padding: 1rem;
}

.brackets-viewer h1 {
    display: none;
}

.brackets-viewer .match {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    vertical-align: middle;
    border: none !important;
    align-items: center;
    /* Vertically centers direct children */
    justify-content: center;
    /* Horizontally centers direct children */
}

.match-details {
    width: 100%;
    margin-bottom: 48px;
}

.brackets-viewer {
    --match-width: 260px !important;
}

.elimination {
    margin: 0 auto;
}

.brackets-viewer h3 {
    margin-bottom: 24px !important;
}