/* Shared modern layout — SEO articles, contact, reviews, tools, admin, 404 */

.hk-content-hero {
    text-align: left;
}
.hk-content-hero h1 {
    max-width: 920px;
}
.hk-content-hero p {
    max-width: 760px;
    text-align: left;
    margin-left: 0;
}
.hk-content-hero .hk-projects-stats {
    justify-content: flex-start;
}
.hk-content-hero .hk-projects-hero-actions {
    justify-content: flex-start;
}

.hk-content-section {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #EEF3F7 0%, var(--bg) 220px);
}

.hk-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.hk-content-main {
    min-width: 0;
}

.hk-content-card {
    background: var(--white);
    border: 1px solid rgba(232, 237, 242, 0.95);
    border-radius: 20px;
    padding: 32px 34px;
    margin-bottom: 24px;
    box-shadow: 0 10px 36px rgba(40, 73, 103, 0.06);
}
.hk-content-card:last-child {
    margin-bottom: 0;
}

.hk-content-main .seo-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 24px;
}
.hk-content-main .seo-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}
.hk-content-main .seo-content-body h2,
.hk-content-main .seo-content-body h3 {
    color: var(--secondary);
    margin-top: 28px;
    margin-bottom: 12px;
}
.hk-content-main .seo-content-body p {
    margin-bottom: 16px;
}
.hk-content-main .seo-content-body ul,
.hk-content-main .seo-content-body ol {
    margin-bottom: 18px;
    padding-left: 22px;
}
.hk-content-main .seo-content-body li {
    margin-bottom: 8px;
}

.hk-content-faq {
    max-width: none;
    margin: 0 0 24px;
}
.hk-content-faq h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 18px;
    color: var(--secondary);
}

.hk-content-sidebar {
    position: sticky;
    top: calc(var(--header-h, 72px) + 16px);
}
.hk-content-sidebar-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px 22px;
    margin-bottom: 18px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 8px 28px rgba(40, 73, 103, 0.06);
}
.hk-content-sidebar-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--secondary);
}
.hk-content-sidebar-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.hk-content-sidebar-card .hk-btn {
    margin-bottom: 10px;
}
.hk-content-sidebar-card .hk-btn:last-child {
    margin-bottom: 0;
}

.hk-content-related {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hk-content-related li {
    margin-bottom: 8px;
}
.hk-content-related a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, padding-left 0.2s;
}
.hk-content-related a:hover {
    background: rgba(47, 128, 148, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 14px;
    text-decoration: none;
}

.hk-content-cta {
    background: linear-gradient(315deg, #08131F 0%, #10243B 38%, #284967 72%, #2F8094 100%);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hk-content-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 520px 320px at 88% 20%, rgba(242, 201, 76, 0.12), transparent 70%);
    pointer-events: none;
}
.hk-content-cta .container {
    position: relative;
    z-index: 1;
}
.hk-content-cta h2 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: clamp(22px, 4vw, 32px);
}
.hk-content-cta p {
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.hk-content-cta .hk-btn {
    margin: 6px 8px;
}

/* Contact page */
.hk-contact-page .hk-contact-section {
    padding: 0 0 72px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.hk-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.hk-contact-info-card {
    background: linear-gradient(145deg, #10243B 0%, #284967 55%, #2F8094 100%);
    color: var(--white);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: 0 20px 56px rgba(40, 73, 103, 0.18);
    position: relative;
    overflow: hidden;
}
.hk-contact-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 380px 240px at 100% 0%, rgba(242, 201, 76, 0.14), transparent 70%);
    pointer-events: none;
}
.hk-contact-info-card > * {
    position: relative;
    z-index: 1;
}
.hk-contact-info-card h2 {
    color: var(--white);
    font-size: 22px;
    margin: 0 0 16px;
}
.hk-contact-hours {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hk-contact-hours strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
}
.hk-contact-form-card {
    background: var(--white);
    border-radius: 22px;
    padding: 32px 30px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 16px 48px rgba(40, 73, 103, 0.1);
}
.hk-contact-form-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: var(--secondary);
}
.hk-contact-form-card > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}
.hk-contact-field {
    margin-bottom: 18px;
}
.hk-contact-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}
.hk-contact-field .form-control {
    height: 50px;
    border-radius: 12px;
    border-color: rgba(232, 237, 242, 0.95);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hk-contact-field textarea.form-control {
    height: auto;
    min-height: 140px;
    resize: vertical;
}
.hk-contact-field .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 128, 148, 0.12);
}
.hk-contact-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.hk-contact-alert--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
}
.hk-contact-alert--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}
.hk-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.hk-contact-map-section {
    padding-top: 0;
}
.hk-contact-map-section .hk-section-head {
    margin-bottom: 24px;
}
.hk-contact-map-section .hk-section-head h2 {
    margin-bottom: 8px;
}
.hk-contact-map-section .hk-contact-map {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(40, 73, 103, 0.08);
}

