/********** Front Office Enhancements **********/

:root {
    --fo-shadow: 0 8px 30px rgba(19, 99, 198, 0.12);
    --fo-shadow-hover: 0 16px 40px rgba(19, 99, 198, 0.18);
    --fo-radius: 16px;
}

body {
    color: #444;
    overflow-x: hidden;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.page-hero {
    min-height: 220px;
}

.page-hero .display-5 {
    font-weight: 700;
}

.section-block {
    padding: 5rem 0;
}

.section-block--light {
    background: var(--light);
}

.section-block--white {
    background: #fff;
}

.section-intro {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-intro p {
    color: #666;
    margin-bottom: 0;
}

/*** Navbar ***/
.navbar-front {
    background: linear-gradient(135deg, #1363C6 0%, #0f52a8 100%) !important;
    box-shadow: 0 4px 20px rgba(19, 99, 198, 0.25);
}

.navbar-front .navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.35rem 0 !important;
}

.navbar-front .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.navbar-front .navbar-nav .nav-link:hover::after,
.navbar-front .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-front .navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .navbar-front .navbar-collapse {
        background: rgba(15, 82, 168, 0.98);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .navbar-front .navbar-nav .nav-link {
        padding: 0.65rem 0 !important;
    }
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 0.75rem;
}

.lang-switcher__link {
    color: #fff !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher__link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
}

.lang-switcher__link.is-active {
    color: #1363C6 !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-switcher__sep {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 400;
    user-select: none;
}

@media (max-width: 991.98px) {
    .lang-switcher {
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/*** Stats ***/
.stats-row {
    margin-top: -4.25rem;
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
}

.home-stats {
    background: #fff;
    border-radius: var(--fo-radius);
    box-shadow: var(--fo-shadow);
    padding: 1.5rem 1.25rem;
}

.home-stats__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    position: relative;
}

.home-stats__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: rgba(19, 99, 198, 0.12);
    display: none;
}

.home-stats__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(19, 99, 198, 0.08);
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.home-stats__value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-stats__label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #667788;
    line-height: 1.35;
    max-width: 9rem;
}

@media (min-width: 992px) {
    .home-stats {
        padding: 1.75rem 2rem;
    }

    .home-stats__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .home-stats__item {
        padding: 0.5rem 1rem;
    }

    .home-stats__item:not(:last-child)::after {
        display: block;
    }

    .home-stats__value {
        font-size: 2.1rem;
    }
}

@media (max-width: 575.98px) {
    .home-stats {
        padding: 1.25rem 1rem;
    }

    .home-stats__value {
        font-size: 1.65rem;
    }

    .home-stats__label {
        font-size: 0.82rem;
    }
}

.stat-card {
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--fo-shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fo-shadow-hover);
}

.stat-card__number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.stat-card__label {
    display: block;
    margin-top: 0.35rem;
    color: #666;
    font-size: 0.95rem;
}

/*** Quick links ***/
.quick-link-card {
    display: block;
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--fo-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fo-shadow-hover);
    color: inherit;
}

.quick-link-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    font-size: 1.5rem;
}

.quick-link-card h5 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/*** Sponsors ***/
.sponsors-section {
    background: var(--light);
    padding: 4rem 0;
}

.sponsors-section__header {
    text-align: center;
    margin-bottom: 2rem;
}

.sponsors-section__header h2 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.sponsors-section__header p {
    color: #666;
    margin-bottom: 0;
}

.sponsor-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: box-shadow 0.3s ease;
}

.sponsor-item:hover {
    box-shadow: var(--fo-shadow);
}

.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-item img {
    max-width: 85%;
    max-height: 80px;
    object-fit: contain;
}

/*** Content cards (news, sponsors, articles) ***/
.content-card-grid .case-item {
    border-radius: var(--fo-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--fo-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 260px;
}

.content-card-grid .case-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--fo-shadow-hover);
}

.content-card-grid .case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-grid .case-overlay {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(20, 24, 62, 0.92) 0%, rgba(20, 24, 62, 0.2) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
}

.content-card-grid .case-overlay h6 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.content-card-grid .case-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.content-card-grid .case-overlay .btn {
    align-self: flex-start;
}

