/* Modern Refresh Template - Layout Only */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    background-color: #cccccc;
}

/* Links */
a {
    text-decoration: none;
    color: #4f82cb;
}

a:hover {
    color: #4ebf37;
}

/* Typography */
h1,
h2,
h3 {
    font-family: Tahoma, Verdana, 'Trebuchet MS', sans-serif;
    font-weight: bold;
}

h1 {
    font-size: 1.2em;
}

h2 {
    font-size: 1.1em;
    text-transform: uppercase;
    color: #88ac0b;
}

h3 {
    font-size: 1.1em;
    color: #666666;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    background: #fafafa;
    border: 1px solid #e4e4e4;
    padding: 8px;
}

.image-float-left {
    float: left;
    margin: 5px 10px 10px 0;
}

.image-float-right {
    float: right;
    margin: 5px 0 10px 10px;
}

/* Badge icons - override default img styles */
.badge {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 4px;
    max-width: 16px;
    height: auto;
}

/* Layout Structure */
.wrapper {
    width: 820px;
    margin: 20px auto;
    background-color: #fff;
    text-align: left;
    border: 10px solid white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    width: 100%;
    height: 106px;
    /* Base gradient blue background */
    background-image:
        /* Diagonal line pattern */
        repeating-linear-gradient(135deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 8px),
        /* White overlay gradient */
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 100%),
        /* Base blue vertical gradient */
        linear-gradient(to bottom,
            #3a78cb 0%,
            #3763a8 100%);

    position: relative;
    color: white;
    border-radius: 10px 10px 0 0;
}

.header-content {
    position: relative;
    height: 100%;
}

.logo {
    position: absolute;
    top: 28px;
    left: 50px;
    font-size: 3.3em;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: -2px;
    color: white;
    margin: 0;
    padding: 0;
}

.logo-accent {
    color: #ccc;
}

.slogan {
    position: absolute;
    top: 74px;
    left: 58px;
    font-size: 0.8em;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
}

/* Search form */
.search-form {
    position: absolute;
    top: 35px;
    right: 25px;
}

.search-group {
    display: flex;
    gap: 0;
}

.search-input {
    width: 120px;
    padding: 1px 2px;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    font-size: 12px;
}

.search-button {
    background: #ccc;
    color: #333;
    border: 1px solid #ccc;
    padding: 2px 5px;
    width: 70px;
    height: 21px;
    font-size: 12px;
    cursor: pointer;
}