/* Reviews page */
.hk-reviews-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.hk-reviews-stat {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 8px 28px rgba(40, 73, 103, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.hk-reviews-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(40, 73, 103, 0.1);
}
.hk-reviews-stat strong {
    display: block;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}
.hk-reviews-stat .hk-reviews-stars {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 16px;
}
.hk-reviews-stat span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}
.hk-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.hk-review-card {
    background: var(--white);
    border-radius: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 8px 28px rgba(40, 73, 103, 0.06);
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.hk-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(40, 73, 103, 0.12);
}
.hk-review-card .stars {
    color: var(--gold);
    margin-bottom: 14px;
    font-size: 15px;
}
.hk-review-card .review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 16px;
    font-style: italic;
}
.hk-review-card .review-author {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}
.hk-reviews-bottom {
    text-align: center;
    margin-top: 40px;
}
.hk-reviews-bottom p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hk-reviews-bottom .hk-btn {
    margin: 6px 8px;
}

/* 404 page */
.hk-404-section {
    padding: 48px 0 80px;
}
.hk-404-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    padding: 48px 36px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 16px 48px rgba(40, 73, 103, 0.1);
}
.hk-404-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 128, 148, 0.1);
    color: var(--primary);
    font-size: 36px;
}
.hk-404-card h2 {
    margin-bottom: 12px;
    color: var(--secondary);
}
.hk-404-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.65;
}
.hk-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.hk-404-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(232, 237, 242, 0.95);
}
.hk-404-links a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #F0F4F8;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.hk-404-links a:hover {
    background: rgba(47, 128, 148, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Tools pages (legacy renderToolPage + index) */
.hk-tools-page .hk-tool-content-section {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #EEF3F7 0%, var(--bg) 220px);
}
.hk-tools-index-section {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #EEF3F7 0%, var(--bg) 180px);
}
.hk-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}
.hk-tool-block {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 30px;
    margin-bottom: 22px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 8px 32px rgba(40, 73, 103, 0.05);
}
.hk-tool-block h2 {
    font-size: clamp(18px, 2.5vw, 22px);
    margin: 0 0 16px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hk-tool-block h2 i {
    color: var(--primary);
}
.hk-tool-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.hk-tool-formula {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid var(--gold);
    line-height: 1.7;
}
.hk-tool-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.hk-tool-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.55;
}
.hk-tool-benefits i {
    color: var(--primary);
    margin-top: 3px;
}
.hk-tools-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.hk-tool-related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    background: #F8FAFC;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hk-tool-related-card:hover {
    background: rgba(47, 128, 148, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none;
}
.hk-tool-related-card i {
    color: var(--primary);
    font-size: 18px;
}
.hk-tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hk-tool-sidebar-modern {
    position: sticky;
    top: calc(var(--header-h, 72px) + 16px);
    background: var(--white);
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    box-shadow: 0 8px 28px rgba(40, 73, 103, 0.06);
}
.hk-tool-sidebar-modern h4 {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--secondary);
}
.hk-tool-sidebar-modern ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hk-tool-sidebar-modern li {
    margin-bottom: 6px;
}
.hk-tool-sidebar-modern a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.hk-tool-sidebar-modern a:hover,
.hk-tool-sidebar-modern a.active {
    background: rgba(47, 128, 148, 0.1);
    color: var(--primary);
    text-decoration: none;
}
.hk-tools-grid-full {
    margin-bottom: 0;
}
.hk-tools-index-section .hk-tool-card {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(40, 73, 103, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.hk-tools-index-section .hk-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(40, 73, 103, 0.12);
}

/* Admin dashboard pages */
.hk-admin-dashboard-page .hk-admin-dashboard-section {
    padding: 0 0 72px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.hk-admin-dashboard-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.hk-admin-dashboard-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}
.hk-admin-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(232, 237, 242, 0.95);
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.hk-admin-logout-link:hover {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #B91C1C;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hk-content-layout,
    .hk-contact-grid,
    .hk-tool-layout {
        grid-template-columns: 1fr;
    }
    .hk-content-sidebar,
    .hk-tool-sidebar-modern {
        position: static;
    }
    .hk-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hk-reviews-stats {
        grid-template-columns: 1fr;
    }
    .hk-contact-page .hk-contact-section,
    .hk-admin-dashboard-page .hk-admin-dashboard-section {
        margin-top: -24px;
    }
}

@media (max-width: 767px) {
    .hk-content-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .hk-reviews-grid {
        grid-template-columns: 1fr;
    }
    .hk-tools-related {
        grid-template-columns: 1fr;
    }
    .hk-content-cta {
        padding: 48px 0;
    }
    .hk-content-cta .hk-btn,
    .hk-reviews-bottom .hk-btn,
    .hk-contact-actions .hk-btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 8px auto;
    }
    .hk-content-hero .hk-projects-hero-actions .hk-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
