/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    display: flex;
}

.pre-bounce1, .pre-bounce2 {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 0.6s infinite alternate;
}

.pre-bounce2 {
    animation-delay: 0.3s;
}

@keyframes bounce {
    to {
        transform: translateY(-20px);
    }
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.site-branding .logo {
    max-width: 150px;
    height: auto;
}

.btn-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mainnav {
    flex-grow: 1;
}

.menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
}

.menu-item {
    margin-left: 20px;
}

.menu-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s, background 0.3s;
}

.menu-item a:hover,
.current-menu-item a {
    color: #007bff;
    background: #f0faff;
    border-radius: 5px;
}

/* Header Image */
.header-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* Main Content */
.site-content {
    padding: 40px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007bff;
    text-align: center;
}

p {
    margin-bottom: 20px;
}

/* Custom List */
.sqr {
    list-style-type: square;
    color: red;
    font-size: 1.25rem;
    margin: 20px 0;
    padding-left: 40px;
}

.sqr li {
    margin-bottom: 10px;
    color: #333;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-menu {
        display: block;
    }

    .mainnav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mainnav.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    .menu-item {
        margin: 10px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .sqr {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInRightBig {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    margin: 40px 0;
}
.partner-logo {
    width: 250px;
    height: 100px;
    object-fit: contain;
    padding: 5px;
}
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Sticky Footer */
html, body {
    height: 100%;
    margin: 0;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
}

/* Header Image */
.header-image {
    width: 100%;
    min-height: 400px; /* Ensure visibility */
    background-size: contain; /* Show full image */
    background-repeat: no-repeat;
    background-position: center;
}

/* Remove preloader */
.preloader {
    display: none;
}

/* Button styling */
.roll-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 5px;
}

.roll-button:hover {
    background: #0056b3;
}

/* Navigation and menu toggle */
.btn-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Lists (e.g., News, Partners) */
.tops-list, .partners-list, .news-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tops-list li, .partners-list li, .news-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tops-list a, .partners-list a, .news-list a {
    color: #333;
    text-decoration: none;
}

.tops-list a:hover, .partners-list a:hover, .news-list a:hover {
    color: #007bff;
}

/* Go Top */
.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    text-decoration: none;
}