.content-card-grid .case-item--placeholder img {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    object-fit: none;
}

.content-card-grid .case-item--sponsor {
    height: 260px;
    background: #fff;
}

.content-card-grid .case-item--sponsor img {
    object-fit: contain;
    padding: 1.25rem;
    background: #fff;
}

/*** Sponsor cards (frontoffice list) ***/
.sponsor-card-grid .sponsor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: var(--fo-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.sponsor-card-grid .sponsor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 99, 198, 0.22);
    box-shadow: 0 10px 28px rgba(19, 99, 198, 0.1);
    color: inherit;
}

.sponsor-card-grid .sponsor-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    padding: 2rem 1.75rem 1.5rem;
    background: #fff;
}

.sponsor-card-grid .sponsor-card__logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
}

.sponsor-card-grid .sponsor-card__body {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.sponsor-card-grid .sponsor-card__body h6 {
    margin: 0;
    font-size: 0.925rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.sponsor-card-grid .sponsor-card__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.35);
    border-radius: 50px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sponsor-card-grid .sponsor-card:hover .sponsor-card__btn {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.sponsor-detail__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f8f9fc;
    border-radius: var(--fo-radius);
    border: 1px solid #eee;
    max-height: 220px;
}

.sponsor-detail__logo img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
}

/*** Article detail ***/
.article-card {
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 2.5rem;
    box-shadow: var(--fo-shadow);
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.article-card__body {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.75;
}

.article-card__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.article-card__hero {
    border-radius: var(--fo-radius);
    overflow: hidden;
    background: #f3f6fb;
    border: 1px solid #e8ecf2;
}

.article-card__hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/*** News cards (frontoffice list) ***/
.news-card-grid .news-card-front {
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: var(--fo-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card-grid .news-card-front:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 99, 198, 0.22);
    box-shadow: 0 10px 28px rgba(19, 99, 198, 0.1);
}

.news-card-grid .news-card-front__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card-grid .news-card-front__media {
    position: relative;
    height: 210px;
    background: #f3f6fb;
    overflow: hidden;
}

.news-card-grid .news-card-front__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card-grid .news-card-front:hover .news-card-front__media img {
    transform: scale(1.04);
}

.news-card-grid .news-card-front__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(19, 99, 198, 0.35);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f3f6fb, #e8eef8);
}

.news-card-grid .news-card-front__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 0.75rem;
    gap: 0.65rem;
}

.news-card-grid .news-card-front__body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: #2c3e50;
}

.news-card-grid .news-card-front__body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #667788;
}

.news-card-grid .news-card-front__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

.news-card-grid .news-card-front__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a8798;
    white-space: nowrap;
}

.news-card-grid .news-card-front__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.35);
    border-radius: 50px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.news-card-grid .news-card-front:hover .news-card-front__btn {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

/*** News detail ***/
.news-detail {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: var(--fo-radius);
    overflow: hidden;
    box-shadow: var(--fo-shadow);
}

.news-detail__hero {
    background: #f3f6fb;
}

.news-detail__hero--clickable {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
}

.news-detail__hero img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.news-detail__content {
    padding: 2rem 2.25rem 2.5rem;
}

.news-detail__title {
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
    color: #1e2a3a;
    margin-bottom: 1rem;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.news-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #536579;
    background: #f3f6fb;
    border-radius: 50px;
}

.news-detail__meta-item i {
    color: var(--primary);
}

.news-detail__body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #3a4a5c;
    text-align: left;
}

.news-detail__body p {
    margin-bottom: 0.95rem;
}

.news-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}

.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
    color: #1e2a3a;
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.news-detail__body h2 {
    font-size: 1.12rem;
}

.news-detail__gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.news-detail__gallery-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 1rem;
}

.news-detail__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.news-detail__gallery-item {
    margin: 0;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    background: #f8fafc;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-detail__gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 99, 198, 0.12);
}

.news-detail__gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.news-gallery-modal .modal-content {
    overflow: hidden;
    border: none;
    border-radius: var(--fo-radius);
}

.news-gallery-modal .modal-header {
    align-items: center;
    gap: 1rem;
}

.news-gallery-modal__counter {
    margin-left: auto;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667788;
    white-space: nowrap;
}

