.construction-tools-page {
    background: #f8f9fa;
    min-height: 60vh;
}

.ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ct-hero {
    background: linear-gradient(135deg, var(--primary-color, #336AEA), #1a4bc7);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.ct-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ct-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.ct-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.ct-tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ct-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ct-tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(51, 106, 234, 0.1);
    color: var(--primary-color, #336AEA);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.ct-tool-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222429;
}

.ct-tool-card p {
    font-size: 0.9rem;
    color: #6A6F78;
    margin-bottom: 16px;
}

.ct-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ct-btn-primary {
    background: var(--primary-color, #336AEA);
    color: #fff;
    border: none;
}

.ct-btn-primary:hover {
    background: #2858c7;
    color: #fff;
}

.ct-btn-outline {
    background: transparent;
    color: var(--primary-color, #336AEA);
    border: 2px solid var(--primary-color, #336AEA);
}

.ct-btn-outline:hover {
    background: var(--primary-color, #336AEA);
    color: #fff;
}

.ct-btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.ct-calculator-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 5px 15px;
}

.ct-page-header {
    background: linear-gradient(135deg, var(--primary-color, #336AEA), #1a4bc7);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.ct-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ct-page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.ct-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.ct-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222429;
}

.ct-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ct-form-grid .form-group {
    display: flex;
    flex-direction: column;
}

.ct-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.ct-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}

.ct-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.ct-form-control:focus {
    outline: none;
    border-color: var(--primary-color, #336AEA);
    box-shadow: 0 0 0 3px rgba(51, 106, 234, 0.1);
}

.ct-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ct-result-box {
    background: #f0f4ff;
    border: 1px solid #d0d9f7;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.ct-result-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222429;
}

.ct-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ct-result-row:last-child {
    border-bottom: none;
}

.ct-result-label {
    font-weight: 500;
    color: #555;
}

.ct-result-value {
    font-weight: 700;
    color: #222429;
    font-size: 1.05rem;
}

.ct-result-value.highlight {
    color: var(--primary-color, #336AEA);
    font-size: 1.2rem;
}

.ct-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 24px;
    font-size: 0.85rem;
    color: #665;
    line-height: 1.6;
}

.ct-related {
    margin-top: 40px;
}

.ct-related h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222429;
}

.ct-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ct-related-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.ct-related-card:hover {
    transform: translateY(-3px);
}

.ct-related-card i {
    font-size: 1.5rem;
    color: var(--primary-color, #336AEA);
    margin-bottom: 10px;
    display: block;
}

.ct-related-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

.ct-category-block {
    margin-top: 40px;
}

.ct-category-block:first-child {
    margin-top: 40px;
}

.ct-category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222429;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color, #336AEA);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-category-title i {
    color: var(--primary-color, #336AEA);
}

.ct-json-output {
    white-space: pre-wrap;
    word-break: break-word;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    min-height: 150px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
}

.ct-breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.ct-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.ct-breadcrumb a {
    color: var(--primary-color, #336AEA);
    text-decoration: none;
}

.ct-breadcrumb a:hover {
    text-decoration: underline;
}

.ct-breadcrumb span {
    color: #999;
}

.ct-item-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ct-item-row .form-group {
    flex: 1;
    min-width: 120px;
}

.ct-remove-item {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 28px;
}

.ct-remove-item:hover {
    background: #c82333;
}

.ct-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.ct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ct-table th,
.ct-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.ct-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.ct-table td input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.ct-table td input:focus {
    outline: none;
    border-color: var(--primary-color, #336AEA);
}

.ct-validation-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.ct-validation-error.visible {
    display: block;
}

@media (max-width: 767px) {
    .ct-hero h1 {
        font-size: 1.8rem;
    }

    .ct-form-grid {
        grid-template-columns: 1fr;
    }

    .ct-calculator-wrap {
        padding: 20px 10px;
    }

    .ct-card {
        padding: 20px;
    }

    .ct-tools-grid {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }

    .ct-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ct-item-row {
        flex-direction: column;
    }

    .ct-remove-item {
        margin-top: 0;
        width: 100%;
    }
}

/* ==========================================================================
   SEO Content Section
   ========================================================================== */
.ct-seo-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    line-height: 1.8;
    color: #333;
}

.ct-seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222429;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #336AEA);
}

.ct-seo-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #444;
}

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

.ct-seo-content strong {
    color: #222429;
}

.ct-seo-content a {
    color: var(--primary-color, #336AEA);
    text-decoration: none;
    font-weight: 600;
}

.ct-seo-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .ct-seo-content {
        padding: 24px 20px;
        margin: 24px 0;
    }
    
    .ct-seo-content h2 {
        font-size: 1.25rem;
    }
    
    .ct-seo-content p {
        font-size: 0.95rem;
    }
}
.ct-hero-index {
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(255,255,255,0.14), transparent 60%),
        radial-gradient(800px 380px at 0% 110%, rgba(0,0,0,0.12), transparent 60%),
        linear-gradient(135deg, var(--primary-color, #336AEA), #1a3fb0 55%, #14307f);
    padding: 60px 0 70px;
}

.ct-hero-index h1 {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.ct-hero-index p {
    margin-bottom: 30px;
}

.ct-hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}

.ct-hero-badge i {
    margin-right: 6px;
    color: #ffd76a;
}

.ct-hero-search {
    position: relative;
    max-width: 640px;
    margin: 0 auto 26px;
}

.ct-hero-search > i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b93a5;
    font-size: 1rem;
}

.ct-hero-search input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    color: #222429;
    box-shadow: 0 12px 34px rgba(10, 22, 60, 0.28);
    outline: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ct-hero-search input:focus {
    box-shadow: 0 16px 42px rgba(10, 22, 60, 0.36);
    transform: translateY(-1px);
}

.ct-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ct-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.ct-chip span {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.76rem;
}

.ct-chip:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.ct-chip.active {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color, #336AEA);
}

.ct-chip.active span {
    background: rgba(51, 106, 234, 0.14);
    color: var(--primary-color, #336AEA);
}

.ct-cat-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b93a5;
    margin-left: 4px;
}

.ct-empty-state {
    text-align: center;
    padding: 70px 20px;
    color: #6a6f78;
}

.ct-empty-state i {
    font-size: 2.6rem;
    color: var(--primary-color, #336AEA);
    margin-bottom: 16px;
}

.ct-empty-state h3 {
    margin-bottom: 8px;
    color: #222429;
}

.ct-empty-state p {
    margin-bottom: 20px;
}

/* Content area below the hero */
@media (max-width: 991px) {
    .ct-hero-index h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .ct-hero-index {
        padding: 44px 0 52px;
    }

    .ct-hero-index h1 {
        font-size: 1.7rem;
    }

    .ct-hero-search input {
        padding: 15px 18px 15px 48px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   SEO Content Section
   ========================================================================== */
.ct-seo-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    line-height: 1.8;
    color: #333;
}

.ct-seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222429;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #336AEA);
}

.ct-seo-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #444;
}

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

.ct-seo-content strong {
    color: #222429;
}

.ct-seo-content a {
    color: var(--primary-color, #336AEA);
    text-decoration: none;
    font-weight: 600;
}

.ct-seo-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .ct-seo-content {
        padding: 24px 20px;
        margin: 24px 0;
    }
    
    .ct-seo-content h2 {
        font-size: 1.25rem;
    }
    
    .ct-seo-content p {
        font-size: 0.95rem;
    }
}

