* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f5f5f5;
}

header {
    background-color: #ffffff;
    color: #222;
    padding: 1rem 2rem;
    border-bottom: 3px solid #58a53d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    width: 60px;
    height: 60px;
}

header h1 {
    font-size: 1.8rem;
    color: #58a53d;
    margin: 0;
}

@media (max-width: 768px) {
    .header-content {
        padding-right: 50px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    header h1 {
        font-size: clamp(1rem, 4vw, 1.4rem);
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
}

/* Navigation Styles */
.main-nav {
    background-color: #58a53d;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav > ul > li {
    margin: 0;
    position: relative;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover {
    background-color: #4a8f33;
}

/* Dropdown Styles */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-toggle {
    cursor: pointer;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4a8f33;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .dropdown-menu li {
    margin: 0;
}

.main-nav .dropdown-menu a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .dropdown-menu a:hover {
    background-color: #3d7a28;
}

.main-nav .dropdown.active .dropdown-menu {
    display: block;
}

.main-nav .dropdown.active > a {
    background-color: #4a8f33;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav > ul {
        flex-direction: column;
    }
    
    .main-nav > ul > li > a {
        text-align: center;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #3d7a28;
        width: 100%;
    }
    
    .main-nav .dropdown-menu a {
        text-align: center;
    }
    
    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

footer {
    background-color: #4a5568;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: #222;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Full width for login forms */
.login-box .btn-primary {
    width: 100%;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background-color: #27ae60;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Container Styles */
.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.container h1 {
    color: #222;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.container h2 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Dashboard Styles */
.dashboard-links {
    margin-bottom: 2rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 1000px;
}

.dashboard-link {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    max-width: 350px;
}

.dashboard-link:hover {
    border-color: #58a53d;
    box-shadow: 0 4px 12px rgba(88, 165, 61, 0.15);
    transform: translateY(-2px);
}

.dashboard-link h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.dashboard-link p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead {
    background-color: #4a5568;
    color: white;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    word-break: break-word;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    line-height: 1.5;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Section Styles */
section {
    margin-bottom: 2rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Form Styles */
form {
    margin-top: 1rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    outline: none;
    border-color: #3498db;
}

@media (max-width: 768px) {
    select {
        font-size: 16px !important;
        padding: 0.875rem 0.75rem;
        min-height: 48px;
        line-height: 1.5;
    }
    
    select option {
        font-size: 16px !important;
        padding: 0.5rem;
        line-height: 1.5;
        min-height: 44px;
    }
    
    /* iOS specific */
    select::-webkit-select-placeholder {
        font-size: 16px !important;
    }
}

/* Links Page Styles */
.link-category {
    margin-bottom: 2.5rem;
}

.link-category .category-name {
    color: #58a53d;
    border-bottom: 2px solid #58a53d;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.link {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link:last-child {
    border-bottom: none;
}

.link-title {
    margin: 0;
    font-size: 1.1rem;
}

.link-title a {
    color: #2c3e50;
    text-decoration: none;
}

.link-title a:hover {
    color: #58a53d;
    text-decoration: underline;
}

.link-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-link {
        max-width: none;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        text-align: center;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}


/* Success Notification */
.success-notification {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Application Form Sections */
.application-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    color: #58a53d;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #58a53d;
}

.section-content {
    padding: 1rem 0;
}

.tournament-info-section .section-content h3 {
    color: #222;
    margin-bottom: 1rem;
}

.tournament-info-section .section-content p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Pair Subsections */
.pair-subsection {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pair-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.subsection-content {
    padding-top: 1rem;
}

.player-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.player-info:last-child {
    margin-bottom: 0;
}

.player-info h4 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rank-select {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.rank-select label {
    color: #856404;
    font-weight: bold;
}

.rank-select select {
    border-color: #ffc107;
}

.participant-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-text {
    background: #e7f3ff;
    border-left: 4px solid #3498db;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #0c5460;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.error-messages {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-messages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-messages li {
    color: #721c24;
    margin-bottom: 0.5rem;
}

.error-messages li:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
    align-items: center;
}

.form-actions .btn,
.form-actions .btn-primary,
.form-actions .btn-secondary {
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .participant-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* Athletes Page Layout */
.athletes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.athlete-category {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.athlete-category h2 {
    color: #58a53d;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #58a53d;
    min-height: 3rem;
}

.athlete-category .table {
    margin-top: 0;
    flex: 1;
}

.athlete-category table.table th,
.athlete-category table.table td {
    padding: 0.75rem !important;
    height: 49px !important;
    max-height: 49px !important;
    min-height: 49px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.athlete-category table.table thead tr,
.athlete-category table.table tbody tr {
    height: 49px !important;
    max-height: 49px !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.athlete-category table.table tbody td {
    display: table-cell !important;
    height: 49px !important;
    max-height: 49px !important;
    min-height: 49px !important;
    padding: 0.75rem !important;
    line-height: 1 !important;
    overflow: hidden !important;
}

.athlete-category .table th:first-child,
.athlete-category .table td:first-child {
    width: 40%;
}

.athlete-category .table th:last-child,
.athlete-category .table td:last-child {
    width: 60%;
}

@media (max-width: 768px) {
    .athletes-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Tournament Card Styles */
.tournament-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tournament-header h2 {
    color: #58a53d;
    margin-top: 0;
    margin-bottom: 1rem;
}

.tournament-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tournament-meta span {
    color: #666;
    font-size: 0.95rem;
}

.tournament-details-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 3px solid #58a53d;
    border-radius: 4px;
}

.tournament-details-content {
    line-height: 1.8;
}

.tournament-files {
    margin: 1.5rem 0;
}

.tournament-files h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tournament-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tournament-files li {
    margin-bottom: 0.5rem;
}

.tournament-files a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.tournament-files a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.tournament-apply {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Result Card Styles */
.result-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-tournament-title {
    color: #58a53d;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.result-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.result-meta span {
    color: #666;
    font-size: 0.95rem;
}

.result-winners {
    margin-top: 1rem;
}

.winner-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #58a53d;
    border-radius: 4px;
}

.winner-item strong {
    color: #333;
    margin-right: 0.5rem;
}

/* Tournament Ended Message */
.tournament-ended {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}


/* Tournament Applications Section */
.tournament-applications-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tournament-section-title {
    color: #58a53d;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #58a53d;
}

/* Team Rank Selection Section */
.team-rank-section {
    background: #e8f5e9;
    border: 2px solid #58a53d;
}

.team-rank-section .section-title {
    color: #2e7d32;
}

.team-rank-section .rank-select {
    background: white;
    border: 1px solid #58a53d;
}

.team-rank-section .rank-select label {
    color: #2e7d32;
}

.team-rank-section .rank-select select {
    border-color: #58a53d;
}

.team-rank-section .help-text {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
}

/* Participant Section for Team Events */
.participant-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.participant-section h4 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.participant-section:last-child {
    margin-bottom: 0;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #58a53d;
    background-color: white;
    transition: all 0.2s;
}

.pagination-link:hover {
    background-color: #58a53d;
    color: white;
    border-color: #58a53d;
}

.pagination-current {
    padding: 0.5rem 1rem;
    border: 1px solid #58a53d;
    border-radius: 4px;
    background-color: #58a53d;
    color: white;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #58a53d;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    header {
        position: relative;
    }
    
    .header-content {
        position: relative;
        padding-right: 60px;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 1rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav > ul > li {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .main-nav > ul > li > a,
    .main-nav > ul > li > .dropdown-toggle {
        padding: 1rem 2rem;
        display: block;
        color: #222;
        text-decoration: none;
    }
    
    .main-nav > ul > li > a:hover,
    .main-nav > ul > li > .dropdown-toggle:hover {
        background-color: #f0f0f0;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f8f9fa;
        padding: 0;
    }
    
    .main-nav .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .main-nav .dropdown-menu li a {
        padding: 0.75rem 2rem 0.75rem 3rem;
        color: #222;
        text-decoration: none;
        display: block;
    }
    
    .main-nav .dropdown-menu li a:hover {
        background-color: #e0e0e0;
    }
}

/* 長い参加者名の表示対応 */
.detail-value {
    word-wrap: break-word;
    word-break: break-word;
}

.participant-name,
.participant-info,
.player-info,
.team-member-row {
    word-wrap: break-word;
    word-break: break-word;
}

/* テーブル内の名前表示 */
.table td.name-cell,
.table td.affiliation-cell {
    max-width: 250px;
    word-wrap: break-word;
    word-break: break-word;
}

/* Tournament Cards for Home Page */
.tournaments-section .tournaments-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tournaments-section .tournament-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.tournaments-section .tournament-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tournaments-section .tournament-header {
    background: #58a53d;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
}

.tournaments-section .tournament-title {
    font-size: 1.4rem;
    color: white;
    margin: 0;
    font-weight: bold;
}

.tournaments-section .tournament-basic-info {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.tournaments-section .info-row {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.tournaments-section .info-row:last-child {
    margin-bottom: 0;
}

.tournaments-section .tournament-details-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
    line-height: 1.8;
}

.tournaments-section .tournament-details-notice h1,
.tournaments-section .tournament-details-notice h2,
.tournaments-section .tournament-details-notice h3 {
    color: #856404;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tournaments-section .tournament-details-notice p {
    margin-bottom: 0.5rem;
}

.tournaments-section .tournament-details-notice ul,
.tournaments-section .tournament-details-notice ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.tournaments-section .tournament-details-notice strong {
    color: #664d03;
}

.tournaments-section .info-label {
    font-weight: bold;
    color: #333;
    min-width: 140px;
    flex-shrink: 0;
}

.tournaments-section .info-value {
    color: #555;
    flex: 1;
}

.tournaments-section .tournament-files {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.tournaments-section .files-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournaments-section .file-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tournaments-section .file-group-title {
    font-weight: bold;
    color: #333;
    min-width: 140px;
    flex-shrink: 0;
}

.tournaments-section .file-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tournaments-section .file-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tournaments-section .file-link.pdf {
    background-color: #dc3545;
    color: white;
}

.tournaments-section .file-link.pdf:hover {
    background-color: #c82333;
}

.tournaments-section .file-link.excel {
    background-color: #28a745;
    color: white;
}

.tournaments-section .file-link.excel:hover {
    background-color: #218838;
}

.tournaments-section .tournament-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
}

.tournaments-section .tournament-ended {
    color: #6c757d;
    font-style: italic;
    font-weight: bold;
}

.tournaments-section .registration-not-started {
    color: #fd7e14;
    font-weight: bold;
}

.tournaments-section .registration-ended {
    color: #6c757d;
    font-style: italic;
}

.tournaments-section .registration-info-missing {
    color: #6c757d;
    font-style: italic;
}

.tournaments-section .btn.btn-primary {
    background-color: #58a53d;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tournaments-section .btn.btn-primary:hover {
    background-color: #4a8c33;
}

@media (max-width: 768px) {
    .tournaments-section .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tournaments-section .info-label {
        min-width: auto;
    }
    
    .tournaments-section .file-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tournaments-section .file-group-title {
        min-width: auto;
    }
}
