/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Blocksy Child Theme
 Author:       CreativeThemes
 Author URI:   https://creativethemes.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

:root {
  --c-primary: #ff7a3d;
  --c-primary-dark: #e66a32;
  --c-bg: #ffffff;
  --c-fg: #2e2e2e;
  --c-muted: #f5f5f5;
  --c-muted-fg: #737373;
  --c-border: #ebebeb;
}

/* Base resets for the custom elements */
.cpg-grid {
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Latest Style */
.cpg-latest { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cpg-article { display: flex; flex-direction: column; }
.cpg-img-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-muted); }
.cpg-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cpg-title { margin-top: 1.25rem; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.cpg-excerpt { margin-top: 0.5rem; font-size: 0.875rem; color: var(--c-muted-fg); line-height: 1.6; }
.cpg-read-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 500; color: var(--c-primary); text-decoration: none; }
.cpg-read-more:hover { text-decoration: underline; }

/* Popular Style */
.cpg-popular { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cpg-popular-item { margin: 0; }
.cpg-popular-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.cpg-popular-img { width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border-radius: 6px; border: 1px solid var(--c-border); background: var(--c-bg); }
.cpg-popular-img img { width: 100%; height: 100%; object-fit: cover; }
.cpg-popular-text { display: flex; flex-direction: column; }
.cpg-popular-num { font-size: 0.75rem; font-weight: 500; color: var(--c-primary); }
.cpg-popular-title { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.cpg-popular-link:hover .cpg-popular-title { color: var(--c-primary); }

/* Products Style */
.cpg-products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.cpg-product { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-bg); }
.cpg-product-img { aspect-ratio: 1/1; overflow: hidden; background: var(--c-muted); }
.cpg-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cpg-product-content { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.cpg-product-title { font-size: 1rem; font-weight: 600; margin: 0; }
.cpg-product-excerpt { margin-top: 0.25rem; flex: 1; font-size: 0.875rem; color: var(--c-muted-fg); }
.cpg-product-btn { margin-top: 1rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--c-primary); color: #fff; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.cpg-product-btn:hover { background: var(--c-primary-dark); }

/* Utility classes for Gutenberg blocks to match design */
.hk-section { border-bottom: 1px solid var(--c-border); padding: 4rem 1rem; }
.hk-section-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.hk-section-subtitle { font-size: 0.875rem; color: var(--c-muted-fg); margin-bottom: 2.5rem; }
@media (min-width: 768px) {
  .hk-section { padding: 5rem 1.5rem; }
  .hk-section-title { font-size: 1.875rem; }
}

/* Category Card */
.hk-cat-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-bg); text-decoration: none; color: inherit; transition: border-color 0.2s; }
.hk-cat-card:hover { border-color: var(--c-primary); }
.hk-cat-img { aspect-ratio: 4/3; overflow: hidden; background: var(--c-muted); }
.hk-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.hk-cat-content { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.hk-cat-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.hk-cat-desc { margin-top: 0.5rem; flex: 1; font-size: 0.875rem; color: var(--c-muted-fg); }
.hk-cat-explore { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; font-weight: 500; color: var(--c-primary); }

/* Hero */
.hk-hero { padding: 4rem 1rem; }
.hk-hero-title { font-size: 2.25rem; font-weight: 600; line-height: 1.2; margin-bottom: 1.25rem; }
.hk-hero-desc { font-size: 1rem; color: var(--c-muted-fg); line-height: 1.6; margin-bottom: 2rem; max-width: 36rem; }
.hk-hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hk-btn-primary { display: inline-flex; justify-content: center; align-items: center; border-radius: 6px; background: var(--c-primary); color: #fff; padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.hk-btn-primary:hover { background: var(--c-primary-dark); }
.hk-btn-outline { display: inline-flex; justify-content: center; align-items: center; border-radius: 6px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-fg); padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.hk-btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

@media (min-width: 768px) {
  .hk-hero-title { font-size: 3rem; }
  .hk-hero-desc { font-size: 1.125rem; }
}

/* Forminator Specific Overrides to Match Brand */
#forminator-module-301 .forminator-button-submit {
    background: var(--c-primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
    border: none !important;
    box-shadow: none !important;
    height: 2.75rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#forminator-module-301 .forminator-button-submit:hover {
    background: var(--c-primary-dark) !important;
}
#forminator-module-301 .forminator-row {
    margin-bottom: 0 !important;
}
#forminator-module-301 .forminator-field-email {
    margin-bottom: 0 !important;
}
#forminator-module-301 .forminator-input {
    border-radius: 6px !important;
    border: 1px solid var(--c-border) !important;
    height: 2.75rem !important;
    padding: 0 1rem !important;
}
/* Make the form inline on desktop to match design */
@media (min-width: 768px) {
    #forminator-module-301 {
        display: flex !important;
        gap: 0.75rem !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }
    #forminator-module-301 .forminator-row {
        flex: 1 !important;
    }
}
