/* Fresh and Clean Theme for HandyWorks */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 13px/22px 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles - Original Design */
header {
    background-color: #008080;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: block;
    flex-shrink: 0;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
}

.site-title {
    text-align: left;
    padding: 1rem 0;
    flex: 1;
}

.site-title h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: white;
    line-height: 1.2;
}

.site-title p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: white;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
}

/* Navigation - Original Design */
nav {
    background-color: #d3d3d3; /* Light gray */
    padding: 0;
    border-top: 1px solid #aaa;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 22px;
    color: #000000; /* Black text */
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

nav ul li a:hover {
    background-color: #c0c0c0;
    border-bottom-color: #008080;
}

nav ul li a.active {
    background-color: #b0b0b0;
    border-bottom-color: #008080;
    font-weight: 600;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    background-color: white;
    min-height: 60vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Two-Column Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #008080;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-list a {
    color: #34495e;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: #008080;
    text-decoration: underline;
}

.search-form {
    margin: 0;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.1);
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

h2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #34495e;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

h2.no-border {
    border-bottom: none;
    padding-bottom: 0;
}

h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Buttons */
.button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 25px;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Download Items */
.download-item {
    border: 1px solid #e1e8ed;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.download-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.download-item p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* FAQ Sections */
.faq-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.faq-section h2 {
    color: #2c3e50;
    border: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.faq-answer {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Features */
.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    padding-left: 2rem;
}

.features-list li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* Story Content */
.story-content {
    line-height: 1.8;
    font-size: 1rem;
}

.story-content p {
    margin: 1rem 0;
    text-align: left;
}

/* Page Preview (for About Us page) */
.page-preview {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.page-preview:last-of-type {
    border-bottom: none;
}

.page-preview h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.page-preview h2 a {
    color: #34495e;
    text-decoration: none;
}

.page-preview h2 a:hover {
    color: #008080;
}

.preview-content {
    overflow: hidden; /* Clear float */
}

.preview-image {
    display: block;
}

.page-preview p {
    margin: 1rem 0;
    line-height: 1.8;
}

.page-preview a {
    color: #0000ff;
    text-decoration: underline;
}

.page-preview a:hover {
    color: #008080;
}

.story-image {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Update List */
.update-list {
    list-style: none;
    padding: 0;
}

.update-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
}

/* CTA Section */
.cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.cta h2 {
    color: white;
    border: none;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form-container {
    margin: 2rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin: 1rem 0 0.5rem 0;
    font-weight: normal;
    color: #34495e;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background-color: #008080;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #006666;
}

.submit-button:active {
    background-color: #004d4d;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Info */
.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0 2rem 0;
    text-align: left;
    border-top: 3px solid #008080;
}

.contact-details p {
    margin: 1.5rem 0;
    line-height: 1.8;
    font-size: 14px;
}

.contact-details p:first-child {
    margin-top: 0;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
}

.contact-details a {
    color: #0000ff;
    text-decoration: underline;
}

.contact-details a:hover {
    color: #008080;
}

.contact-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* Legacy Page Styles */
body.legacy-page main {
    padding-top: 0;
}

.legacy-header {
    background-color: #008080;
    color: white;
    padding: 1.5rem 20px;
    margin: 0 -20px 2rem -20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.whats-new {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.legacy-intro {
    margin: 2rem 0;
    padding: 0;
}

.legacy-intro a {
    color: #4169E1;
    text-decoration: underline;
}

.logos-section {
    margin: 2rem 0;
    background: #f0f0f0;
    padding: 2rem;
}

.logo-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.handyworks-logo,
.chargeitpro-logo {
    flex: 1;
    max-width: 300px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-hand {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4169E1;
    border-radius: 50%;
    color: white;
}

.logo-checkmark {
    font-size: 2.5rem;
    color: #27ae60;
    font-weight: bold;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #666;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #888;
}

.upgrade-link-section {
    margin: 1.5rem 0;
}

.upgrade-link-section a {
    color: #4169E1;
    text-decoration: underline;
}

.newsletters {
    margin: 2rem 0;
}

.newsletter-grid-container {
    border: 1px solid #000;
    display: flex;
    width: 100%;
}

.newsletter-label {
    background: #fff;
    padding: 1rem;
    border-right: 1px solid #000;
    font-weight: bold;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    flex: 1;
    background: #f0f0f0;
}

.newsletter-grid a {
    padding: 1rem;
    border: 1px solid #ddd;
    color: #4169E1;
    text-decoration: underline;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.newsletter-grid a:hover {
    background: #e0e0e0;
}

/* Updates Table */
.updates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 1px solid #000;
}

.updates-table tr {
    border-bottom: 1px solid #000;
}

.updates-table tr:last-child {
    border-bottom: none;
}

.updates-table td {
    padding: 1rem;
    vertical-align: top;
    border-right: 1px solid #000;
}

.updates-table td:last-child {
    border-right: none;
}

.update-date {
    width: 15%;
    font-weight: normal;
    text-align: left;
    color: #000;
}

.update-content {
    width: 85%;
}

.update-content ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.update-content li {
    margin: 0.3rem 0;
    line-height: 1.6;
    color: #000;
}

/* Downloads Page Styles */
.upgrade-notice {
    margin: 1.5rem 0;
}

.upgrade-notice p {
    margin: 0;
    line-height: 1.6;
}

.upgrades-list,
.downloads-list {
    list-style-type: disc;
    margin: 1rem 0 1rem 2rem;
    padding: 0;
}

.upgrades-list li,
.downloads-list li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.upgrades-list a,
.downloads-list a {
    color: #0000ff;
    text-decoration: underline;
}

.upgrades-list a:hover,
.downloads-list a:hover {
    color: #008080;
}

/* Sidebar Styles */
.sidebar {
    margin-top: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #0000ff;
    text-decoration: underline;
    font-size: 13px;
    line-height: 22px;
}

.sidebar-list a:hover {
    color: #008080;
}

.search-form {
    margin: 0;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 13px;
    line-height: 22px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.archive-links {
    margin: 3rem 0;
}

.archive-links ul {
    list-style: none;
    padding: 0;
}

.archive-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.archive-links a {
    color: #008080;
    text-decoration: none;
}

.archive-links a:hover {
    text-decoration: underline;
}

/* Blog Post Styles */
.blog-posts {
    margin: 2rem 0;
}

.blog-post-summary {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-post-summary:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #008080;
}

.blog-post-summary.expanding {
    opacity: 0.7;
    pointer-events: none;
}

.blog-post-summary.expanded {
    border-color: #008080;
    box-shadow: 0 4px 12px rgba(0,128,128,0.15);
}

.blog-post-summary h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.blog-post-summary h3 a {
    color: #008080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-summary h3 a:hover {
    color: #006666;
    text-decoration: underline;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.post-categories {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0.25rem 0;
}

.post-excerpt {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem 0 0.5rem 0;
    padding: 1rem 0 0 0;
    border-top: 1px solid #e1e8ed;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Blog Post Content Typography */
.post-content {
    line-height: 1.7;
    color: #333;
}

.post-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content ul,
.post-content ol {
    margin: 1.2rem 0 1.2rem 2rem;
    padding-left: 1rem;
    line-height: 1.7;
}

.post-content li {
    margin-bottom: 0.6rem;
}

.post-content li:last-child {
    margin-bottom: 0;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content a {
    color: #008080;
    text-decoration: underline;
}

.post-content a:hover {
    color: #006666;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: block;
}

.post-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.post-content em {
    font-style: italic;
}

.blog-post-expanded {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #008080;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-expanded .post-content {
    line-height: 1.8;
}

.blog-post-expanded .post-content p {
    margin: 1rem 0;
}

.blog-post-expanded .post-content ul,
.blog-post-expanded .post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.blog-post-expanded .post-content h2,
.blog-post-expanded .post-content h3,
.blog-post-expanded .post-content h4 {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem 15px;
    }
    
    .story-image {
        float: none;
        margin: 0 auto 1rem;
        display: block;
    }
}

/* Footer Styles */
footer {
    background-color: #ffffff;
    border-top: 2px solid #e1e8ed;
    padding: 2rem 20px;
    text-align: center;
    color: #333;
    font-size: 0.95rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
    color: #333;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #008080;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #006666;
    text-decoration: underline;
}
