/* Main Site Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo span {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.desktop-menu a:hover {
    opacity: 0.8;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
}

.header-search form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.header-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.header-search button {
    background: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-left: 1px solid #ddd;
}

/* Header Buttons */
.header-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: 15px;
}

.header-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    white-space: nowrap;
}

.header-links a:hover {
    background: rgba(255,255,255,0.15);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 15px;
}

.mobile-menu.open {
    display: block;
}

.mobile-search {
    margin-bottom: 12px;
}

.mobile-search form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.mobile-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.mobile-search button {
    background: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-left: 1px solid #ddd;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    text-align: center;
}

.page-content {
    min-height: 60vh;
    padding: 20px 0;
}

.ad-banner {
    text-align: center;
    padding: 10px 0;
    clear: both;
}

#siteFooter {
    color: #fff;
    padding: 14px 15px;
    margin-top: 30px;
}

.ft-one-line {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

.ft-left {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ft-left a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    font-weight: 500;
    transition: 0.2s;
}

.ft-left a:hover {
    opacity: 1;
    color: #ffd700;
}

.ft-right {
    opacity: 0.85;
    text-align: right;
}

@media(max-width:600px) {
    .ft-one-line {
        flex-direction: column;
        text-align: center;
    }
    .ft-right {
        text-align: center;
    }
}

@media(max-width:768px) {
    .desktop-menu {
        display: none;
    }
    .header-search {
        display: none;
    }
    .header-links {
        display: none;
    }
    .hamburger {
        display: flex;
        margin-left: auto;
    }
}

@media(min-width:769px) {
    .mobile-menu {
        display: none !important;
    }
}
