body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('../images/wku_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 35, 60, 0.8);
    pointer-events: none;
    z-index: -1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: black;
    display: flex;
    gap: 20px;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-wrap: nowrap;
}

.header .logo img {
    height: 40px;
    max-width: 150px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 30px;

}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    /*flex-wrap: wrap;*/
    transition: max-height 0.3s ease;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ccc;
}

.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.right-side-mob{
    display: none;
}
.right-side {
    margin-left: 70%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-side .lang {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 6px;
    cursor: pointer;
}

h1.text-3xl{
    color: white;
}

.right-side .lang:hover {
    color: #ccc;
}

.right-side .lang.active {
    font-weight: 700;
    text-decoration: underline;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 140px 20px 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.country-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    /*justify-content: space-between;*/
    align-items: center;
    gap: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    transition: 0.25s ease;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;

        text-decoration: none;
        color: inherit;

}

.country-card img {
    width: 80px;
    height: auto;
}

.search-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.search-box input {
    width: 350px;
    max-width: 90%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 999;
}

.results {
    position: absolute;
    margin-top: 40px;
    width: 350px;
    max-width: 90%;
    max-height: 400px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    overflow-y: auto;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .content-wrapper {
        padding: 120px 15px 30px;
    }

    .header-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        background: black;
        width: 100%;
        padding: 15px 20px;
    }

    .nav-links.active {
        display: flex;
        gap: 24px;
    }
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background-color: black;
        gap: 10px;
        padding: 10px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 500px;
    }

    .right-side {
        display: none;
    }

    .right-side-mob{
        display: block;
        margin-top: 40px;
    }
    .countries-grid {
        grid-template-columns: 1fr;
    }

    .search-box input,
    .results {
        width: 90%;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-card img {
        max-width: 120px;
    }

    .profile-info {
        text-align: center;
    }



}

.font-bold{
    font-weight: 600;
}
.container-show{
    display: flex;
    height: 90vh;
    max-width: 1200px;
    /*flex-direction: row;*/
    width: 100%;
    gap: 2rem;
    /*@media (max-width: 768px) {*/
    /*    flex-direction: column;*/
    /*}*/
}

.dojo-logo{
    max-width: 30px;
}
.left,
.right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.right {
    justify-content: space-between;
    gap: 24px;
}

/* CARD STYLE */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    overflow-y: auto;
}
.result-item {
    padding: 10px 15px;
    transition: background 0.2s, color 0.2s;
}

.result-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.result-item a strong {
    color: #007BFF;
}


.result-item:hover {
    background-color: #f0f8ff;
}

.result-item:hover a {
    color: #0056b3;
}
.profile-card,
.bills {
    height: 48%;
}

.ach-card {
    height: 100%;
}

/* PROFILE CARD */
.profile-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-card img {
    border-radius: 15px;
    object-fit: cover;
    max-width: 100px;
    width: 100%;
    height: auto;
}
.dojo-logo{
    min-width: 40px;
}
.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.profile-info p {
    color: #555;
    margin: 0.3rem 0;
    word-wrap: break-word;
}
/*.profile-info img{*/
/*    min-width: 10px;*/
/*    max-width: 20px;*/
/*    height: auto;*/
/*}*/

.social-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-div img {
    max-width: 28px;
    height: auto;
}

.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }

.medal-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.medal-div img {
    max-width: 40px;
    height: auto;
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container-show {
        flex-direction: column !important;
        height: auto;
    }

    .left, .right {
        flex: none;
        width: 100%;
    }

    .profile-card,
    .bills,
    .ach-card {
        height: auto; /* no fixed height on mobile */
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /*.profile-card img {*/
    /*    max-width: 60px;*/
    /*    margin-top: 16px;*/
    /*}*/

    .profile-info {
        text-align: center;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    row-gap: 0.6rem;
}

.pagination .page-item {
    display: none;
}

.pagination .page-item:first-child,
.pagination .page-item:last-child {
    display: inline-flex;
}

.pagination .page-item:nth-child(2),
.pagination .page-item:nth-child(3) {
    display: inline-flex;
}

.pagination .page-item.active {
    display: inline-flex;
}

.pagination .page-item:nth-last-child(2):not(.disabled) {
    display: inline-flex;
}

.pagination .page-item:nth-child(3)::after {
    content: '…';
    padding: 0 0.5rem;
    font-weight: 600;
    color: #555;
}

.pagination .page-item:nth-last-child(2):not(.disabled)::before {
    content: '…';
    padding: 0 0.5rem;
    font-weight: 600;
    color: #555;
}

.pagination.small-pages .page-item {
    display: inline-flex !important;
}

.pagination.small-pages .page-item:nth-child(3)::after,
.pagination.small-pages .page-item:nth-last-child(2)::before {
    content: '';
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    color: whitesmoke;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.pagination .page-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #da2128;
    transform: translateY(-2px);
}

.pagination .active .page-link {
    background: #da2128;
    color: black;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.pagination .disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.06);
    transform: none;
}

@media (max-width: 600px) {

        .pagination {
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 0.25rem;
            justify-content: flex-start;
        }

        .pagination .page-item::before,
        .pagination .page-item::after {
            white-space: nowrap;
        }

        .pagination {
            padding: 1rem 0;
        }


}
