/* 
  Main Stylesheet 
  Handles global structure, Header, Footer, and Base Elements.
*/

* { 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; }

/* ==================================
   Header CSS
==================================== */
.site-header {
    background: var(--header-bg);
    padding: 0;
    z-index: 9999;
}
.site-header.sticky {
    position: sticky; top: 0;
}
.site-header.relative {
    position: relative;
}

.header-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; gap: 15px;
}

.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; }

.header-links a {
    color: var(--header-text); text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 8px 14px; border: 1px solid transparent;
    border-radius: 6px; white-space: nowrap; transition: 0.2s;
}
.header-links a:hover { background: rgba(0,0,0,0.1); border-color: currentColor; }

/* Dropdown CSS */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: #fff;
    min-width: 180px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; border-radius: 6px; top: 100%; left: 0; padding: 5px 0;
    margin-top: 5px;
}
.dropdown-content a {
    color: #333 !important; padding: 10px 16px !important; text-decoration: none;
    display: block; border: none !important; font-weight: 500 !important;
    border-radius: 0 !important; background: transparent !important;
}
.dropdown-content a:hover { background-color: #f1f1f1 !important; color: #000 !important; }
.dropdown:hover .dropdown-content { display: block; }

.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 { display: none; background: var(--header-bg); border-top: 1px solid rgba(255,255,255,0.15); padding: 15px; }
.mobile-menu.open { display: block; }
.mobile-links a {
    color: var(--header-text); text-decoration: none; font-size: 15px; font-weight: 600;
    padding: 10px 14px; border: 1px solid currentColor;
    border-radius: 6px; text-align: center; display: block; margin-bottom: 5px;
}

@media(max-width: 768px) {
    .header-links { display: none; }
    .hamburger { display: flex; }
}
@media(min-width: 769px) {
    .mobile-menu { display: none !important; }
}

/* ==================================
   Footer CSS
==================================== */
#siteFooter {
    background: var(--footer-bg);
    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: var(--footer-text);
    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; }
}

/* ==================================
   General Components
==================================== */
.page-content { min-height: 60vh; padding: 20px 0; }
.ad-banner { text-align: center; padding: 10px 0; clear: both; }

.site-breadcrumbs { font-size: 13px; color: #666; margin-bottom: 15px; }
.site-breadcrumbs a { color: var(--c, #333); text-decoration: none; }
.site-breadcrumbs span { color: #999; }
