html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

*,
body,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

/* font-family is NOT set on * so icon fonts keep working */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
input,
button,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    transition: 0.5s ease;
    display: inline-block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 10px;
  box-sizing: border-box;
}

span.custom-logo-link img, a.custom-logo-link img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* ---------- Header ---------- */
.site-header {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

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

.site-branding a {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

/* Hamburger button */
.menu-toggle {
    display: block;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #222;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger -> X animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu panel */
.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.main-navigation.open {
    max-height: 100vh;
    overflow-y: auto;
}

.main-navigation .navbar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .navbar-nav li {
    border-top: 1px solid #eee;
}

.main-navigation .navbar-nav a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s, background 0.3s;
}

.main-navigation .navbar-nav a:hover {
    color: #0073aa;
    background: #f7f7f7;
}

@media (min-width: 992px) {
    .header-inner {
        position: relative;
    }

    .main-navigation {
        top: calc(100% + 10px);
        left: auto;
        right: 20px;
        width: 260px;
        border-radius: 6px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #111827;
    color: #cbd5e1;
    margin-top: 60px;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #fff;
}

/* Top: widgets */
.footer-top {
    padding: 60px 0 30px;
}

.footer-col {
    margin-bottom: 30px;
}

.site-footer .widget-title,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer .widget-title::after,
.site-footer h2::after,
.site-footer h3::after,
.site-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: #0073aa;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer ul li {
    padding: 6px 0;
}

.site-footer ul li a:hover {
    padding-left: 5px;
}

.site-footer ul li a {
    transition: padding 0.3s, color 0.3s;
}

/* Bottom: copyright bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom .copyright {
    margin: 0;
    font-size: 14px;
}

.footer-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu li {
    padding: 0 !important;
}

.footer-menu li a {
    font-size: 14px;
    padding-left: 0 !important;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #005a87;
}

/* Mobile */
@media (max-width: 767px) {
	span.custom-logo-link img {
		max-width: 140px;
	}
	
    .footer-top {
        padding: 40px 0 10px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu {
        justify-content: center;
    }
}