/* Navigation */
.navigation {
    height: 28px;
    background: linear-gradient(to right, #82c13e, #61912e);
    font-weight: bold;
    font-size: 12px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    margin: 0;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: block;
    padding: 0 10px;
    color: white;
    line-height: 28px;
    text-decoration: none;
}

.nav-link:hover {
    background-color: #ececec;
    color: #333;
}

.nav-item--current .nav-link {
    background-color: white;
    color: #333;
}

/* Content wrapper */
.content-wrapper {
    display: flex;
    width: 100%;
    margin: 0;
    gap: 20px;
    padding: 10px 0;
}

/* Main content */
.main-content {
    flex: 1;
    width: 72%;
    order: 2;
}

.main-content h1 {
    margin-top: 10px;
    margin-right: 8px;
    font-size: 1.25em;
    font-family: Verdana, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    color: #88ac0b;
    padding: 5px 0 5px 25px;
    border-bottom: 1px solid #eff0f1;
    background: white;
    position: relative;
}

.main-content h1::before {
    content: "■";
    color: #88ac0b;
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.main-content p {
    padding: 8px 0 8px 0;
    margin: 0px 5px;
}

/* Consistent alignment for all main content elements */
.main-content h3 {
    /* padding: 8px 0 8px 0; */
    padding-top: 8px;
    margin: 0;
}

.main-content ul,
.main-content ol {
    margin: 5px 0px;
    padding: 0 20px;
}

.main-content blockquote {
    margin: 10px;
}

.main-content pre {
    margin: 5px 10px;
}

.main-content .example-form {
    margin: 10px;
}

/* Post footer */
.post-footer {
    background-color: #fafafa;
    padding: 5px;
    margin-top: 20px;
    border: 1px solid #f2f2f2;
    font-size: 0.9em;
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-link {
    padding-left: 20px;
    position: relative;
}

.post-link--readmore::before {
    content: "";
    background-image: url('../img/page.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.post-link--category::before {
    content: "";
    background-image: url('../img/folder.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.post-author {
    padding-left: 20px;
    position: relative;
}

.post-author::before {
    content: "";
    background-image: url('../img/user.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


.post-link--comments::before {
    content: "";
    background-image: url('../img/comment.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.post-date {
    margin-left: auto;
    padding-left: 20px;
    position: relative;
}

.post-date::before {
    content: "";
    background-image: url('../img/date.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Lists */
.example-list {
    margin: 5px 20px;
    padding: 0 20px;
    color: #88ac0b;
}

.example-list span {
    color: #666666;
}

/* Code blocks */
pre {
    margin: 5px 0;
    padding: 15px;
    background: #fafafa;
    border: 1px solid #f2f2f2;
    overflow: auto;
}

code {
    font-family: 'Lucida Console', 'courier new', monospace;
    font-size: 1em;
    line-height: 1.5;
}

/* Blockquotes */
blockquote {
    margin: 10px;
    padding: 10px 10px 10px 28px;
    border: 1px solid #f2f2f2;
    background: #fafafa;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 2em;
    position: absolute;
    left: 5px;
    top: 10px;
    color: #ccc;
}

/* Forms */
.example-form {
    margin: 10px;
    padding: 15px;
    border: 1px solid #f2f2f2;
    background-color: #fafafa;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    font-family: inherit;
    color: #777;
    max-width: 300px;
}

.form-textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #eee;
    font-family: inherit;
    color: #777;
    resize: vertical;
}

.form-button {
    background: white;
    color: #88ac0b;
    border: 1px solid #ccc;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
}

.form-button:hover {
    background: #f5f5f5;
}

/* Sidebar */
.sidebar {
    width: 26.5%;
    flex-shrink: 0;
    order: 1;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar h1,
.sidebar h2 {
    margin-top: 10px;
    padding: 5px 0 5px 10px;
    font-size: 1.1em;
    font-family: Verdana, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    color: #555;
    text-transform: none;
    background: linear-gradient(to bottom, #ffffff 0%, #eeeeee 50%, #e7e7e7 100%);
    border: 1px solid #eff0f1;
    border-radius: 3px 3px 0 0;
}

.sidebar-box {
    border: 1px solid #eff0f1;
    border-top: none;
}

.sidebar-box p {
    margin: 5px;
    padding: 10px;
    font-size: 0.9em;
}

.sidebar-box h3 {
    margin: 5px;
    padding: 10px 10px 5px 10px;
    font-size: 0.95em;
    color: #666;
    font-weight: bold;
}

.sidebar-box dl {
    margin: 5px;
    padding: 0 10px 10px 10px;
    font-size: 0.85em;
}

.sidebar-box dt {
    float: left;
    clear: left;
    width: 60px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px;
}

.sidebar-box dd {
    margin-left: 65px;
    margin-bottom: 2px;
    color: #555;
}

.sidebar-menu {
    list-style: none;
    margin: 3px 0 8px 0;
    padding: 0;
    font-size: 0.9em;
}

.sidebar-menu li {
    border-bottom: 1px solid #eff0f1;
    padding: 8px 0 8px 25px;
    margin: 0 2px;
    position: relative;
}

.sidebar-menu li::before {
    content: "";
    background-image: url('../img/go.svg');
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
    width: 12px;
    height: 12px;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-menu a {
    font-weight: bold;
    text-decoration: none;
}

.sidebar-quote {
    /* margin: 10px; */
    padding: 15px;
    background: white;
    border-left: 3px solid #88ac0b;
}

.sidebar-box cite {
    display: block;
    text-align: right;
    font-style: normal;
    padding: 10px;
}

/* Footer */
.footer {
    clear: both;
    width: 100%;
    height: 55px;
    background-color: #666;
    color: #ccc;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 0 0 10px 10px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.pagination-info {
    color: #666;
    margin: 0 15px;
}

/* Utility classes */
.clear {
    clear: both;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

/* Responsive Design */

/* Tablet styles */
@media screen and (max-width: 1024px) {
    .wrapper {
        width: 95%;
        max-width: 820px;
        margin: 10px auto;
    }

    .search-form {
        position: static;
        margin-top: 10px;
        text-align: center;
    }

    .logo {
        font-size: 2.5em;
    }

    .slogan {
        top: 60px;
    }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .wrapper {
        width: 95%;
        margin: 5px auto;
        border-width: 5px;
        border-radius: 10px;
    }

    /* Header adjustments */
    .header {
        height: auto;
        padding: 15px;
        text-align: center;
        border-radius: 5px 5px 0 0;
    }

    .logo {
        position: static;
        font-size: 2em;
        margin-bottom: 5px;
    }

    .slogan {
        position: static;
        margin-bottom: 15px;
    }

    .search-form {
        position: static;
        margin: 0;
    }

    .search-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .search-input {
        width: 150px;
    }

    /* Navigation - horizontal scrolling */
    .navigation {
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-list {
        justify-content: flex-start;
        padding-right: 20px;
        padding-left: 20px;
        min-width: 600px;
        /* Fallback for older browsers */
        min-width: max-content;
    }

    .nav-item {
        flex-shrink: 0;
    }

    /* Content wrapper - stack sidebar below main content */
    .content-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .main-content {
        width: 100%;
        order: 1;
    }

    /* Footer adjustments */
    .footer {
        height: auto;
        padding: 15px;
        border-radius: 0 0 5px 5px;
    }

    .footer p {
        margin: 5px 0;
        font-size: 0.8em;
    }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
    .wrapper {
        width: 98%;
        border-width: 3px;
    }

    .header {
        padding: 10px;
    }

    .logo {
        font-size: 1.8em;
    }

    .search-input {
        width: 120px;
    }

    .search-button {
        width: 60px;
    }

    /* Navigation - make it more touch-friendly */
    .nav-link {
        padding: 0 8px;
        font-size: 11px;
    }

    .content-wrapper {
        padding: 10px;
    }

    .main-content h1 {
        font-size: 1.1em;
        padding: 5px 0 5px 20px;
    }

    .main-content p {
        padding: 8px;
    }

    /* Sidebar adjustments for small screens */
    .sidebar h1,
    .sidebar h2 {
        font-size: 1em;
        padding: 4px 0 4px 8px;
    }

    .sidebar-menu li {
        padding: 6px 0 6px 20px;
    }

    /* Form adjustments */
    .form-input,
    .form-textarea {
        max-width: 100%;
    }

    /* Image adjustments */
    .image-float-left,
    .image-float-right {
        float: none;
        display: block;
        margin: 10px auto;
    }
}

/* Alert boxes */
.alert {
    padding: 8px 12px;
    margin: 15px 0;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #b8daff;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Alert icon styling - using SVG icons */
.alert::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: text-top;
    background-image: url('../img/warning.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
}

.alert-info::before {
    background-image: url('../img/information.svg');
}

.alert-success::before {
    background-image: url('../img/success.svg');
}

.alert-danger::before {
    background-image: url('../img/error.svg');
}