
:root{
    --green:#16a34a;
    --black:#020617;
    --dark:#111827;
    --gray:#9ca3af;
    --bg:#f4f6f5;
}

/* ================= PAGE SETUP ================= */
html, body {
    margin:0;
    padding:0;
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:#1f2933;
    overflow-x:hidden;
}

/* ================= HEADER ================= */
header{
    background:linear-gradient(90deg,var(--black),var(--dark));
    padding:14px 22px;
    display:flex;
    align-items:center;
    gap:10px;
    position:sticky;
    top:0;
    z-index:1000;
}

/* Branding (NOT H1 – SEO FIX) */
.site-logo{
    font-size:22px;
    font-weight:700;
    color:#fff;
    white-space:nowrap;
}
.site-logo span{color:var(--green);}

/* ================= NAV ================= */
nav{flex:1;overflow:hidden;}

nav ul{
    display:flex;
    gap:18px;
    padding:0;
    margin:0;
    list-style:none;
    white-space:nowrap;
    transition:transform .3s ease;
}

nav li a{
    color:#e5e7eb;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    padding:8px 12px;
}

nav li a:hover{color:var(--green);}

/* Menu arrows */
.menu-arrow{
    color:#fff;
    font-size:20px;
    cursor:pointer;
    padding:0 8px;
}
.menu-arrow:hover{color:var(--green);}

/* Burger */
.burger{
    display:none;
    flex-direction:column;
    gap:4px;
    cursor:pointer;
}
.burger div{
    width:25px;
    height:3px;
    background:#fff;
}

/* ================= MAIN ================= */
main{
    display:flex;
    justify-content:center;
    padding:20px;
}
.content-box{
    width:100%;
    max-width:1000px;
    background:#fff;
    padding:40px;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* ================= FOOTER ================= */
footer{
    background:#020617;
    color:#e5e7eb;
    padding:30px 20px;
}
.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    max-width:1200px;
    margin:auto;
}
.footer-col h3{
    font-size:16px;
    color:var(--green);
}
.footer-col a{
    display:block;
    color:#d1d5db;
    text-decoration:none;
    margin-bottom:8px;
}
.footer-col a:hover{color:var(--green);}
.footer-bottom{
    text-align:center;
    font-size:13px;
    color:var(--gray);
    margin-top:15px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {

    header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between; /* left ↔ right */
    }

    /* Logo stays LEFT */
    .site-logo {
        margin: 0;
        text-align: left;
    }

    /* Burger stays RIGHT */
    .burger {
        display: flex;
        position: static; /* IMPORTANT: remove absolute */
        margin-left: auto;
        z-index: 1100;
    }

    /* Mobile menu */
    nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #111827;
        display: none;
        flex-direction: column;
        padding: 10px 0;
        z-index: 999;
    }

    nav.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .menu-arrow {
        display: none;
    }
}



.tool-btn{
  display:inline-block;
  margin-top:10px;
  padding:8px 14px;
  background:#16a34a;
  color:#fff;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
}

/* Default: show desktop, hide mobile */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Mobile Styles */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only {
        display: block !important;
        padding: 15px;
        background: #f4f6f5;
        border-radius: 8px;
        text-align: center;
    }

    .mobile-only h3 {
        font-size: 16px;
        color: #111;
        margin-bottom: 8px;
    }

    .mobile-only p {
        font-size: 14px;
        color: #555;
        line-height: 1.4;
    }
}


.json-formatter-text-area{
    width:100%; padding:10px; margin-top:5px;
}

.json-toolbox {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
}

.json-formatter-text-area {
    width: 100%;
    font-family: monospace;
    margin-bottom: 10px;
}

.tool-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.formatted-output {
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
}

.error-text {
    color: red;
    margin-top: 5px;
}

/* ==================================================
   HASH GENERATOR – OUTPUT UI (NO CONFLICT VERSION)
   ================================================== */

