*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: #f0f8ff;
}

body {
    background-color: white;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

header {
    margin-bottom: 48px;
}

/* Navbar Styles - Bootstrap 5.2 Enhanced */
.navbar {
    background-color: #1a1a1a;
    background-image: linear-gradient(to bottom, #2c2c2c, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem !important;
}

.navbar-brand {
    padding: 0.5rem 0;
    margin-right: 2rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Palette Mosaic', cursive;
    background: linear-gradient(45deg, #28a745, #20c997);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand span {
    font-size: 0.875rem;
    display: block;
    font-family: 'Caveat', cursive;
    color: #f8f9fa;
    opacity: 0.8;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    margin: 0 0.125rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    border-bottom: 2px solid #28a745;
}

.nav-icon {
    margin-right: 0.5rem;
    color: #28a745;
}

.dropdown-menu-dark {
    background-color: #252525;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem 0;
    min-width: 15rem;
    margin-top: 0.5rem;
}

.dropdown-menu-dark:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #252525;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(40, 167, 69, 0.2);
    color: #fff;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
    box-shadow: none;
    outline: none;
    border-color: #28a745;
}

/* Add animation for dropdown menus */
.dropdown-menu.show {
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #1a1a1a;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 1rem 1.25rem;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-menu-dark {
        background-color: #303030;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .dropdown-menu-dark:before {
        display: none;
    }

    .dropdown-item {
        padding: 1rem 2.5rem;
    }
}

main {
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5%;
}

main .left {
    width: 65%;
}

main .right {
    width: 30%;
}

.left .tble-cont .aff {
    background-color: #212529;
    color: white;
    margin-top: -14px;
    padding: 12px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.left .tble-cont .aff .affh4 {
    font-size: small;
    margin-bottom: 1px;
}

.left .tble-cont .aff .comp {
    background-color: white;
    width: fit-content;
    padding: 2px 12px;
    border-radius: 0 8px 8px 0;
    color: #212529;
    margin-bottom: 4px;
    margin-left: -14px;
}

.left .tble-cont .aff .affh4 i {
    color: gold;
}

.left .tble-cont .aff .sasa {
    text-align: center;
    margin: 8px auto;
}

.left .tble-cont .aff .sasa button {
    border: none;
    background-color: green;
    color: white;
    padding: 12px 4px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    width: 80%;
    max-width: 300px;
}

.left .tble-cont .aff .sasa button:active,
.left .tble-cont .aff .sasa button:hover {
    border: green solid 1px;
    color: white;
    background-color: #212529;
}

main .left .mwisho {
    margin: 24px auto;
}

main .left .mwisho h2 {
    background-color: #212529;
    color: white;
    padding: 12px;
    font-weight: bold;
    margin-top: 16px;
}

main .left .mwisho p {
    display: block;
    background-color: whitesmoke;
    border-radius: 8px;
    width: 98%;
    margin: 12px auto;
    color: gray;
    padding: 16px;
}

.left .p {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: justify;
    border-radius: 0.25rem;
    margin-left: auto;
    margin-right: auto;
    color: #212529;
    width: 98%;
}

.faq .accordion-body {
    font-size: 14px !important;
}

/* table cont and toggles */

.left .toggle-cont {
    padding: 12px 0;
    margin-bottom: -16px;
}

.left .toggle-cont .toggles {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d3d3d3;
    color: #4d4d4d;
}

.left .toggle-cont .toggles div {
    width: calc(100% / 4);
    text-align: center;
    font-weight: bold;
    padding: 12px 4px;
    font-size: 14px;
    cursor: pointer;
}

.left .toggle-cont .toggles .jtoggle {
    border-right: 1px solid white;
}

.left .toggle-cont .toggles .ltoggle {
    border-left: 1px solid white;
    border-right: 1px solid white;
}

.left .toggle-cont .toggles .active_toggle {
    background-color: brown;
    color: white;
}

.left .spn_trh {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 6px;
}

.left .spn_hide {
    display: none;
}

.left .zakesho {
    margin: 12px auto 40px auto;
    text-align: center;
    color: brown;
    font-weight: bold;
    border: 2px solid brown;
    padding: 12px;
}

.left .tble-cont {
    padding: 12px 0;
}

.left .tble-cont .table-head h2,
.left .betslipCont h2 {
    padding: 12px 8px;
    font-weight: bold;
    font-size: 17px;
    color: white;
    background-color: #212529;
    text-align: center;
    margin-bottom: 2px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.left .tble-cont table .results-th,
.left .tble-cont table .tips-th {
    text-align: center;
}

.left .tble-cont table .time-td {
    font-size: small;
    vertical-align: middle;
}

.left .tble-cont table .time-td span,
.left .tble-cont table .match-td .league {
    font-size: x-small
}

.left .tble-cont table .match-td .league {
    display: inline-block;
    padding-bottom: 1px;
}

.left .tble-cont table .match-td {
    font-family: serif;
    font-size: 1rem;
}

.left .tble-cont table .tip-td,
.left .tble-cont table .matokeo-td {
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
}

/* banner style */
.left .pmatchtz {
    width: 100%;
    max-width: 480px;
    text-align: center;
    height: fit-content;
    margin: 12px auto 32px auto;
    border-radius: 4px;
    cursor: pointer;
}

.left .pmatchtz img {
    width: 99%;
    max-width: 480px;
    height: auto;
    border-radius: 4px;
}

.left .pmatchtz .cap {
    font-size: 12px;
    text-align: left;
    padding-left: 4px;
    margin: 4px auto;
    text-decoration: underline;
    text-decoration-color: #d3d3d3;
    color: #494747;
}

main .left .h2,
main .right .h2 {
    background-color: #212529;
    padding: 12px;
    font-weight: bold;
    color: white;
}

main .left .h3 {
    font-size: 14px !important;
    margin: 24px auto 4px auto;
    font-weight: bold;
}

main .left .vip-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    font-family: sans-serif;
    background: linear-gradient(45deg, #B8860B, #DAA520);
    color: white !important;
    font-size: 14px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    transition: all 0.3s ease;
}

main .left .vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.6) !important;
    background: linear-gradient(45deg, #DAA520, #B8860B) !important;
}

/* styles.css - Improved Soma-Pia section */
.soma-pia {
    margin-top: 2.5rem;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.soma-pia .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #008000;
}

.soma-pia .recommendation-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.soma-pia .recommendation-item {
    margin-bottom: 0.75rem;
    border-left: 4px solid #008000;
    background-color: #fff;
    transition: all 0.2s ease;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.soma-pia .recommendation-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.soma-pia .recommendation-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #444;
}

.soma-pia .item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #008000;
}

.soma-pia .item-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

/* For mobile screens */
@media (max-width: 768px) {
    .soma-pia {
        margin-top: 1.5rem;
        padding: 0.5rem;
    }

    .soma-pia .recommendation-link {
        padding: 0.6rem 0.75rem;
    }

    .soma-pia .item-title {
        font-size: 0.95rem;
    }

    .soma-pia .item-description {
        font-size: 0.8rem;
    }
}

.left .maana {
    margin-top: 100px;
}

.left .maana ul {
    list-style: none;
}

.left .maana li {
    margin-bottom: 24px;
    padding-right: 8px;
}

.left .maana li .brown {
    border: #212529 solid 1px;
    color: #212529;
    padding: 1px 4px;
    background-color: #d3d3d3;
    font-size: small;
    border-radius: 4px;
}

main .right .cont {
    padding: 12px 4px;
}

main .right .ofa-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

main .right .cont .kitu {
    border-left: 6px #d3d3d3 solid;
    padding: 16px;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    color: #212529;
    background-color: #f5f5f5;
    margin: 12px 4px;
}

main .right .kitu h3 {
    border-bottom: 1px #212529 solid;
    color: #212529;
    font-size: 14px;
    padding-bottom: 4px;
    width: fit-content;
}

main .right .kitu a {
    text-decoration: none;
    color: #008000;
    font-weight: bold;
    text-align: center;
}

/* Footer Styles - Bootstrap 5.2 Enhanced */
footer {
    background-color: #f8f9fa;
    color: #495057;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    font-family: var(--bs-font-sans-serif);
}

footer .left {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

footer .left h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

footer .rights {
    font-size: 0.875rem;
    color: #6c757d;
}

footer .footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

footer .footer .rightside,
footer .footer .middle,
footer .footer .leftside {
    width: calc(100% / 3);
    min-width: 280px;
    font-size: 0.875rem;
    padding: 1rem;
}

footer .h4 {
    color: #212529;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem !important;
    border-bottom: 2px solid #dee2e6;
    width: fit-content;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
}

footer ul {
    padding-left: 0;
    margin-bottom: 1.5rem;
}

footer .footer li {
    margin-top: 0.75rem;
    transition: transform 0.2s ease;
}

footer .footer li:hover {
    transform: translateX(5px);
}

footer a {
    text-decoration: none;
    color: #28a745;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

footer a i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

footer a:hover {
    color: #1e7e34;
    text-decoration: none;
}

#toAds {
    height: 8px;
}

.ads {
    width: 100%;
    text-align: center;
    border-radius: 2px;
    border-left: 1px #d3d3d3 solid;
    border-right: 1px #d3d3d3 solid;
    border-radius: 8px;
    margin: 16px auto;
    height: fit-content;
    padding-top: 8px;
    padding-bottom: 8px;
}

.fade.modal-backdrop.show {
    opacity: 0.7;
}

hr.style-eight {
    overflow: visible;
    /* For IE */
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
    width: 98%;
    margin: 64px auto;
}

hr.style-eight:after {
    content: "§";
    display: inline-block;
    position: relative;
    top: -0.7em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: white;
}

@media (max-width: 420px) {
    header {
        box-shadow: 0 12px 12px gray;
        margin-bottom: 32px;
    }
}

@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    main .left,
    main .right {
        width: 100%;
    }
}

@media (min-width: 900px) {
    main .left {
        box-shadow: 5px 0 10px #0000004d;
        border-radius: 8px;
    }
}