* {
    /* outline: 1px solid tomato; */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.content {
    margin: auto;
    padding: 0 10px 0 10px;
    max-width: 1450px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    overflow-y: scroll;
    scrollbar-gutter: stable; /* keeps space for scrollbar even when not needed */
}

/* UNI START */
.main-page-header-uni {
    text-align: center;
    margin: 20px 0;
    font-size: 38px;
}

.add-button-uni {
    margin: 0 0 16px 0px;
    padding: 10px 16px;
    background: #222641;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: background-color .2s ease, transform .06s ease, box-shadow .2s ease;
    user-select: none;
}

.add-button-uni:hover {
    background: #444a7a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.16);
}

.add-button-uni:active {
    transform: translateY(1px);
}

.add-button-uni:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,203,5,.25);
}

.edit-btn-uni {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #ffcb05;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
}

.edit-btn-uni:hover {
    background-color: #e6b800;
}

.delete-btn-uni {
    margin-top: 10px;
    margin-left: 4px;
    padding: 6px 12px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.delete-btn-uni:hover {
    background-color: #c82333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.delete-btn-uni:active {
    transform: translateY(1px);
}

.delete-btn-uni:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,203,5,.25);
}

@media (max-width: 720px) {
    .add-button-uni {
        width: 100%;
        margin: 0 0 14px 0;
        text-align: center;
    }
}
/* UNI END */

/* ===== HEADER START ===== */
header {
    background: linear-gradient(90deg, #1f1f1f, #292929);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Core layout */
.header-bar {
    position: relative;
    max-width: 1100px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 0 15px;
}

.club-logo-left,
.club-logo-right {
    position: absolute;
    display: flex;
    align-items: center;
    height: 100%;
}

.club-logo-left {
    left: 15px;
}
.club-logo-right {
    right: 15px;
}

.club-logo-left img,
.club-logo-right img {
    display: block;
    height: 45px;
    width: auto;
    margin: 0;
    outline: white solid 1.5px; 
    border-radius: 6px;        
}

#nav-wrapper {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#nav-wrapper .content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
}

#nav-wrapper a {
    color: #fff;
    text-decoration: none;
    padding: 6px 15px;
    font-size: 19px;
    transition: all 0.25s ease;
    border-radius: 8px;
}

#nav-wrapper a:hover,
#nav-wrapper a.active {
    background-color: #ffcb05;
    color: #1f1f1f;
}

.nav-toggle {
    position: absolute;
    right: 15px;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle-bar {
    display: block;
    width: 36px;
    height: 7px;
    background: #ffffff;
}

@media (max-width: 1000px) {
    #nav-wrapper a {
        padding: 5px 12px;
        font-size: 16px;
    }
    .header-bar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .club-logo-right {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
    }

    #nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        background: linear-gradient(90deg, #1f1f1f, #292929);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        display: none;            /* hidden by default */
        justify-content: center;
    }

    #nav-wrapper.is-open {
        display: block;
        animation: navSlideDown 160ms ease-out;
    }

    #nav-wrapper .content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
        max-height: 70vh;  
        overflow-y: auto; 
    }

    #nav-wrapper a {
        font-size: 18px;
        padding: 10px 12px;
        font-weight: 500;
        border-radius: 10px;
        text-align: center;
        background: transparent;
    }
}

@media (max-width: 420px) {
    .club-logo-left img {
        height: 40px;
    }
    #nav-wrapper a {
        font-size: 16px;
        padding: 11px;
    }
}

