/* ===== TOOLCRAFT HUB DESIGN SYSTEM ===== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

/* ===== TOPBAR ===== */

.topbar {
    background: #071a52;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.home-link {
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* ===== MAIN CONTAINER ===== */

.container,
.tool-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== CARDS ===== */

.tool-card,
.info-card,
.faq-card,
.info-section,
.related-tools {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    margin-bottom: 30px;
}

/* ===== HEADINGS ===== */

h1 {
    font-size: 36px;
    color: #071a52;
    margin-bottom: 10px;
}

h2 {
    font-size: 18px;
    color: #071a52;
    margin-bottom: 15px;
}

h3 {
    margin-bottom: 10px;
}

/* ===== TOOL DESCRIPTION ===== */

.tool-description {
    color: #6b7280;
    margin-bottom: 30px;
}

/* ===== FORM ELEMENTS ===== */

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
}

textarea {
    resize: vertical;
    min-height: 220px;
}

/* ===== BUTTONS ===== */

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

button,
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    margin-right: 10px;
}

button:hover,
.btn:hover {
    opacity: .9;
}

.secondary-btn,
.btn-secondary {
    background: #6b7280;
}

/* ===== RESULT BOX ===== */

.result-box {
    margin-top: 25px;
    padding: 20px;
    background: #eef4ff;
    border: 1px solid #c9d8ff;
    border-radius: 12px;
    line-height: 1.8;
    word-break: break-word;
}

.result-box h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

.result-item {
    margin-bottom: 8px;
}

/* ===== FAQ ===== */

.faq-item {
    margin-top: 20px;
}

.faq-item h3 {
    margin-bottom: 8px;
}

/* ===== RELATED TOOLS ===== */

.related-tools ul {
    padding-left: 20px;
}

.related-tools li {
    margin-bottom: 10px;
}

.related-tools a {
    color: #2563eb;
    text-decoration: none;
}

.related-tools a:hover {
    text-decoration: underline;
}

/* ===== INFO SECTION ===== */

.info-section p,
.info-card p,
.faq-card p {
    margin-bottom: 12px;
}

/* ===== MOBILE MEDIA QUERY ===== */

@media(max-width:768px) {

    h1 {
        font-size: 30px;
    }

    .tool-card,
    .info-card,
    .faq-card,
    .info-section,
    .related-tools {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    button,
    .btn {
        width: 100%;
        margin-right: 0;
    }

    .topbar {
        padding: 14px 18px;
    }

    .logo,
    .topbar a {
        font-size: 16px;
    }
}

/* =========================================================
   FOOTER STYLING FOR ALL TOOL PAGES
   ========================================================= */
.site-footer {
    background: #0b132b;
    color: #94a3b8;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    max-width: 320px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #818cf8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
}









/* =========================================================
   TOOL PAGE STICKY HEADER FIX
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #0b132b; /* Matching dark theme header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =========================================================
   TOOL PAGE FULL-WIDTH SLEEK FOOTER
   ========================================================= */
.site-footer {
    background: #0b132b;
    color: #94a3b8;
    padding: 30px 20px 15px 20px;
    margin-top: 40px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    max-width: 300px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #818cf8;
}

.footer-bottom {
    max-width: 1100px;
    margin: 15px auto 0 auto;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== YEAR-BY-YEAR SCHEDULE TABLE STYLES ===== */
.schedule-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.schedule-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.schedule-table-wrapper {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}
.schedule-table th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #cbd5e1;
}
.schedule-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
.schedule-table tr:hover {
    background-color: #f8fafc;
}