/* Justships Ltd - faithful recreation of the Flawless WordPress theme */

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

html {
    min-width: 320px;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #7c7c7c;
    background-color: #dddddd;
    overflow-x: hidden;
}

a {
    color: #97c566;
    text-decoration: none;
}

a:hover {
    color: #7aad4a;
}

img {
    max-width: 100%;
    height: auto;
}

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

.body-wrapper {
    width: 100%;
    background-color: #ffffff;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Top bar */
.top-bar {
    background-color: #545454;
    color: #ffffff;
    border-top: 3px solid #1b1b1b;
    font-size: 12px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-contact a {
    color: #ffffff;
    word-break: break-all;
}

.top-contact a:hover {
    color: #cccccc;
}

.top-contact .fa {
    font-size: 14px;
    flex-shrink: 0;
}

.top-subscribe {
    color: #ffffff;
    background-color: #464646;
    padding: 8px 14px;
    display: inline-block;
}

/* Header */
.header-main {
    background-color: #ffffff;
    position: relative;
}

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

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-width: 200px;
    height: auto;
}

.sponsor-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.sponsor-logos img {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-nav {
    background-color: #f9f9f9;
    border-top: 1px solid #ececec;
}

.nav-inner {
    position: relative;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 18px 22px 22px;
    color: #4f4f4f;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: #a3a3a3;
}

/* Tagline overlay */
.content-wrapper {
    position: relative;
}

.hero-section {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.tagline-overlay {
    position: absolute;
    z-index: 10;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.tagline-overlay p {
    display: inline-block;
    font-weight: bold;
    text-shadow: #000 0 0 20px;
    font-size: 30px;
    margin: 0;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

/* Hero */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Content */
.content-section {
    padding: 0 0 80px;
}

.content-body {
    padding-top: 30px;
}

.content-body h1 {
    font-size: 47px;
    color: #454545;
    font-weight: 400;
    margin: 0 0 20px;
    line-height: 1.2;
}

.content-body h2 { font-size: 41px; color: #454545; font-weight: 400; }
.content-body h3 { font-size: 32px; color: #454545; font-weight: 400; }
.content-body h4 { font-size: 26px; color: #454545; font-weight: 400; }
.content-body h5 { font-size: 21px; color: #454545; font-weight: 600; }
.content-body h6 { font-size: 16px; color: #454545; font-weight: 600; }

.content-body p {
    margin: 0 0 16px;
}

.content-body ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 4px;
}

.content-body strong,
.content-body b {
    color: #5a5a5a;
}

/* Footer */
.site-footer {
    margin-top: 0;
}

.footer-strip {
    width: 100%;
    display: block;
}

.copyright-bar {
    background-color: #545454;
    color: #ffffff;
    padding: 14px 0;
    font-size: 12px;
}

.copyright-bar p {
    margin: 0;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
        position: static;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: #cccccc;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
}

/* Tablet - matches original theme at 959px */
@media (max-width: 959px) {
    .container {
        max-width: 768px;
    }

    .sponsor-logos img {
        height: 50px;
    }

    .tagline-overlay p {
        font-size: 24px;
    }

    .content-body h1 {
        font-size: 36px;
    }

    .content-body h2 { font-size: 30px; }
    .content-body h3 { font-size: 26px; }
}

/* Mobile landscape - matches original theme at 767px */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
    }

    .body-wrapper {
        overflow: hidden;
    }

    /* Top bar */
    .top-bar-inner {
        justify-content: center;
        text-align: center;
        padding: 6px 0;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-right {
        justify-content: center;
        gap: 8px;
    }

    /* Header */
    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 30px 65px 20px 15px;
    }

    .site-logo {
        text-align: center;
    }

    .site-logo img {
        max-width: 180px;
    }

    .sponsor-logos {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Navigation - hidden by default, dropdown when open */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .header-main {
        position: relative;
        z-index: 100;
    }

    .main-nav.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        text-align: left;
    }

    .nav-menu li a {
        padding: 14px 20px;
        border-bottom: 1px solid #ececec;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    /* Tagline */
    .tagline-overlay {
        top: 20px;
    }

    .tagline-overlay p {
        font-size: 18px;
        white-space: normal;
    }

    /* Hero */
    .hero-image {
        height: 280px;
    }

    /* Content */
    .content-section {
        padding-bottom: 50px;
    }

    .content-body h1 {
        font-size: 28px;
    }

    .content-body h2 { font-size: 24px; }
    .content-body h3 { font-size: 21px; }
    .content-body h4 { font-size: 18px; }
    .content-body h5 { font-size: 16px; }
}

/* Mobile portrait - matches original theme at 419px */
@media (max-width: 419px) {
    .top-contact {
        font-size: 11px;
    }

    .site-logo img {
        max-width: 150px;
    }

    .tagline-overlay p {
        font-size: 15px;
    }

    .hero-image {
        height: 220px;
    }

    .content-body h1 {
        font-size: 24px;
    }

    .copyright-bar {
        text-align: center;
        font-size: 11px;
    }
}