@media (max-width: 360px) {
    .club-logo-left img {
        height: 36px;
    }
    .nav-toggle {
        width: 40px;
        height: 40px;
        right: 10px;
    }
    .nav-toggle-bar {
        width: 20px;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== HEADER END ===== */



/* INDEX  START */
.index-thinner-content-wrapper {
    width: 900px;
    margin: 0 auto 80px; 
}

.index-top-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 15px 0 0 0;
    background-color: #fff;
    gap: 10px;
    height: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.index-club-logo {
    width: 180px;
    padding: 127px 0;
    background: #222641;
    border-radius: 10px;
}

.index-banner-photo {
    flex: 1;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.index-judo-logo {
    width: 179px;
    padding: 73px 20px;
    border-radius: 10px;
    background: #b0acac;
}

.index-mcr {
    width: 250px;
    position: absolute;
    right: 17px;
    bottom: 16px;
    border: #000 solid 2px;
    border-radius: 8px;
}

.index-psk {
    width: 250px;
    position: absolute;
    left: 17px;
    bottom: 16px;
    border: #000 solid 2px;
    border-radius: 8px;
}

.index-mid-text-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    line-height: 1.6;
    color: #333;
}

.index-mid-text-header {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222641;
    border-bottom: 2px solid #ffcb05;
    padding-bottom: 5px;
}

.index-mid-text-wrapper p {
    margin-bottom: 15px;
    font-size: 16px;
}

.index-sponsors-header {
    text-align: center;
}

.index-sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    flex-wrap: wrap;
}

.index-sponsors img {
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.index-sponsors img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .index-mid-text-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    .index-mid-text-header {
        font-size: 20px;
    }
    .index-mid-text-wrapper p {
        font-size: 15px;
    }
}
/* INDEX  END */

/* NEWS START*/
.news-container {
    max-width: 1100px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.news-image {
    float: left;
    max-width: 400px;
    width: 100%;
    margin: 0 15px 15px 0;
    border-radius: 5px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.news-content {
    overflow: visible;
}

.news-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #222641;
}

.news-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.news-text {
    font-size: 16px;
    color: #333;
}

.news-item .edit-form {
    background: #fffbe6;
    border: 2px solid #ffcb05;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-item .edit-form label {
    font-weight: bold;
    color: #222641;
}

.news-item .edit-form input[type="text"],
.news-item .edit-form input[type="date"],
.news-item .edit-form input[type="file"],
.news-item .edit-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.news-item .edit-form img {
    display: block;
    margin: 5px 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.news-item .edit-form button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.news-item .edit-form button[type="submit"] {
    background-color: #28a745;
    color: white;
}

.news-item .edit-form button[type="submit"]:hover {
    background-color: #218838;
}

.news-item .edit-form .cancel-edit {
    background-color: #dc3545;
    color: white;
}

.news-item .edit-form .cancel-edit:hover {
    background-color: #c82333;
}

.add-news-section {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background-color: #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.add-news-section h2 {
    margin-bottom: 15px;
    color: #222641;
}

.add-news-form {
    display: none;
    max-width: 600px;
    margin: auto;
}

.add-news-form label {
    font-weight: bold;
    color: #222641;
}

.add-news-form input[type="text"],
.add-news-form input[type="date"],
.add-news-form textarea,
.add-news-form input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 3px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.add-news-form button {
    background-color: #222641;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.add-news-form button:hover {
    background-color: #444a7a;
}

.show-form-btn {
    cursor: pointer;
    user-select: none;
    background-color: #222641;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: background-color .2s ease, transform .06s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-form-btn:hover,
.show-form-btn:focus {
    background-color: #444a7a;
    box-shadow: 0 0 8px rgba(68, 74, 122, 0.6);
    outline: none;
}

.show-form-btn::before {
    content: '+';
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.show-form-btn.open::before {
    content: '−';
    transform: rotate(0deg);
}

.form-toggle-container {
    text-align: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    font-family: "Segoe UI", Arial, sans-serif;
}

.modal-title {
    font-size: 22px;
    color: #222641;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffcb05;
    padding-bottom: 5px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.modal-close:hover {
    background: #c82333;
}

.add-competition-form label {
    display: block;
    margin-bottom: 15px;
    color: #222641;
    font-weight: bold;
}

.add-competition-form input[type="text"],
.add-competition-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 5px;
}

.add-competition-form textarea {
    resize: vertical;
}

.form-actions {
    text-align: center;
    margin-top: 10px;
}

.submit-btn {
    background-color: #222641;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #444a7a;
}

.fc .fc-daygrid-event .fc-event-title {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.fc .fc-daygrid-day-events {
    max-height: none !important;
}

.fc .fc-daygrid-event {
    height: auto !important;
    overflow: visible !important;
}

.fc .fc-daygrid-event {
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-item {
        padding: 10px;
    }
    .news-image {
        float: none;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    .news-content {
        overflow: visible;
    }
    .news-item .edit-form {
        padding: 15px;
    }
    .fc .custom-event {
        font-size: 12px;
        padding: 2px 4px;
    }
}
/* NEWS END*/

/* DOCS START*/
#searchResults {
    padding-top: 6px;
}

.docs-toolbar {
    max-width: 1100px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: flex-start;
}

.docs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
}

.docs-table thead tr {
    text-align: left;
    border-bottom: 1px solid #eee;
}

.docs-table th,
.docs-table td {
    padding: 10px;
    vertical-align: top;
}

.docs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.col-published {
    width: 140px;
}

.col-size {
    width: 140px;
}

.actions-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.doc-title-cell .doc-title-link {
    display: inline-block;
    max-width: clamp(200px, 60vw, 68ch);
    overflow-wrap: anywhere;
    text-decoration: none;
    color: #0d6efd;
}

.doc-desc {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.doc-hidden {
    margin-top: 4px;
    font-size: 12px;
    color: #a00;
}

.loading-cell {
    padding: 12px;
    color: #666;
}

.loading-cell.error {
    color: #a00;
}

#groupSubmitBtn.add-button-uni {
    margin: 0;
}

.btn {
    display: inline-block;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font: inherit;
}

.btn-primary {
    background: #0d6efd;
}

.btn-view {
    background: #0d6efd;
}

.btn-download {
    background: #198754;
}

.btn-edit {
    background: #6c757d;
}

.btn-delete {
    background: #dc3545;
}

#openAddFile.add-button-uni {
    margin: 0;
    padding: 8px 13px;
}

#openEditGroup.edit-btn-uni {
    margin: 0;
    border-radius: 8px;
    padding: 8px 13px;
}

#deleteGroupBtn.delete-btn-uni {
    margin: 0;
    border-radius: 8px;
    padding: 8px 13px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 92%;
    max-width: 560px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    border: 0;
    cursor: pointer;
}

.modal-title {
    margin: 0 0 10px;
}

.form-row {
    display: block;
    margin: 8px 0;
}

.form-row input[type="text"],
.form-row textarea,
#document,
#publishedOn {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.form-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-msg {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.form-msg.error {
    color: #a00;
}

@media (max-width: 900px) {
    .col-published {
        width: auto;
    }
    .col-size {
        width: auto;
    }
    .doc-title-cell .doc-title-link {
        max-width: clamp(160px, 70vw, 68ch);
    }
}

@media (max-width: 720px) {
    .docs-table {
        display: block;
    }
    .docs-table thead {
        display: none;
    }
    .docs-table tbody {
        display: block;
    }
    .docs-table tbody tr.docs-row {
        display: block;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 8px 10px;
        margin: 10px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }
    .docs-table tbody tr.docs-row td {
        display: flex;
        padding: 6px 0;
        border-bottom: none;
    }
    .docs-table tbody tr.docs-row td::before {
        content: attr(data-label) ": ";
        flex: 0 0 120px;
        font-weight: 600;
        color: #333;
        padding-right: 10px;
    }
    .doc-title-cell {
        display: block;
        padding-top: 2px;
    }
    .doc-title-cell::before {
        content: none;
    }
    .doc-title-cell .doc-title-link {
        max-width: 100%;
    }
    .actions-wrap {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .modal-card {
        padding: 16px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .actions-wrap .btn {
        padding: 6px 8px;
    }
}

.group-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.group-title {
    max-width: 720px;
}

.g-title {
    margin: 0 0 6px;
    font-size: 20px;
}

.g-meta {
    color: #555;
    font-size: 14px;
    margin-bottom: 4px;
}

.g-desc {
    color: #666;
    font-size: 14px;
    white-space: pre-wrap;
}

.group-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .group-head {
        flex-direction: column;
        align-items: stretch;
    }
}

.docs-search input[type="search"] {
    width: min(520px, 100%);
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-summary {
    color: #333;
    font-weight: 600;
    margin: 4px 0 10px;
}

.search-block-title {
    margin: 6px 0 8px;
    font-size: 16px;
}

.search-list {
    display: grid;
    gap: 10px;
}

.search-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.search-meta {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.search-file-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn.btn-secondary {
    background: #6c757d;
}

@media (max-width: 720px) {
    .docs-toolbar {
        flex-wrap: wrap;
    }
    .docs-search {
        flex: 1 1 100%;
    }
    .docs-search input[type="search"] {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .doc-title-cell .doc-title-link {
        max-width: 82vw;
    }
}

.search-item .doc-title-link {
    text-decoration: none !important;
}

.search-item .doc-title-link:hover {
    text-decoration: none !important;
    opacity: 0.85;
}

.docs-search {
    flex: 1 1 720px;
    min-width: 0;
}

.docs-search input[type="search"] {
    width: 40%;
    min-width: 240px;
    max-width: none;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 720px) {
    .docs-toolbar {
        flex-wrap: wrap;
    }
    .docs-search {
        flex: 1 1 100%;
    }
}

/* make built-in clear "x" inside search field clickable (pointer) */
input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    cursor: pointer;
}
/* DOCS END */

/* ABOUT START */
.about-section {
    display: block;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 40px 0 56px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-img {
    flex: 0 0 340px;
    max-width: 100%;
    border: 3px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.about-text {
    flex: 1 1 600px;
    line-height: 1.65;
}

.about-text h2 {
    margin: 0 0 10px;
    font-size: 22px;
    border-bottom: 2px solid #ffcb05;
}

.about-text p {
    margin: 0 0 12px;
}

@media (max-width: 980px) {
    .about-row {
        gap: 22px;
        margin: 32px 0 44px;
    }
    .about-img {
        flex-basis: 300px;
    }
}

@media (max-width: 780px) {
    .about-row,
    .about-row.reverse {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-img {
        width: 100%;
        flex: 0 0 auto;
    }
    .about-text {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .about {
        padding: 20px 12px 36px;
    }
    .about-text h2 {
        font-size: 20px;
    }
}

.about {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.about-section {
    display: block;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0px 0 30px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    padding: 16px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-img {
    flex: 0 0 360px;
    border: 2px solid #2f2f2f;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f6f8;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.about-text {
    flex: 1 1 600px;
    line-height: 1.7;
}

.about-text h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.about-text p {
    margin: 0 0 12px;
    color: #444;
}

@media (max-width: 980px) {
    .about-row {
        gap: 22px;
    }
    .about-img {
        flex-basis: 320px;
    }
}

@media (max-width: 780px) {
    .about-row,
    .about-row.reverse {
        flex-direction: column;
        align-items: stretch;
    }
    .about-img {
        width: 100%;
        flex: 0 0 auto;
    }
    .about-text {
        width: 100%;
    }
}

/* ABOUT END */




@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    .modal-title {
        font-size: 18px;
    }
    .submit-btn {
        width: 100%;
    }
}




/* GALLERY START */
.gallery-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.album {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.album img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee;
}

.album .info {
    padding: 10px;
    flex-grow: 1;
}

.album .info h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.album .info p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.admin-controls {
    margin-top: 8px;
    text-align: center;
}

.album-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.album-modal .modal-content {
    background: #fff;
    max-width: 1200px;
    width: 85%;
    max-height: 90vh;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.album-modal button.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.photo-actions {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2;
}

.photo-container {
    display: flex;
    flex-wrap: wrap;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.photo-thumb {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin: 5px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.photo-thumb:hover {
    transform: scale(1.02);
}

.photo-delete-btn {
    position: absolute;
    left: 85px;
    background: rgba(255, 0, 0, 0.85);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 1.5px 8px;
    font-size: 14px;
    z-index: 2;
}

.upload-status {
    margin-top: 10px;
}

.upload-status.ok {
    color: green;
}

.upload-status.error {
    color: red;
}

.create-album-form {
    display: none;
    margin-bottom: 20px;
}

.edit-album-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.edit-album-modal .modal-content {
    background: #fff;
    max-width: 400px;
    width: 90%;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.edit-album-modal button.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

#editAlbumModal form label {
    display: block;
    margin-bottom: 10px;
}

#editAlbumModal form input[type="text"],
#editAlbumModal form textarea {
    width: 100%;
    box-sizing: border-box;
}

#editAlbumStatus {
    margin-top: 10px;
}

.create-album-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.create-album-modal .modal-content {
    background: #fff;
    max-width: 500px;
    width: 92%;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.create-album-modal .modal-title,
.edit-album-modal .modal-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #222641;
    border-bottom: 2px solid #ffcb05;
    padding-bottom: 6px;
}

.create-album-modal .close,
.edit-album-modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    border: none;
    color: #fff;
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.photo-actions {
    position: absolute;
    left: 10px;
    bottom: 15px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.photo-thumb-set {
    background: #ffcb05;
    color: #222641;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform .06s ease, box-shadow .2s ease, opacity .15s ease;
}

.photo-thumb-set:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.16);
    opacity: .95;
}

.photo-thumb-set:active {
    transform: translateY(1px);
}

.thumb-badge {
    background: #222641;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    user-select: none;
}

.album-form .form-row {
    display: block;
    margin: 10px 0 14px;
}

.album-form label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #222641;
    font-size: 14px;
}

.album-form input[type="text"],
.album-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.album-form input[type="text"]:focus,
.album-form textarea:focus {
    border-color: #ffcb05;
    box-shadow: 0 0 0 3px rgba(255,203,5,.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.modal-actions .btn-primary {
    background: #222641;
    color: #fff;
}

.modal-actions .btn-primary:hover {
    background: #444a7a;
}

.modal-actions .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.modal-actions .btn-secondary:hover {
    opacity: .92;
}

@media (max-width: 768px) {
    .album-modal .modal-content {
        width: 92%;
        max-height: 92vh;
    }
    .album img {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .album-modal .modal-content {
        padding: 16px;
    }
    .edit-album-modal .modal-content {
        width: 94%;
        padding: 16px;
    }
    .create-album-modal .modal-content,
    .edit-album-modal .modal-content {
        padding: 16px;
        width: 94%;
    }
}

/* GALLERY END */

/* INDEX START */
.inline-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222641;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: background-color .2s ease, transform .06s ease, box-shadow .2s ease;
    z-index: 5;
}

.inline-edit-btn:hover {
    background: #444a7a;
    box-shadow: 0 6px 14px rgba(0,0,0,.16);
}

.inline-edit-btn:active {
    transform: translateY(1px);
}

.hero-wrap {
    position: relative;
    flex: 1;
    display: flex;
}

.edit-target {
    position: relative;
}

.sponsors-wrap {
    position: relative;
}

.inline-edit-btn.add-on-strip {
    top: -14px;
    right: 10px;
}

.sponsor-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sponsor-tile img {
    height: 100px;
    object-fit: contain;
    display: block;
}

.mini-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #dc3545;
    color: #fff;
    border: 0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, transform .06s ease;
}

.mini-remove:hover {
    background: #c82333;
}

.mini-remove:active {
    transform: translateY(1px);
}

.flash {
    max-width: 1100px;
    margin: 14px auto;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.flash-ok {
    background: #eaf7ea;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-err {
    background: #fdecea;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.submit-btn.danger {
    background: #dc3545;
}

.submit-btn.danger:hover {
    background: #c82333;
}

#removePreviewImg {
    display: block;
    height: 150px;
    margin: 20px auto;
}

#removeSponsorModalContent {
    width: fit-content;
    text-align: center;
}

#closeRemoveSponsorModal {
    background: #dc3545;
}

/* INDEX END */

/* COMPETITIONS START */
.competitions-calendar-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.fc .competitions-event {
    border-radius: 6px !important;
    padding: 3px !important;
    font-weight: 700 !important;
    transition: opacity .1s ease, transform .1s ease;
}

.fc .competitions-event:hover {
    transform: scale(0.99);
    opacity: 0.85;
    cursor: pointer;
}

.competitions-hidden {
    display: none !important;
}

.competitions-prewrap {
    white-space: pre-wrap;
}

.competitions-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.competitions-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 92%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.competitions-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.competitions-modal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 10px 2px;
    margin-bottom: 12px;
    border-bottom: 2px solid #ffcb05;
}

#modalTitle.competitions-modal-h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #ffcb05;
}

.competitions-color-chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: #ffcb05;
    border: 1px solid #0000001a;
}

.competitions-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.competitions-modal-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.competitions-modal-item-ico {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.competitions-modal-desc {
    flex: 1;
}

.competitions-modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.competitions-form {
    width: 100%;
}

.competitions-form-label {
    display: block;
    margin: 8px 0;
}

.competitions-input,
.competitions-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    background: #fff;
}

.competitions-input:focus,
.competitions-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.competitions-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.competitions-form-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.competitions-color-field {
    margin-top: 8px;
}

.competitions-color-label {
    margin: 6px 0;
    font-weight: 600;
}

.competitions-color-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.competitions-color-swatch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #ddd;
    box-sizing: border-box;
}

.competitions-color-swatch--active {
    border-color: #000;
}

.competitions-color-swatch-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.competitions-ring {
    display: none;
    position: absolute;
    inset: -4px;
    border: 2px solid #000;
    border-radius: 10px;
}

.competitions-ring--visible {
    display: block;
}

@media (max-width: 480px) {
    .competitions-grid-2 {
        grid-template-columns: 1fr;
    }
}

.fc .custom-event {
    background-color: #ffcb05;
    color: #1f1f1f !important;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fc .custom-event:hover {
    background-color: #f7b600;
}

.fc .fc-button-primary:focus {
    box-shadow: none;
}

.fc .fc-button:focus {
    box-shadow: none;
}

.competitions-files-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.competitions-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.competitions-file-link {
    text-decoration: none;
    font-weight: 600;
}

.competitions-file-link:hover {
    text-decoration: underline;
}

.competitions-file-size {
    opacity: 0.8;
    font-size: 0.9em;
}

.competitions-files-empty {
    margin-top: 6px;
    opacity: 0.8;
}

.competitions-files-edit-title {
    margin-top: 8px;
    font-weight: 700;
}

.delete-btn-uni.delete-file-btn {
    margin: 0;
    margin-left: auto;
    text-wrap-mode: nowrap;
}

.competitions-form-actions .add-button-uni {
    margin: 0;
}
/* COMPETITIONS END */