.news-gallery-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.news-gallery-modal__image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.news-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #1e2a3a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-gallery-modal__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.news-gallery-modal__nav--prev {
    left: 1rem;
}

.news-gallery-modal__nav--next {
    right: 1rem;
}

@media (max-width: 767px) {
    .news-gallery-modal__nav {
        width: 38px;
        height: 38px;
    }

    .news-gallery-modal__nav--prev {
        left: 0.5rem;
    }

    .news-gallery-modal__nav--next {
        right: 0.5rem;
    }
}

.news-detail__body ul,
.news-detail__body ol {
    margin-bottom: 1.15rem;
    padding-left: 1.35rem;
}

.news-detail__footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 767px) {
    .news-detail__content {
        padding: 1.5rem 1.25rem 2rem;
    }

    .news-card-grid .news-card-front__footer {
        flex-wrap: wrap;
    }
}


/*** Pagination ***/
.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 1rem;
}

.pagination-wrapper .pagination {
    gap: 0.35rem;
}

.pagination-wrapper .page-link {
    border-radius: 8px !important;
    color: var(--primary);
    border-color: #dee2e6;
    min-width: 40px;
    text-align: center;
}

.pagination-wrapper .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/*** Gallery ***/
.gallery-section {
    position: relative;
    padding-top: 2rem;
    overflow: hidden;
}

.gallery-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(19, 99, 198, 0.06) 0%, transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(19, 99, 198, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.gallery-section--album {
    padding-top: 3.5rem;
}

.gallery-toolbar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.gallery-toolbar__title {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #2c3e50;
}

.gallery-toolbar__meta {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: #667788;
}

.gallery-filter {
    min-width: 260px;
    max-width: 340px;
}

.gallery-filter__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667788;
}

.gallery-filter__control {
    position: relative;
}

.gallery-filter__control i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
    z-index: 1;
}

.gallery-filter .form-select {
    border-radius: 50px;
    padding: 0.72rem 1.25rem 0.72rem 2.65rem;
    border: 2px solid rgba(19, 99, 198, 0.14);
    font-weight: 500;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-filter .form-select:focus {
    border-color: rgba(19, 99, 198, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(19, 99, 198, 0.12);
}

.gallery-bento {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.gallery-album-card {
    grid-column: span 4;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.08);
    border-radius: calc(var(--fo-radius) + 2px);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(19, 99, 198, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-album-card--featured {
    grid-column: span 8;
}

.gallery-album-card:hover {
    transform: translateY(-5px);
    border-color: rgba(19, 99, 198, 0.2);
    box-shadow: 0 16px 36px rgba(19, 99, 198, 0.14);
}

.gallery-album-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-album-card__media {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #eef3fa;
}

.gallery-album-card--featured .gallery-album-card__media {
    height: 320px;
}

.gallery-album-card__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-album-card__collage {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.gallery-album-card__collage-item {
    overflow: hidden;
    background: #dbe7f7;
}

.gallery-album-card__collage-item--1 {
    grid-row: 1 / 3;
}

.gallery-album-card__collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-album-card:hover .gallery-album-card__media > img,
.gallery-album-card:hover .gallery-album-card__collage-item img {
    transform: scale(1.05);
}

.gallery-album-card__year,
.gallery-album-card__count {
    position: absolute;
    z-index: 3;
    padding: 0.38rem 0.8rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.gallery-album-card__year {
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.72);
}

.gallery-album-card__count {
    top: 1rem;
    right: 1rem;
    background: rgba(19, 99, 198, 0.88);
}

.gallery-album-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(19, 99, 198, 0.78) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.gallery-album-card__overlay-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1rem;
    transform: translateX(-6px);
    transition: transform 0.25s ease;
}

.gallery-album-card:hover .gallery-album-card__overlay {
    opacity: 1;
}

.gallery-album-card:hover .gallery-album-card__overlay-icon {
    transform: translateX(0);
}

.gallery-album-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    padding: 1.25rem 1.35rem 0.85rem;
}

.gallery-album-card__body h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e2a3a;
}

.gallery-album-card--featured .gallery-album-card__body h3 {
    font-size: 1.22rem;
}

.gallery-album-card__body p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #667788;
}

.gallery-album-card__body p strong {
    color: var(--primary);
    font-weight: 700;
}

.gallery-album-card__footer {
    padding: 0 1.35rem 1.35rem;
    margin-top: auto;
}

.gallery-album-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1.05rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.28);
    border-radius: 50px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-album-card:hover .gallery-album-card__cta {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(2px);
}

