/* HowToArticles.com Stylesheet */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #f0f0f0;
    color: #333;
}

#page_wrapper {
    width: 980px;
    margin: 0 auto;
    background: #fff;
}

/* HEADER */
#header_wrapper {
    background: #1a3a6b;
    padding: 0;
}

#header {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    font-family: Georgia, serif;
}

#header h1 span { color: #8ab0e0; }

#header h2 {
    font-size: 11px;
    color: #aac4f0;
    font-weight: normal;
    margin-top: 3px;
}

.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.flags a img { border: 1px solid #2a5298; width: 24px; height: 16px; }
.flags a:hover img { border-color: #f0c040; }

/* NAVIGATION */
#navcontainer {
    background: #2a5298;
    border-top: 1px solid #3a62a8;
}

#navlist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#navlist li a {
    display: block;
    color: #d0e0ff;
    font-size: 12px;
    padding: 6px 12px;
    text-decoration: none;
    border-right: 1px solid #3a62a8;
}

#navlist li a:hover,
#navlist li#active a { background: #1a3a6b; color: #fff; }

/* TOP AD ZONE */
#ad_top {
    text-align: center;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

#ad_top img { max-width: 728px; height: 90px; }

.ad-placeholder {
    background: #fff3cd;
    border: 2px dashed #e6a817;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #7a5800;
    font-weight: bold;
    text-decoration: none;
}

/* THREE COLUMN LAYOUT */
#left_side {
    float: left;
    width: 175px;
    padding: 8px;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    min-height: 600px;
}

#content {
    float: left;
    width: 600px;
    padding: 10px 12px;
    min-height: 600px;
}

#right_side {
    float: right;
    width: 175px;
    padding: 8px;
    background: #f9f9f9;
    border-left: 1px solid #ddd;
    min-height: 600px;
}

/* CATEGORY TREE */
.cat-heading {
    font-size: 13px;
    font-weight: bold;
    color: #1a3a6b;
    padding: 4px 0 6px;
    border-bottom: 2px solid #1a3a6b;
    margin-bottom: 6px;
}

.cat-parent {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 0;
    color: #333;
    font-weight: bold;
    font-size: 11px;
    user-select: none;
}

