/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */

header {
    background-color: #f4f4f4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: inherit;
    top: 0;
    z-index: 100;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    border: 1px solid #ddd;
    color: #333;
}

.btn-primary {
    background-color: #f05033;
    color: white;
    border: 1px solid #f05033;
}

/* Mobile menu styles */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 6px;
}

.menu-toggle span:nth-child(2) {
    top: 14px;
}

.menu-toggle span:nth-child(3) {
    top: 22px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #f4f4f4;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 99;
    padding: 20px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}


/* Main two-column layout */


.main-content {
    display: flex;
    flex: 1;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.left-column {
    flex: 2;
    padding-right: 40px;
}

.right-column {
    flex: 1;
    max-width: 320px;
}

/* Article Content */
.article-header {
    margin-bottom: 30px;
}

.article-header .meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.article-header .meta span {
    margin-right: 15px;
}

.article-header .meta .author {
    display: flex;
    align-items: center;
}

.article-header .meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.article-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000;
    line-height: 1.3;
}

.article-header .excerpt {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.featured-image {
    width: 100%;
    margin-bottom: 20px;
}

.article-content {
    font-size: 17px;
    color: #444;
}

.article-content h2 {
    font-size: 26px;
    margin: 10px 0 10px;
    color: #f05033;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 22px;
    margin: 35px 0 18px;
    color: #333;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.article-content img {
    max-width: 100%;
    max-height: 100%;
}

.article-content blockquote {
    border-left: 4px solid #f05033;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content .tip {
    background-color: #f9f9f9;
    border-left: 4px solid #f05033;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.article-content .tip h4 {
    margin-top: 0;
    color: #f05033;
}

/* Right Column Resources */
.resources-container {
    position: sticky;
    top: 90px;
}

.resources-widget {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.resources-widget h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
}

.resources-list {
    list-style: none;
}

.resources-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.resources-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resources-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.resources-list a:hover {
    color: #f05033;
}

.resources-list .icon {
    color: #f05033;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.related-articles {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.related-articles h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #222;
}

.related-article {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-article a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.related-article a:hover {
    color: #f05033;
}

.related-article .date {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #bbb;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .main-content {
      padding: 10px 20px;
    }
    
    .left-column {
        padding-right: 30px;
    }
    
    .article-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links, .auth-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-content {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .left-column, .right-column {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .right-column {
        margin-top: 40px;
    }
    
    .resources-container {
        position: static;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    footer {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
     padding: 10px 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-header .meta {
        flex-wrap: wrap;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .resources-widget, .related-articles {
        padding: 20px;
    }
}