.gallery-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #667788;
}

.gallery-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.gallery-breadcrumb a:hover {
    text-decoration: underline;
}

.gallery-album-show__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: var(--fo-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gallery-album-show__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.gallery-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(19, 99, 198, 0.08);
    border-radius: 50px;
}

.gallery-chip--muted {
    color: #2c3e50;
    background: #f3f6fb;
}

.gallery-mosaic {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.gallery-mosaic__item {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #eef3fa;
    aspect-ratio: 1;
    cursor: zoom-in;
    box-shadow: 0 2px 12px rgba(19, 99, 198, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-mosaic__item--hero {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-mosaic__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(19, 99, 198, 0.16);
}

.gallery-mosaic__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-mosaic__item:hover img {
    transform: scale(1.04);
}

.gallery-mosaic__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(19, 99, 198, 0.42);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.gallery-mosaic__overlay i {
    font-size: 1.35rem;
}

.gallery-mosaic__item:hover .gallery-mosaic__overlay {
    opacity: 1;
}

.gallery-viewer-modal .modal-header small {
    display: block;
    margin-top: 0.15rem;
}

.gallery-viewer-modal__thumbs {
    display: flex;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

.gallery-viewer-modal__thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f6fb;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-viewer-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-viewer-modal__thumb:hover,
.gallery-viewer-modal__thumb.is-active {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .gallery-album-card,
    .gallery-album-card--featured {
        grid-column: span 6;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-mosaic__item--hero {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-filter {
        max-width: none;
    }

    .gallery-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-album-card,
    .gallery-album-card--featured {
        grid-column: span 2;
    }

    .gallery-album-card__media,
    .gallery-album-card--featured .gallery-album-card__media {
        height: 210px;
    }

    .gallery-album-show__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .gallery-mosaic__item--hero {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 575.98px) {
    .gallery-bento {
        grid-template-columns: 1fr;
    }

    .gallery-album-card,
    .gallery-album-card--featured {
        grid-column: span 1;
    }
}

.portfolio .portfolio-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--fo-radius);
    box-shadow: var(--fo-shadow);
    margin-bottom: 1.5rem;
    background: #fff;
}

.portfolio .portfolio-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio .portfolio-wrap:hover img {
    transform: scale(1.05);
}

.portfolio .portfolio-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 99, 198, 0.85), rgba(19, 99, 198, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio .portfolio-wrap:hover::before {
    opacity: 1;
}

.portfolio .portfolio-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
    opacity: 1;
}

.portfolio .portfolio-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.portfolio .portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.portfolio .portfolio-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.portfolio .portfolio-links a:hover {
    transform: scale(1.15);
    color: #fff;
}

/*** About page ***/
.about-content p {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.about-content h3 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.value-card {
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--fo-shadow);
    border-left: 4px solid var(--primary);
}

.value-card h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.value-card p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.map-wrapper {
    border-radius: var(--fo-radius);
    overflow: hidden;
    box-shadow: var(--fo-shadow);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    border: 0;
}

.map-mobile {
    position: relative;
    padding-bottom: 70%;
    height: 0;
    overflow: hidden;
}

.map-mobile iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-desktop iframe {
    height: 450px;
}

@media (min-width: 768px) {
    .map-mobile {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .map-desktop {
        display: none;
    }
}

/*** Footer ***/
.footer .row.g-5 {
    align-items: flex-start;
}

.footer-brand {
    margin-top: 1.35rem;
}

.footer-brand__logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.footer-brand__logo img {
    max-height: 90px;
}

.footer-brand__sitestar img {
    max-height: 60px;
}

@media (min-width: 992px) {
    .footer-brand {
        margin-top: 1.25rem;
    }

    .footer-brand__logos {
        align-items: flex-start;
    }

    .footer-brand__logo {
        margin-left: -1.35rem;
    }
}

.footer-links-grid a {
    display: block;
    margin-bottom: 0.65rem;
}

.footer-tagline {
    line-height: 1.7;
}

/*** Hero home ***/
.hero-actions .btn {
    min-width: 160px;
}

.hero-actions .btn-outline-light {
    border-width: 2px;
}

.hero-actions .btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.hero-header--home {
    padding-top: 6.5rem !important;
    padding-bottom: 3.5rem;
}

.hero-header--home > .container {
    padding-top: 6rem;
    padding-bottom: 10rem;
}

.hero-header--home .row {
    padding-top: 3.5rem;
}

.hero-header--home .hero-header__subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.4;
}

.hero-header--home .hero-header__text {
    line-height: 1.8;
    max-width: 34rem;
}

.hero-header--home .hero-actions {
    margin-top: 0.25rem;
}

.about-teaser__media {
    border-radius: var(--fo-radius);
    overflow: hidden;
    box-shadow: var(--fo-shadow);
    background: var(--light);
}

.about-teaser__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.team-item__social {
    min-height: 46px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-header--home > .container {
        padding-bottom: 11.5rem;
    }
}

.hero-carousel {
    display: inline-block;
    width: 100%;
    max-width: 580px;
    text-align: center;
}

.hero-carousel__frame {
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 0.45rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.hero-carousel__viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--fo-radius) - 4px);
    overflow: hidden;
    background: #eef2f8;
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
}

.hero-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .hero-carousel {
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel__frame {
        padding: 0.35rem;
    }
}

/*** Contest cards ***/
.contest-section {
    position: relative;
}

.contest-section.section-block {
    padding-top: 3.25rem;
}

.contest-overview {
    margin-bottom: 2.5rem;
}

.contest-overview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.85rem;
}

.contest-overview__title {
    margin: 0 0 1rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #2c3e50;
}

.contest-overview__text {
    max-width: none;
    margin: 0;
    color: #667788;
    line-height: 1.75;
}

.contest-summary {
    flex-shrink: 0;
}

.contest-summary__metrics {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contest-summary__metric {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.contest-summary__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(19, 99, 198, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.contest-summary__text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.3rem;
    line-height: 1.2;
    white-space: nowrap;
}

.contest-summary__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.contest-summary__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #667788;
}

.contest-card-grid .contest-card-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.08);
    border-radius: calc(var(--fo-radius) + 2px);
    box-shadow: 0 4px 18px rgba(19, 99, 198, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contest-card-grid .contest-card-front:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 99, 198, 0.2);
    box-shadow: 0 14px 32px rgba(19, 99, 198, 0.12);
}