.cat-parent:hover { color: #1a3a6b; }

.cat-arrow {
    font-size: 9px;
    color: #888;
    transition: transform 0.15s;
    display: inline-block;
    width: 10px;
}

.cat-arrow.open { transform: rotate(90deg); }

.cat-children {
    display: none;
    padding-left: 14px;
    padding-bottom: 3px;
}

.cat-children.open { display: block; }

.cat-children a {
    display: block;
    font-size: 10px;
    color: #0066cc;
    padding: 1px 0;
    text-decoration: none;
    line-height: 1.5;
}

.cat-children a:hover { text-decoration: underline; color: #003399; }

/* HTA PROMO BOX */
.hta-promo {
    background: #1a3a6b;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
}

.hta-promo h4 {
    color: #f0c040;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.hta-promo p {
    color: #aac4f0;
    font-size: 9px;
    margin-bottom: 6px;
}

.hta-promo a {
    display: block;
    background: #f0c040;
    color: #1a3a6b;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.hta-promo a.secondary {
    background: transparent;
    color: #f0c040;
    border: 1px solid #f0c040;
}

/* EARL'S PEARLS */
.earls-pearls {
    background: #0d2044;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.earls-pearls h3 {
    color: #f0c040;
    font-size: 13px;
    margin-bottom: 4px;
}

.earls-pearls p {
    color: #8ab0e0;
    font-size: 9px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.earls-pearls a {
    display: block;
    background: #f0c040;
    color: #0d2044;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
}

/* AD ZONES RIGHT SIDEBAR */
.ad-zone {
    margin-bottom: 8px;
    text-align: center;
}

.ad-zone-label {
    font-size: 9px;
    color: #999;
    margin-bottom: 2px;
}

.ad-zone img { max-width: 100%; }

.ad-your-here {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    margin-bottom: 8px;
    background: #fafafa;
}

.ad-your-here .size { font-size: 9px; color: #999; }
.ad-your-here .title { font-size: 11px; font-weight: bold; color: #1a3a6b; margin: 3px 0; }
.ad-your-here .price { font-size: 10px; color: #555; margin-bottom: 3px; }
.ad-your-here .crypto { font-size: 9px; color: #e6a817; font-weight: bold; margin-bottom: 5px; }
.ad-your-here a { display: inline-block; background: #1a3a6b; color: #fff; font-size: 9px; padding: 3px 8px; border-radius: 3px; text-decoration: none; }

/* CRYPTO PAYMENT BAR */
.crypto-bar {
    background: #1a1a2e;
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    margin-bottom: 6px;
    font-size: 9px;
    color: #f0c040;
    font-weight: bold;
}

.crypto-bar span { color: #5a9e3a; display: block; font-size: 9px; margin-top: 2px; }

.payment-badges { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.badge { font-size: 8px; padding: 2px 4px; border-radius: 3px; font-weight: bold; }
.badge-btc { background: #f7931a; color: #fff; }
.badge-eth { background: #627eea; color: #fff; }
.badge-silver { background: #c0c0c0; color: #333; }
.badge-paypal { background: #003087; color: #fff; }
.badge-card { background: #2a5298; color: #fff; }

/* ARTICLES */
.section-heading {
    font-size: 14px;
    font-weight: bold;
    color: #1a3a6b;
    border-bottom: 2px solid #1a3a6b;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

.premium-ad-zone {
    background: #fff8f0;
    border: none;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.article-item:last-child { border-bottom: none; }

.article-item h3 {
    font-size: 13px;
    margin-bottom: 3px;
}

.article-item h3 a {
    color: #0066cc;
    text-decoration: none;
}

.article-item h3 a:hover { text-decoration: underline; }

.article-meta {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
}

.article-excerpt {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.article-excerpt a {
    color: #0066cc;
    font-size: 11px;
}

/* FOOTER */
#footer {
    clear: both;
    background: #1a3a6b;
    color: #8ab0e0;
    font-size: 11px;
    padding: 10px 12px;
    text-align: center;
    border-top: 2px solid #2a5298;
}

#footer a { color: #aac4f0; text-decoration: none; margin: 0 8px; }
#footer a:hover { color: #fff; text-decoration: underline; }

/* CLEARFIX */
.clearfix::after { content: ''; display: table; clear: both; }

/* EXTERNAL PARTNER BANNER */
.ext-banner { text-align: center; margin-bottom: 8px; }

/* HAWAII ISLANDS CROSS-PROMO BANNER */
.hawaii-banner { display: flex; flex-direction: column; text-decoration: none; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; margin-bottom: 8px; width: 175px; height: 90px; box-sizing: border-box; }
.hawaii-banner img { width: 175px; height: 54px; object-fit: cover; display: block; flex-shrink: 0; }
.hawaii-banner-caption { padding: 3px 6px; background: #fff; border-top: 1px solid #eee; flex: 1; overflow: hidden; box-sizing: border-box; }
.hawaii-banner-caption strong { font-size: 10px; color: #222; display: block; line-height: 1.2; }
.hawaii-banner-caption span { font-size: 8px; color: #666; line-height: 1.2; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    #page_wrapper { width: 100%; margin: 0; }
    #header { flex-direction: column; align-items: flex-start; gap: 6px; }
    #header h1 { font-size: 22px; }
    #navlist { justify-content: center; }
    #navlist li a { padding: 6px 8px; font-size: 11px; }
    #ad_top img { width: 100%; max-width: 100%; height: auto; }
    #left_side, #content, #right_side { float: none; width: 100%; min-height: auto; border: none; }
    #left_side { border-bottom: 1px solid #ddd; }
    #right_side { border-top: 1px solid #ddd; }
}