.output-card {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Header */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.output-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

/* Algorithm badge */
.algo-badge {
    background: var(--green);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Output box */
.output-box textarea {
    width: 100%;
    min-height: 90px;
    margin-top: 15px;
    padding: 12px 14px;
    font-family: monospace;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #020617;
    resize: none;
    outline: none;
}

.output-box textarea:focus {
    border-color: var(--green);
}

/* Actions */
.output-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Scoped buttons (won't touch other tools) */
.output-actions .btn-primary {
    background: var(--green);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.output-actions .btn-primary:hover {
    background: #02924b;
}

.output-actions .btn-secondary {
    background: #e5e7eb;
    color: #111827;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.output-actions .btn-secondary:hover {
    background: #d1d5db;
}

/* Meta info */
.output-meta {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #d1d5db;
    font-size: 14px;
    color: #4b5563;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.output-meta strong {
    color: #111827;
}

/* Mobile optimization */
@media (max-width: 600px) {
    .output-card {
        padding: 18px;
    }

    .output-header h2 {
        font-size: 18px;
    }

    .output-actions {
        flex-direction: column;
    }

    .output-actions button {
        width: 100%;
    }
}
/* Json formatter Page */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-group {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tool-group h3 {
    font-size: 16px;
    color: var(--green);
    margin-bottom: 10px;
}

.tool-group ul {
    padding-left: 18px;
    margin: 0;
}

.tool-group li {
    font-size: 14px;
    margin-bottom: 6px;
}

.seo-content {
    margin-top: 40px;
}

.tool-group a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.tool-group a:hover {
    color: var(--green);
    text-decoration: underline;
}

/* ================= HOME PAGE (NO CONFLICT CSS) ================= */

/* Hero section */
.hero {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 900px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.text-green {
    color: var(--green);
}

/* Tools section */
.tools-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.section-text {
    max-width: 900px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* Tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

/* Tool card */
.tool-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    border-top: 4px solid var(--green);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.tool-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.tool-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Info sections */
.info-section {
    margin-top: 50px;
}

.info-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Feature grid */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.feature-card {
    flex: 1;
    min-width: 220px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
}

/* Logo Styling */
.twh-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.twh-logo-img {
    height: 36px; /* Adjust header logo height */
    width: auto;  /* Maintain aspect ratio */
    display: block;
}

/* ================= FAQ, Privacy & Terms UI ================= */

/* FAQ Hero Section */
.faq-hero {
    text-align: center;
    margin-bottom: 30px;
}

.faq-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
}

.faq-hero .faq-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 8px;
}

/* FAQ Items */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding: 18px 22px;
    background-color: #f9fafb;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    background-color: #f0fdf4;
    transform: translateY(-2px);
}

.faq-item h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.faq-item p,
.faq-item ul {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin-left: 10px;
}

.faq-item ul li {
    margin-bottom: 6px;
    list-style-type: disc;
}

/* Links inside FAQ, Privacy & Terms */
.faq-item a,
.privacy-terms-section a {
    color: var(--green);
    text-decoration: none;
}

.faq-item a:hover,
.privacy-terms-section a:hover {
    text-decoration: underline;
}

/* ================= Privacy & Terms – Professional UI ================= */
.privacy-terms-section {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1rem;
    color: #374151;
}

.privacy-terms-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.privacy-terms-section p {
    margin-bottom: 18px;
}

.privacy-terms-section ul {
    padding-left: 25px;
    margin-bottom: 18px;
}

.privacy-terms-section ul li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.privacy-terms-section a {
    color: var(--green);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-terms-section {
        padding: 20px 18px;
    }

    .privacy-terms-section h2 {
        font-size: 1.5rem;
    }
}

.tos-list {
    margin-top: 1em;       /* space above the list */
    padding-left: 1.5em;   /* indentation for bullets */
    line-height: 1.8;      /* spacing between list lines */
}

.tos-list li {
    margin-bottom: 0.8em;  /* space between each <li> */
}

.content-box p {
    margin-bottom: 1em;
    line-height: 1.8;
}

/* List spacing if added in the future */
.tos-list {
    margin-top: 1em;
    padding-left: 1.5em;
    line-height: 1.8;
}
.tos-list li {
    margin-bottom: 0.8em;
}
.blog-links a:hover {
    color: var(--green);
    text-decoration: underline;
}
.hash-output {
    background: #f5f5f5;
    border-left: 4px solid var(--green);
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    overflow-x: auto;
}
@media(max-width:768px){
    .content-box { padding: 20px; }
    .blog-content p { font-size: 15px; line-height: 1.6; }
}
.breadcrumb {
    font-size: 14px;
    color: var(--gray);
    margin: 10px 0 20px;
}
.breadcrumb a {
    color: var(--green);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--black);
    font-weight: 500;
}

.resize-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 500;
    margin-bottom: 6px;
}

.input-field {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.btn-submit {
    background: var(--green);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.btn-submit:hover {
    background: #02924b;
}

.hidden {
    display: none;
}

/* Custom input and select styling for URL tool */
.form-control-custom {
    padding: 10px;
    margin-top: 8px;
    width: 100%;
    max-width: 700px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control-custom:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* Tool form styling */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* SEO content styling */
.seo-content p, .seo-content ul, .seo-content h2, .seo-content h3 {
    margin-bottom: 15px;
    line-height: 1.6;
}

.seo-content ul li {
    margin-bottom: 8px;
}

/* Inline picker wrapper */
.inline-picker .picker-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 250px; /* Adjust for responsive UI */
}

.inline-picker .picker-wrapper .color-input {
    flex: 1;
    height: 50px;
    border: none;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
}

.inline-picker .picker-wrapper .picker-btn {
    border-radius: 0 6px 6px 0;
    padding: 0 14px;
    height: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Ensure button does not overlap when native color picker opens */
.inline-picker .picker-wrapper .color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}
.inline-picker .picker-wrapper .color-input::-webkit-color-swatch {
    border-radius: 6px 0 0 6px;
}

/* Generator input and button */
.generator-toolbox .tool-form {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.generator-toolbox .number-input {
    padding: 8px;
    width: 150px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.generator-toolbox .tool-actions {
    margin-top: 10px;
}

.generator-toolbox .btn-submit {
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #4CAF50;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.generator-toolbox .btn-submit:hover {
    background-color: #45a049;
}

/* Generated text */
.generated-text {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* Divider */
.section-divider {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* ================= ABOUT PAGE SPECIAL CLASSES ================= */
.about-hero {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg);
    margin-bottom: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.about-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-card.green-top {
    border-top-color: var(--green);
}

.about-card h3 {
    margin-top: 0;
    color: var(--black);
}

.about-card .text-green {
    color: var(--green);
}

.faq-toggle-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

.about-footer-links {
    text-align: center; 
    margin-top: 50px; 
    padding: 30px; 
    border-top: 1px solid #eee;
}

/* ================= ADDITIONAL UI CLASSES (MISSING) ================= */

/* Makes the FAQ questions clickable buttons */
.faq-toggle-btn { 
    width: 100%; 
    text-align: left; 
    background: none; 
    border: none; 
    padding: 0; 
    font-family: inherit; 
    cursor: pointer; 
}

/* Styles the lists in your Site Directory/Sitemap */
.tos-list { 
    list-style: none; 
    padding: 0; 
    line-height: 2; 
}

/* Styles the "Standing on the shoulders of giants" box */
.quote-box { 
    margin-top: 40px; 
    padding: 25px; 
    background-color: #f0fdf4; 
    border-left: 5px solid var(--green); 
    border-radius: 8px; 
    font-style: italic; 
}

/* Styles the footer area for legal pages */
.about-footer-links { 
    text-align: center; 
    margin-top: 50px; 
    padding: 30px; 
    border-top: 1px solid #eee; 
}

/* ================= REMOVING REMAINING INLINE STYLES ================= */

/* Replaces style="display:none; margin-top:10px;" */
.faq-answer {
    display: none;
    margin-top: 10px;
}

/* Replaces style="float:right" */
.faq-icon {
    float: right;
}

/* Replaces the inline margin and border in the footer area */
.legal-footer-meta {
    margin-top: 40px;
    border-top: 1px dashed var(--gray);
    padding-top: 20px;
}

/* Replaces style="text-decoration: none;" in sitemap */
.sitemap-link {
    text-decoration: none;
}

/* Styles for the Acknowledgments quote box */
.quote-container {
    margin-top: 40px; 
    padding: 25px; 
    background-color: #f0fdf4; 
    border-left: 5px solid var(--green); 
    border-radius: 8px;
}

.quote-text {
    font-style: italic; 
    font-size: 1.1rem; 
    color: var(--dark); 
    margin: 0;
}

.sub-link-info {
    margin-top: 15px; 
    font-size: 0.9rem;
}

/* ================= CONTACT PAGE & ALERTS ================= */
.contact-container { max-width: 800px; margin: 0 auto; }
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.form-input, .form-textarea { 
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; 
    font-size: 16px; transition: border-color 0.3s; 
}
.form-input:focus, .form-textarea:focus { border-color: var(--green); outline: none; }

/* ADDED CSS FOR SEO CONTENT - No inline styles used */
    .section-divider { margin-top: 60px; border-top: 1px solid #ddd; padding-top: 40px; }
    .info-block { margin: 40px 0; line-height: 1.8; }
    .info-block h3 { margin-top: 25px; color: var(--black); }
    .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; }
    .feature-card h3 { color: var(--green); font-size: 1.2rem; margin-bottom: 10px; }
    .faq-section { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-top: 40px; }
    .faq-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .faq-item:last-child { border-bottom: none; }

    /* Picker Grid Styling */
    .picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
    #hex-grid { width: 100%; max-width: 300px; cursor: pointer; }
    .hex-cell { stroke: #fff; stroke-width: 0.5; transition: stroke 0.2s; }
    .hex-cell:hover { stroke: var(--black); stroke-width: 1.5; }
    .hex-cell.active { stroke: var(--black); stroke-width: 2.5; }
    .color-preview-box { height: 280px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .value-display-card { text-align: center; padding: 20px; margin-top: 15px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .value-display-card strong { font-size: 1.4rem; color: var(--green); font-family: monospace; }
    .format-label { color: var(--gray); font-size: 0.9rem; margin-top: 5px; font-family: monospace; }
    .manual-input { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
    .color-swatch-input { width: 100%; height: 45px; cursor: pointer; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
    .scales-container { background: #fff; padding: 10px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    .scale-row { display: flex; align-items: center; height: 26px; margin-bottom: 2px; cursor: pointer; font-family: monospace; font-size: 12px; }
    .scale-pct { width: 45px; text-align: right; padding-right: 10px; color: var(--gray); }
    .scale-bar { flex-grow: 1; height: 100%; border: 1px solid #fff; border-radius: 2px; }
    .scale-hex { width: 85px; text-align: right; padding-left: 10px; }
    .txt { font-weight: 700; font-size: 1.1rem; }
    .txt.black { color: #000; }
    .txt.white { color: #fff; }
    .txt.shadow { text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }

    @media (max-width: 768px) { .picker-grid { grid-template-columns: 1fr; } }

    /* Key Features List Styling */
.key-features {
    list-style-type: disc;
    padding-left: 30px;
    margin-top: 15px;
    margin-bottom: 1px;
}

.key-features li {
    margin-bottom: 1px !important; 
    line-height: 2 !important;     
    font-size: 16px !important;    
}

/* Added on 02-01-2026 */
/* ================= RECENT ARTICLES SECTION ================= */
.recent-articles-section {
    background-color: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
    width: 100%;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.article-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--green);
}

.article-inner {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--black);
    text-decoration: none;
}

.article-excerpt {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.article-footer .date {
    font-size: 0.85rem;
    color: var(--gray);
}

.read-more-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--green);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.read-more-btn:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title { font-size: 1.5rem; }
    .articles-grid { grid-template-columns: 1fr; }
}

/* ================= MAIN LAYOUT FIX ================= */
/* Change main from flex to block to allow vertical stacking */
.main-wrapper {
    display: block; 
    width: 100%;
    padding: 0; /* Removing padding here so background colors can go edge-to-edge */
}

.main-container {
    display: flex;
    justify-content: center;
    padding: 20px; /* Restoring the spacing for the tool box */
}

/* Ensure the blog section ignores the tool-box centering */
.recent-articles-section {
    background-color: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
    width: 100%; /* Forces full width */
    box-sizing: border-box;
}

/* Fix for the grid inside the new section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Ensure card titles don't inherit strange alignments */
.article-card h3 {
    text-align: left;
    margin: 10px 0;
}

/* Keep the tool box at its original size */
.content-box {
    width: 100%;
    max-width: 1000px;
}

.json-output-scroll {
    max-height: 400px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-family: monospace;
    white-space: pre-wrap;
}


/* ================= SEO CONTENT STYLING ================= */

/* General SEO content container */
.seo-content {
    background-color: #ffffff; /* clean white background */
    padding: 30px 25px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* subtle shadow */
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    transition: all 0.3s ease;
}

/* Headings */
.seo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.seo-content h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF; /* professional blue underline */
    margin-top: 5px;
    border-radius: 2px;
}

/* Sub-headings (h3) */
.seo-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #007BFF;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Paragraphs */
.seo-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

/* Ordered and Unordered Lists */
.seo-content ul,
.seo-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.seo-content ul li,
.seo-content ol li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}

/* Strong text for highlights */
.seo-content strong {
    color: #222;
}

/* FAQ Style */
.seo-content h3 {
    cursor: pointer;
    transition: all 0.3s ease;
}

.seo-content h3:hover {
    color: #0056b3;
}

/* Add subtle hover effect on paragraphs for readability */
.seo-content p:hover {
    color: #000;
}

/* Links */
.seo-content a {
    color: #007BFF;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.seo-content a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .seo-content {
        padding: 20px 15px;
    }

    .seo-content h2 {
        font-size: 24px;
    }

    .seo-content h3 {
        font-size: 20px;
    }

    .seo-content p,
    .seo-content li {
        font-size: 15px;
    }
}

.btn-submit.copied {
    background: #16a34a; /* same green */
    color: #ffffff;
}
/* ================= AGE / DATE RESULT UI Date - 28-01-2026 ================= */

.age-output-card {
    border-left: 5px solid var(--green);
}

/* Subtitle under heading */
.output-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

/* Grid layout */
.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

/* Individual stat card */
.age-tile {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.age-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Highlight important units */
.age-tile.highlight {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
}

/* Big number */
.age-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--green);
    display: block;
    line-height: 1.2;
}

/* Label */
.age-label {
    margin-top: 6px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .age-value {
        font-size: 26px;
    }
}

/* ---------- Date Calculator Mobile UI ---------- */

.date-form {
    max-width: 420px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #222;
}

/* Input */
.json-input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

/* Checkbox */
.checkbox-group {
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
    transform: scale(1.1);
}

/* Button */
.btn-submit {
    width: 100%;
    height: 46px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

/* Desktop enhancement */
@media (min-width: 768px) {
    .date-form {
        max-width: 520px;
    }
}
.json-input {
    background-image: url("data:image/svg+xml,%3Csvg ... %3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}