.contest-card-front__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0;
}

.contest-card-front__logo {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    background: #f3f6fb;
    border: 1px solid #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.contest-card-front__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
}

.contest-card-front__logo-placeholder {
    font-size: 1.8rem;
    color: rgba(19, 99, 198, 0.35);
}

.contest-card-front__years {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.contest-card-front__years span,
.contest-card-front__year {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(19, 99, 198, 0.08);
    border-radius: 50px;
}

.contest-card-front__year--link {
    text-decoration: none;
    border: 1px solid rgba(19, 99, 198, 0.18);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contest-card-front__year--link:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.contest-card-front__years-more {
    color: #667788 !important;
    background: #f3f6fb !important;
}

.contest-card-front__body {
    flex: 1;
    padding: 1.15rem 1.35rem 0.85rem;
}

.contest-card-front__body h3 {
    margin: 0 0 0.65rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1e2a3a;
}

.contest-card-front__body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #667788;
}

.contest-card-front__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0 1.35rem 1.35rem;
    margin-top: auto;
}

.contest-card-front__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(19, 99, 198, 0.28);
    border-radius: 50px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contest-card-front__btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.contest-card-front__btn--primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.contest-card-front__btn--primary:hover {
    background: #0f52a8;
    border-color: #0f52a8;
}

.contest-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 1rem;
}

.contest-timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 1.55rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(19, 99, 198, 0.35), rgba(19, 99, 198, 0.08));
}

.contest-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
}

.contest-timeline__item:last-child {
    padding-bottom: 0;
}

.contest-timeline__marker span,
.contest-timeline__year,
.contest-timeline__year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(19, 99, 198, 0.18);
}

.contest-timeline__year-link {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contest-timeline__year-link:hover {
    color: #fff;
    background: #0f52a8;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(19, 99, 198, 0.24);
}

.contest-timeline__content {
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.contest-timeline__content h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e2a3a;
}

.contest-timeline__content p {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: #667788;
}

.contest-timeline__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contest-palmares-group--spaced {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eef2f7;
}

.contest-palmares-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contest-palmares-group__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e2a3a;
}

.contest-palmares-group__photos {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.contest-palmares-group__photos:hover {
    text-decoration: underline;
}

.contest-palmares-awards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.contest-palmares-award {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contest-palmares-award__place {
    flex-shrink: 0;
    min-width: 88px;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1363c6, #0f52a8);
    border-radius: 50px;
}

.contest-palmares-award__details {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #667788;
}

.contest-palmares-award__details strong {
    color: #2c3e50;
}

.contest-history-note {
    margin: 0;
    font-size: 0.86rem;
    color: #7a8798;
    font-style: italic;
}

.contest-history__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.contest-history__toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contest-history__toggle-meta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.contest-history__toggle-names {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #667788;
}

.contest-history__chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #8896a8;
    transition: transform 0.2s ease;
}

.contest-history__item.is-open .contest-history__chevron {
    transform: rotate(180deg);
}

.contest-history__panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.contest-history__item:not(.is-open) .contest-timeline__content {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.contest-grid .service-item {
    border-radius: var(--fo-radius);
    box-shadow: var(--fo-shadow);
    height: 100%;
}

.contest-grid .service-item .service-icon {
    border-radius: 12px;
    overflow: hidden;
    width: 100px;
    height: 100px;
}

.contest-grid .service-item .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contest-grid .service-item a.btn {
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

@media (max-width: 767.98px) {
    .contest-overview__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .contest-summary__metrics {
        flex-wrap: wrap;
        gap: 0.85rem 1.25rem;
    }

    .contest-timeline__item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contest-timeline::before {
        display: none;
    }

    .section-block {
        padding: 3.5rem 0;
    }

    .contest-section.section-block {
        padding-top: 2.5rem;
    }

    .stats-row {
        margin-top: -3.25rem;
    }

    .home-stats__value {
        font-size: 1.55rem;
    }

    .article-card {
        padding: 1.5rem;
    }
}

/*** Authentication ***/
.auth-section {
    padding: 3rem 0 5rem;
    background: var(--light);
    min-height: calc(100vh - 75px - 120px);
}

.auth-card {
    background: #fff;
    border-radius: var(--fo-radius);
    padding: 2.5rem;
    box-shadow: var(--fo-shadow);
}

.auth-card--wide {
    padding: 2rem 2.5rem;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card__header img {
    max-height: 70px;
    margin-bottom: 1rem;
}

.auth-card__header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-card__header p {
    color: #777;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.auth-side {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.auth-side img {
    max-width: 100%;
    border-radius: var(--fo-radius);
    box-shadow: var(--fo-shadow);
    margin-bottom: 1.5rem;
}

.auth-side h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.auth-side p {
    color: #666;
    line-height: 1.7;
}

.auth-form .form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.auth-form .form-label .text-danger {
    font-weight: 700;
}

.auth-form .form-control,
.auth-form .form-select {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: 1px solid #dee2e6;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(19, 99, 198, 0.15);
}

.auth-form .input-group-text {
    border-radius: 10px 0 0 10px;
    background: var(--light);
    border-color: #dee2e6;
    color: var(--primary);
}

.auth-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-form-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eee;
}

.auth-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.auth-form-section__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

.btn-auth {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    width: 100%;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-auth:hover {
    background: #0f52a8;
    color: #fff;
    transform: translateY(-1px);
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    background: var(--light);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-preview--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.75rem;
    gap: 0.35rem;
}

.photo-preview--placeholder i {
    font-size: 2.5rem;
    color: #ccc;
}

.photo-preview--placeholder[hidden],
.photo-preview[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .auth-section {
        padding: 2rem 0 3rem;
    }

    .auth-card {
        padding: 1.75rem;
    }
}

