/*
Theme Name: Cohorted
Theme URI: https://cohorted.co
Author: Cohorted Team
Author URI: https://cohorted.co
Description: Custom theme for Cohorted website - AI-Enabled Growth Consultancy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cohorted
Tags: custom, responsive, modern, business
*/

/* Import Satoshi Font */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@1,900,700,500,301,701,300,501,401,901,400,2&display=swap');

/* CSS Variables - Cohorted.co Color Palette */
:root {
    /* Updated: animation timings aligned to cohorted.co */
    --color-primary: rgb(90, 231, 217);
    --color-primary-light: rgba(90, 231, 217, 0.2);
    --color-primary-bg: rgba(91, 232, 214, 0.1);
    --color-text: rgb(26, 26, 26);
    --color-text-gray: rgb(89, 89, 89);
    --color-bg: rgb(240, 243, 244);
    --color-bg-light: rgb(240, 243, 244);
    --color-bg-lighter: rgb(238, 241, 242);
    --color-white: rgb(255, 255, 255);
    --color-black: rgb(0, 0, 0);
    --color-border: rgba(0, 0, 0, 0.1);
    --font-primary: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 6px;
    --header-height: 65px;

    /* Animation timing to match cohorted.co */
    --ease-out-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.15s;
    --dur-slow: 0.5s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--color-text);
    background-color: rgb(240, 243, 244);
    font-size: 18px;
    letter-spacing: -0.18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(240, 243, 244, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--dur-fast) var(--ease-out-standard);
}

.site-header.scrolled {
    background: rgba(240, 243, 244, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Custom Logo (WP Site Identity) */
.site-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-logo img.custom-logo {
    height: 32px; /* matches cohorted.co brand size */
    width: auto;
    display: block;
}

/* Fallback icon if no Custom Logo is set (uses WP Site Icon) */
.site-logo .site-icon-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-logo img.site-icon-img {
    height: 32px;
    width: 32px;
    display: block;
}

/* If the logo is used, keep alignment consistent with tagline-less brand */
/* Avoid :has() for broader browser support */

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out-standard);
}

.site-title a:hover {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.875rem;
    color: var(--color-text-gray);
    margin: 0;
    line-height: 1.2;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out-standard);
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Primary-menu CTA button styling:
   - Prefer CMS control: make the last Primary Menu item look like the button.
   - Also support an explicit class for edge cases. */
.main-navigation #primary-menu > li:last-child > a,
.nav-contact-button {
    background: var(--color-primary);
    color: var(--color-text);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.main-navigation #primary-menu > li:last-child > a:hover,
.nav-contact-button:hover {
    background: rgba(90, 231, 217, 0.8);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* Modal (used for HubSpot contact form) */
body.cohorted-modal-open {
    overflow: hidden;
}

.cohorted-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.cohorted-modal-overlay.is-open {
    display: flex;
}

.cohorted-modal-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.cohorted-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(240, 243, 244, 0.8);
    color: var(--color-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast) var(--ease-out-standard);
}

.cohorted-modal-close:hover {
    background: rgba(240, 243, 244, 1);
    transform: translateY(-1px);
}

.cohorted-modal-body {
    padding-top: 12px;
}

.cohorted-hubspot-form-container {
    min-height: 120px;
}

/* Main Content */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    min-height: calc(100vh - 300px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1rem;
    letter-spacing: -0.18px;
}

h1 {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

/* Responsive Typography for Headings */
@media (max-width: 1400px) {
    h1 {
        font-size: 80px;
        line-height: 80px;
    }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 72px;
        line-height: 72px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 64px;
        line-height: 64px;
    }
    
    h2 {
        font-size: 42px;
        line-height: 42px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 48px;
        line-height: 48px;
    }
    
    h2 {
        font-size: 36px;
        line-height: 36px;
    }
    
    h3 {
        font-size: 18px;
        line-height: 28px;
    }
    
    body {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
        line-height: 36px;
    }
    
    h2 {
        font-size: 30px;
        line-height: 30px;
    }
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out-standard);
}

a:hover {
    color: var(--color-primary);
}

/* Accent Color Class */
.accent-color {
    color: var(--color-primary);
}

/* Utility classes to mirror cohorted.co (Tailwind-like) */
.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.text-muted-foreground {
    color: rgb(89, 89, 89);
}

.text-gradient-animate {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, rgb(232, 125, 125), rgb(90, 231, 217), rgb(90, 231, 217));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: text-gradient 3s ease infinite;
}

/* Prevent descenders (e.g. "g") from being clipped on the animated hero line */
.hero-heading .text-gradient-animate {
    line-height: 1.12;
    padding-bottom: 0.12em;
}

@keyframes text-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn,
button[type="submit"],
input[type="submit"] {
    background: var(--color-primary);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out-standard);
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: rgba(90, 231, 217, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 231, 217, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-white);
}

/* Footer Styles */
.site-footer {
    background: transparent; /* cohorted.co footer sits on page background */
    padding: 64px 0; /* matches cohorted.co */
    margin-top: 0;
    border-top: 1px solid rgba(227, 232, 230, 0.5);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-tagline {
    font-size: 18px;
    color: rgb(89, 89, 89);
    margin: 0;
}

/* New footer layout to match cohorted.co */
.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: rgb(26, 26, 26);
    text-transform: lowercase;
}

.footer-logo-accent {
    color: var(--color-primary);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer-line {
    font-size: 18px;
    color: rgb(89, 89, 89);
    margin: 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 0;
    }
    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
    .footer-right {
        text-align: left;
    }
}

.footer-info p {
    margin: 0.5rem 0;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Post Styles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.post-thumbnail {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail img:hover {
    transform: scale(1.02);
}

.entry-content {
    margin-top: 1.5rem;
    line-height: 1.8;
}

.entry-content > * + * {
    margin-top: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-bg);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: all var(--dur-fast) var(--ease-out-standard);
}

.tags-links a:hover {
    background: var(--color-primary);
}

article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

article:last-child {
    border-bottom: none;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    flex: 1;
    padding: 1rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: var(--color-primary-bg);
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

/* Pagination */
.pagination,
.posts-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers,
.posts-pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.posts-pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-text);
}

/* Sidebar */
.widget-area {
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }

    .site-content {
        padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   HOMEPAGE TEAM AREA (Who We Are)
   Matches cohorted.co section #team
   ============================================ */

.homepage-team-area {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: rgb(241, 244, 245);
}

.homepage-team-bg {
    position: absolute;
    inset: 0;
    background: rgb(241, 244, 245);
    z-index: 0;
}

.homepage-team-blob {
    position: absolute;
    top: 0;
    right: 25%;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    filter: blur(60px);
    background: rgba(232, 125, 125, 0.10);
    z-index: 0;
    animation: floatBlob 20s ease-in-out infinite;
}

.homepage-team-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}

/* Header widgets span full width */
.homepage-team-wrapper .widget_text,
.homepage-team-wrapper .widget_block,
.homepage-team-wrapper .widget_custom_html {
    grid-column: 1 / -1 !important;
    text-align: center;
}

/* Team cards occupy columns */
.homepage-team-wrapper .cohorted-team-member-card-widget {
    grid-column: span 1;
}

/* Responsive grid: 2 cols on small screens, 1 on mobile */
@media (max-width: 1024px) {
    .homepage-team-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .homepage-team-area {
        padding: 6rem 0;
    }
    .homepage-team-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}

/* Team Member Card styles */
.team-member-card {
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(232, 125, 125, 0.10); /* border-coral/10 */
    background: rgb(238, 241, 242);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    height: 100%;
}

.team-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 125, 125, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out-standard);
    pointer-events: none;
}

.team-member-card:hover .team-card-hover-overlay {
    opacity: 1;
}

.team-card-inner {
    position: relative;
    padding: 24px; /* p-6 */
    text-align: center;
}

.team-avatar-wrap {
    margin-bottom: 16px;
    position: relative;
}

.team-avatar-outer {
    width: 96px; /* w-24 */
    height: 96px;
    margin: 0 auto;
    border-radius: 9999px;
    overflow: hidden;
    padding: 2px; /* p-0.5 */
    background: linear-gradient(135deg, rgba(232, 125, 125, 0.20), rgba(232, 125, 125, 0.10));
}

.team-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    overflow: hidden;
    background: rgb(241, 244, 245);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: rgb(232, 125, 125);
}

.team-linkedin {
    position: absolute;
    bottom: 0;
    right: 33%;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: rgb(0, 119, 181); /* #0077B5 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out-standard);
}

.team-member-card:hover .team-linkedin {
    opacity: 1;
}

.team-linkedin-icon {
    width: 16px;
    height: 16px;
    color: #fff;
}

.team-name {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 4px 0;
    transition: color var(--dur-fast) var(--ease-out-standard);
    color: rgb(26, 26, 26);
}

.team-member-card:hover .team-name {
    color: rgb(232, 125, 125);
}

.team-title {
    font-size: 16px;
    margin: 0;
    color: rgb(89, 89, 89);
}

/* ============================================
   HOMEPAGE TRUST AREA (Trusted by Industry Leaders)
   Matches cohorted.co section #results
   ============================================ */

.homepage-trust-area {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: rgb(232, 237, 238); /* #E8EDEE */
}

.homepage-trust-bg {
    position: absolute;
    inset: 0;
    background: rgb(232, 237, 238);
    z-index: 0;
}

.homepage-trust-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    column-gap: 2rem;
    row-gap: 1.25rem; /* tighter so Heading/Paragraph widgets don't look separated */
    grid-template-columns: repeat(4, 1fr);
}

/* Header widgets span full width */
.homepage-trust-wrapper .widget_text,
.homepage-trust-wrapper .widget_block,
.homepage-trust-wrapper .widget_custom_html {
    grid-column: 1 / -1 !important;
    text-align: center;
    margin-bottom: 0 !important;
}

/* Tighten Heading ↔ Paragraph spacing to match cohorted.co */
.homepage-trust-wrapper .widget_text h1,
.homepage-trust-wrapper .widget_text h2,
.homepage-trust-wrapper .widget_text h3,
.homepage-trust-wrapper .widget_block h1,
.homepage-trust-wrapper .widget_block h2,
.homepage-trust-wrapper .widget_block h3,
.homepage-trust-wrapper .widget_custom_html h1,
.homepage-trust-wrapper .widget_custom_html h2,
.homepage-trust-wrapper .widget_custom_html h3 {
    margin-top: 0 !important;
    margin-bottom: 16px !important; /* mb-4 */
}

.homepage-trust-wrapper .widget_text p,
.homepage-trust-wrapper .widget_block p,
.homepage-trust-wrapper .widget_custom_html p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* If Heading + Paragraph are separate widgets, reduce the perceived gap between them */
.homepage-trust-wrapper > .widget_text + .widget_text,
.homepage-trust-wrapper > .widget_block + .widget_block,
.homepage-trust-wrapper > .widget_custom_html + .widget_custom_html,
.homepage-trust-wrapper > .widget_text + .widget_block,
.homepage-trust-wrapper > .widget_block + .widget_text,
.homepage-trust-wrapper > .widget_text + .widget_custom_html,
.homepage-trust-wrapper > .widget_custom_html + .widget_text,
.homepage-trust-wrapper > .widget_block + .widget_custom_html,
.homepage-trust-wrapper > .widget_custom_html + .widget_block {
    margin-top: -0.5rem;
}

@media (min-width: 640px) {
    .homepage-trust-wrapper {
        row-gap: 1.5rem;
    }
    .homepage-trust-wrapper .widget_text h1,
    .homepage-trust-wrapper .widget_text h2,
    .homepage-trust-wrapper .widget_text h3,
    .homepage-trust-wrapper .widget_block h1,
    .homepage-trust-wrapper .widget_block h2,
    .homepage-trust-wrapper .widget_block h3,
    .homepage-trust-wrapper .widget_custom_html h1,
    .homepage-trust-wrapper .widget_custom_html h2,
    .homepage-trust-wrapper .widget_custom_html h3 {
        margin-bottom: 24px !important; /* mb-6 on sm+ */
    }
}

/* Company cards occupy columns */
.homepage-trust-wrapper .cohorted-company-card-widget {
    grid-column: span 1;
}

/* CTA spans full width (and should come last) */
.homepage-trust-wrapper .cohorted-cta-widget {
    grid-column: 1 / -1 !important;
}

@media (max-width: 1024px) {
    .homepage-trust-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .homepage-trust-area {
        padding: 6rem 0;
    }
    .homepage-trust-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.25rem;
    }
}

/* Company Card styling */
.company-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.company-card {
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(205, 170, 85, 0.10); /* gold/10 */
    background: rgb(238, 241, 242);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    height: 100%;
    min-height: 200px;
}

.company-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(205, 170, 85, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out-standard);
    pointer-events: none;
}

.company-card:hover .company-card-hover-overlay {
    opacity: 1;
}

.company-card-inner {
    position: relative;
    padding: 24px; /* p-6 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.company-logo {
    margin-bottom: 16px;
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-img {
    max-height: 64px;
    max-width: 120px;
    object-fit: contain;
    filter: none;
    transition: filter var(--dur-fast) var(--ease-out-standard), transform var(--dur-fast) var(--ease-out-standard);
}

.company-card:hover .company-logo-img {
    filter: brightness(1.10);
}

.company-logo-placeholder {
    width: 120px;
    height: 64px;
    border-radius: 8px;
    background: rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26,26,26,0.6);
    font-weight: 700;
}

.company-name {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px 0;
    transition: color var(--dur-fast) var(--ease-out-standard);
    min-height: 1.2em; /* reserve space when name omitted */
}

.company-card:hover .company-name {
    color: rgb(205, 170, 85);
}

.company-industry {
    font-size: 16px;
    margin: 0;
    color: rgb(89, 89, 89);
}

/* CTA Block styling */
.cta-block {
    position: relative;
    border-radius: 24px; /* rounded-3xl */
    overflow: hidden;
    border: 0;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); /* matches cohorted.co */
}

.cta-theme-black {
    background: #000;
    color: #fff;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 0;
}

.cta-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.cta-blob {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    filter: blur(64px); /* blur-3xl */
    opacity: 1;
    /* no animation: keep blobs fixed for pixel-match */
}

.cta-blob-secondary {
    left: 0;
    top: 0;
    background: rgba(90, 231, 217, 0.20); /* cohorted computed */
    transform: translateX(63.2252px) translateY(-31.6126px);
}

.cta-blob-coral {
    right: 0;
    top: 0;
    background: rgba(232, 125, 125, 0.20);
    transform: translateX(-95.2942px) translateY(47.6471px);
}

.cta-inner {
    position: relative;
    padding: 32px; /* p-8 */
    text-align: center;
    z-index: 1;
}

.cta-title {
    font-size: 30px;   /* text-3xl */
    line-height: 36px; /* text-3xl leading */
    font-weight: 900;  /* font-black */
    margin: 0 0 16px 0; /* mb-4 */
    opacity: 1 !important;
}

.cta-body {
    font-size: 20px;  /* text-xl */
    line-height: 28px; /* computed */
    margin: 0 auto 32px auto; /* mb-8 */
    max-width: 768px;
    opacity: 1 !important;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 24px; /* px-6 py-4 */
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cta-btn-primary {
    background: rgb(91, 232, 214);
    color: #000;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1), 0px 4px 6px -4px rgba(0,0,0,0.1); /* shadow-lg */
}

.cta-btn-primary:hover {
    background: rgb(77, 197, 181);
    transform: scale(1.05); /* scale-105 */
    box-shadow: 0px 20px 25px -5px rgba(0,0,0,0.1), 0px 8px 10px -6px rgba(0,0,0,0.1); /* shadow-xl */
}

.cta-btn-secondary {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.cta-btn-secondary:hover {
    background: #fff;
    color: #000;
}

.cta-btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        gap: 24px;
    }

    .cta-inner {
        padding: 48px; /* sm:p-12 */
    }

    .cta-title {
        margin-bottom: 24px; /* sm:mb-6 */
    }

    .cta-body {
        margin-bottom: 48px; /* sm:mb-12 */
    }

    .cta-btn {
        padding: 24px 32px; /* sm:px-8 sm:py-6 */
    }

    .cta-btn-icon {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }
}

@media (min-width: 768px) {
    .cta-inner {
        padding: 64px; /* md:p-16 */
    }
    .cta-title {
        font-size: 36px;   /* md:text-4xl */
        line-height: 40px; /* md:text-4xl leading */
    }
}

/* Force white text inside black CTA even if global styles try to override */
.cta-theme-black .cta-title,
.cta-theme-black .cta-body,
.cta-theme-black .cta-btn-secondary {
    color: #fff !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }
}

/* ============================================
   HOMEPAGE HERO WIDGET STYLES
   ============================================ */

/* Hero Section - Full Screen */
.homepage-hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: rgb(240, 243, 244);
    overflow: hidden;
    padding: 0;
    padding-top: var(--header-height);
}

/* Background Base Layer */
.hero-bg-base {
    position: absolute;
    inset: 0;
    background-color: rgb(240, 243, 244);
    z-index: 0;
}

/* Grid Background with Fade Mask */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 4rem 4rem;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    z-index: 0;
}

/* Floating Animated Blob */
.hero-bg-blob {
    position: absolute;
    top: 5rem;
    left: 5rem;
    width: 24rem;
    height: 24rem;
    background: rgba(91, 232, 214, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatBlob 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(-20px, -40px);
    }
    75% {
        transform: translate(40px, -20px);
    }
}

/* Noise Overlay Effect */
.noise-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Hero Container */
.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 4rem;
}

/* Hero Content */
.hero-content {
    max-width: 1000px;
    text-align: left;
    padding: 4rem 0;
}

/* Hero Heading */
.hero-heading {
    font-size: 96px;
    font-weight: 900;
    line-height: 1.06;
    padding-bottom: 0.04em; /* prevent glyph clipping on tight line-heights */
    margin-bottom: 2rem;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.hero-heading .accent-text {
    color: var(--color-primary);
    display: inline-block;
}

/* Animated Heading - appears on new line with animation */
.hero-heading-animated {
    display: block;
    color: var(--color-primary);
    animation: colorShift 8s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% {
        color: rgb(90, 231, 217);
    }
    25% {
        color: rgb(101, 139, 126);
    }
    50% {
        color: rgb(232, 125, 125);
    }
    75% {
        color: rgb(101, 139, 126);
    }
}

/* cohorted.co hero text helpers (used by `widget-homepage-hero.php`) */
@media (max-width: 1400px) {
    .hero-heading {
        font-size: 80px;
        line-height: 1.06;
    }
}

@media (max-width: 1200px) {
    .hero-heading {
        font-size: 72px;
        line-height: 1.06;
    }
}

/* Hero Subheading */
.hero-subheading {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 3rem;
    max-width: 750px;
    font-weight: 400;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero Primary Button */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 32px;
    background: rgb(91, 232, 214);
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-out-standard);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    box-shadow: 0 4px 14px rgba(91, 232, 214, 0.4);
}

.hero-btn-primary:hover {
    background: rgb(77, 197, 181);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(91, 232, 214, 0.5);
    color: rgb(0, 0, 0);
}

.hero-btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform var(--dur-fast) var(--ease-out-standard);
    margin-left: 4px;
}

.hero-btn-primary:hover svg {
    transform: translate(3px, -3px);
}

/* Hero Secondary Button */
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 32px;
    background: transparent;
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-out-standard);
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-family: var(--font-primary);
}

.hero-btn-secondary:hover {
    background: rgba(91, 232, 214, 0.1);
    border-color: rgb(91, 232, 214);
    transform: translateY(-1px);
    color: rgb(0, 0, 0);
}

/* Widget Wrapper Adjustments */
.cohorted-homepage-hero-widget {
    margin: 0;
    padding: 0;
}

.widget-area .cohorted-homepage-hero-widget {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Homepage Hero Widget Area */
.homepage-hero-area {
    margin: 0;
    padding: 0;
}

#homepage-hero {
    margin: 0;
    padding: 0;
}

#homepage-hero .widget {
    margin: 0;
    padding: 0;
}

/* Adjust main content when hero is present */
body.home .site-content {
    padding-top: 0;
}

body.page-template-default .homepage-hero-area + .site-content {
    padding-top: 2rem;
}

/* ============================================
   HOMEPAGE EXPLANATION AREA - Two Column Grid
   ============================================ */

.homepage-explanation-area {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.homepage-explanation-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    align-items: start;
}

/* Ensure widget wrappers participate in grid */
.homepage-explanation-grid > .widget {
    min-width: 0 !important; /* Prevent grid blowout */
    grid-column: span 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Remove default widget margins that might interfere */
.homepage-explanation-grid .widget {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    display: block;
}

/* Ensure explanation widgets take full width of their grid cell */
.homepage-explanation-grid .cohorted-explanation-widget {
    width: 100% !important;
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Ensure both theme sections behave identically */
.homepage-explanation-grid .explanation-theme-white,
.homepage-explanation-grid .explanation-theme-black {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* ============================================
   HOMEPAGE HOW CONTENT AREA - Cards Section
   ============================================ */

.homepage-how-content-area {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background-color: rgb(232, 237, 238);
}

/* Section Gradient Mesh Background */
.section-gradient-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 232, 214, 0.15), transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(232, 125, 125, 0.1), transparent 70%);
    z-index: 0;
}

.homepage-how-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

/* Text/Paragraph widgets span full width */
.homepage-how-content-wrapper .widget_text,
.homepage-how-content-wrapper .widget_block,
.homepage-how-content-wrapper .widget_custom_html {
    grid-column: 1 / -1 !important;
    text-align: center;
    margin-bottom: 0 !important;
}

/* Add spacing after header widgets */
.homepage-how-content-wrapper .widget_text + .cohorted-card-icon-widget,
.homepage-how-content-wrapper .widget_block + .cohorted-card-icon-widget,
.homepage-how-content-wrapper .widget_custom_html + .cohorted-card-icon-widget {
    margin-top: 1rem;
}

/* Card widgets use grid columns */
.homepage-how-content-wrapper .cohorted-card-icon-widget {
    grid-column: span 1;
}

/* Inline Images w. Title should span full width like section headers / CTA bands */
.homepage-how-content-wrapper .cohorted-inline-images-title-widget {
    grid-column: 1 / -1 !important;
    width: 100%;
}

/* How Content cards: match Services hover style (overlay fade-in on hover) */
.homepage-how-content-area .card-with-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 232, 214, 0.10), transparent 55%, rgba(91, 232, 214, 0.05));
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.homepage-how-content-area .card-with-icon:hover::after {
    opacity: 1;
}

/* Optional accent-driven overlay colors (same as Services section) */
.homepage-how-content-area .card-with-icon[data-accent="purple"]::after {
    background: linear-gradient(135deg, rgba(160, 81, 255, 0.10), transparent 55%, rgba(160, 81, 255, 0.05));
}
.homepage-how-content-area .card-with-icon[data-accent="blue"]::after {
    background: linear-gradient(135deg, rgba(51, 156, 255, 0.10), transparent 55%, rgba(51, 156, 255, 0.05));
}
.homepage-how-content-area .card-with-icon[data-accent="teal"]::after {
    background: linear-gradient(135deg, rgba(91, 232, 214, 0.10), transparent 55%, rgba(91, 232, 214, 0.05));
}

/* ---- COHORTED.CO MATCH: tighten H2 ↔ P spacing inside the How section ---- */
/* If Heading and Paragraph are separate widgets, the grid gap becomes the spacing.
   Force tight spacing between consecutive header widgets in this section. */
.homepage-how-content-wrapper {
    row-gap: 1rem; /* tighter than default 2rem for header rows */
}

.homepage-how-content-wrapper .widget_text h1,
.homepage-how-content-wrapper .widget_text h2,
.homepage-how-content-wrapper .widget_text h3,
.homepage-how-content-wrapper .widget_block h1,
.homepage-how-content-wrapper .widget_block h2,
.homepage-how-content-wrapper .widget_block h3,
.homepage-how-content-wrapper .widget_custom_html h1,
.homepage-how-content-wrapper .widget_custom_html h2,
.homepage-how-content-wrapper .widget_custom_html h3 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.homepage-how-content-wrapper .widget_text p,
.homepage-how-content-wrapper .widget_block p,
.homepage-how-content-wrapper .widget_custom_html p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure some separation between header area and the first card, regardless of widget ordering */
.homepage-how-content-wrapper .cohorted-card-icon-widget:first-of-type {
    margin-top: 1.5rem;
}

/* When there's only 1 card, span full width */
.homepage-how-content-wrapper .cohorted-card-icon-widget:only-of-type {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

/* When there are exactly 2 cards */
.homepage-how-content-wrapper:has(.cohorted-card-icon-widget:nth-of-type(2):last-of-type) {
    grid-template-columns: repeat(2, 1fr);
}

.homepage-how-content-wrapper:has(.cohorted-card-icon-widget:nth-of-type(2):last-of-type) .cohorted-card-icon-widget {
    grid-column: span 1;
}

/* Tools band (code-only preview; will be replaced by a widget after approval) */
.homepage-how-content-wrapper .how-tools-band {
    grid-column: 1 / -1;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 0;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    /* Keep the widget static on hover (no lift / shadow animation). */
    transition: none;
}

.how-tools-band__bg {
    position: absolute;
    inset: 0;
    /* Matches the site's soft "pinkish-green" backdrop used across sections */
    background: rgb(232, 237, 238);
    z-index: 0;
}

.how-tools-band__blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.how-tools-band__blob {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 1;
}

.how-tools-band__blob-teal {
    left: 0;
    top: 0;
    background: rgba(90, 231, 217, 0.22);
    transform: translateX(62px) translateY(-26px);
}

.how-tools-band__blob-coral {
    right: 0;
    top: 0;
    background: rgba(232, 125, 125, 0.22);
    transform: translateX(-86px) translateY(46px);
}

.how-tools-band__inner {
    position: relative;
    z-index: 1;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
}

.homepage-how-content-wrapper .how-tools-band:hover {
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.how-tools-band__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.how-tools-band__title {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgb(26, 26, 26);
}

.how-tools-band__subtitle {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    color: rgb(89, 89, 89);
    max-width: 900px;
}

.how-tools-band__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.how-tools-band__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* No rounded white "chip" behind logos */
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Keep chips static on hover to match "no animation" requirement */
    transition: none;
}

.how-tools-band__item:hover {
    transform: none;
    background: transparent;
    border-color: transparent;
}

.how-tools-band__logo {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
}

/* Grayscale requirement for uploaded images (and SVG placeholders) */
.how-tools-band__logo img,
.how-tools-band__logo svg {
    width: auto;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    opacity: 0.95;
    border-radius: 0 !important;
    background: transparent !important;
}

.how-tools-band__icon circle {
    fill: none;
    stroke: none;
}

.how-tools-band__icon text {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.02em;
    fill: rgba(26, 26, 26, 0.75);
}

.how-tools-band__caption {
    font-size: 12px;
    line-height: 1.1;
    color: rgb(89, 89, 89);
    text-align: center;
    max-width: 86px;
}

@media (max-width: 1024px) {
    .how-tools-band__inner {
        padding: 32px 28px;
    }
    .how-tools-band__title {
        font-size: 30px;
        line-height: 36px;
    }
    .how-tools-band__items {
        gap: 20px;
    }
}

/* ============================================
   CARD WITH ICON WIDGET STYLES
   ============================================ */

/* Glass Card Base */
.card-with-icon {
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgb(238, 241, 242);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
    transition: all var(--dur-fast) var(--ease-out-standard);
}

/* 3D Hover Effect */
.card-hover-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-hover-3d:hover {
    transform: translateY(-4px) rotateX(1deg);
    box-shadow: 
        0px 10px 15px -3px rgba(0, 0, 0, 0.08),
        0px 4px 6px -4px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(91, 232, 214, 0.06);
}

/* Spotlight Effect */
.spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(91, 232, 214, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-out-standard);
    pointer-events: none;
    z-index: 1;
}

.spotlight:hover::before {
    opacity: 1;
}

/* Card Content */
.card-content {
    position: relative;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Icon Wrapper */
.card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: transparent;
    transition: all var(--dur-fast) var(--ease-out-standard);
}

.card-hover-3d:hover .card-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
}

/* Card Icon */
.card-icon {
    width: 32px;
    height: 32px;
    color: rgb(26, 26, 26);
    transition: all var(--dur-fast) var(--ease-out-standard);
}

.card-hover-3d:hover .card-icon {
    color: rgb(91, 232, 214);
}

/* Card Title */
.card-title {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 2em;
    margin-bottom: 16px;
    color: rgb(26, 26, 26);
    transition: color var(--dur-fast) var(--ease-out-standard);
}

/* If the title is an h3, normalize margin collapsing behavior */
.card-with-icon h3.card-title {
    margin-top: 0;
}

/* Force card title sizing even if block/theme styles override it */
.card-with-icon .card-title {
    font-size: 1.5em !important;
    line-height: 2em !important;
}

/* (Removed prior debug outline for How section) */

/* ============================================
   HOMEPAGE SERVICES AREA (Services Model)
   Matches cohorted.co section #our-model
   ============================================ */

.homepage-services-area {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.homepage-services-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background:
        radial-gradient(ellipse 80% 60% at 40% 10%, rgba(160, 81, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 70% 60% at 70% 60%, rgba(51, 156, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 80% 60% at 20% 90%, rgba(91, 232, 214, 0.10), transparent 60%);
    z-index: 0;
}

.homepage-services-blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
    animation: floatBlob 20s ease-in-out infinite;
}

.homepage-services-blob-purple {
    top: 2.5rem;
    left: 2.5rem;
    background: rgba(160, 81, 255, 0.20);
}

.homepage-services-blob-blue {
    bottom: 2.5rem;
    right: 2.5rem;
    background: rgba(51, 156, 255, 0.20);
    animation-delay: -6s;
}

.homepage-services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    /* 3-column card grid on desktop */
    grid-template-columns: repeat(3, 1fr);
}

/* Header/paragraph widgets span full width (not in 3-col grid) */
.homepage-services-wrapper .widget_text,
.homepage-services-wrapper .widget_block,
.homepage-services-wrapper .widget_custom_html {
    grid-column: 1 / -1 !important;
    text-align: center;
}

/* Cards occupy grid columns */
.homepage-services-wrapper .cohorted-card-icon-widget {
    grid-column: span 1;
}

/* Services card visual: darker glass w/ hover gradient overlay like cohorted.co */
.homepage-services-area .card-with-icon {
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

/* Cohorted.co: hover overlay fades in (opacity transition 0.5s) */
.homepage-services-area .card-with-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(160, 81, 255, 0.10), transparent 55%, rgba(160, 81, 255, 0.05));
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.homepage-services-area .card-with-icon:hover::after {
    opacity: 1;
}

/* Icon wrapper: purple-ish by default for this section */
/* Card inner padding: cohorted.co uses md:p-10 (40px) */
.homepage-services-area .card-content {
    padding: 40px;
}

/* Icon wrapper sizing matches cohorted.co (w-16 h-16 rounded-2xl mb-8) */
.homepage-services-area .card-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 32px;
    background: transparent;
}

/* Icons are dark (cohorted.co shows very subtle tint) */
.homepage-services-area .card-icon {
    width: 32px;
    height: 32px;
    color: rgb(26, 26, 26);
}

/* Title: cohorted.co is 30px on desktop with 36px line-height */
.homepage-services-area .card-title {
    font-size: 30px !important;
    line-height: 36px !important;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgb(26, 26, 26);
}

/* Body: 18px, gray-green */
.homepage-services-area .card-body {
    font-size: 18px;
    line-height: 29.25px; /* 1.625 */
    color: rgb(101, 139, 126);
}

/* Accent-driven visuals (optional): matches cohorted.co per-card purple/blue/teal */
.homepage-services-area .card-with-icon[data-accent="purple"]::after {
    background: linear-gradient(135deg, rgba(160, 81, 255, 0.10), transparent 55%, rgba(160, 81, 255, 0.05));
}
.homepage-services-area .card-with-icon[data-accent="blue"]::after {
    background: linear-gradient(135deg, rgba(51, 156, 255, 0.10), transparent 55%, rgba(51, 156, 255, 0.05));
}
.homepage-services-area .card-with-icon[data-accent="teal"]::after {
    background: linear-gradient(135deg, rgba(91, 232, 214, 0.10), transparent 55%, rgba(91, 232, 214, 0.05));
}

.homepage-services-area .card-with-icon[data-accent="purple"] .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(160, 81, 255, 0.20), rgba(160, 81, 255, 0.10));
}
.homepage-services-area .card-with-icon[data-accent="blue"] .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(51, 156, 255, 0.20), rgba(51, 156, 255, 0.10));
}
.homepage-services-area .card-with-icon[data-accent="teal"] .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(91, 232, 214, 0.20), rgba(91, 232, 214, 0.10));
}

.homepage-services-area .card-with-icon[data-accent="purple"] .card-icon {
    color: rgb(160, 81, 255);
}
.homepage-services-area .card-with-icon[data-accent="blue"] .card-icon {
    color: rgb(51, 156, 255);
}
.homepage-services-area .card-with-icon[data-accent="teal"] .card-icon {
    color: rgb(91, 232, 214);
}

/* Responsive: stack cards on mobile, 2-col on tablet */
@media (max-width: 1024px) {
    .homepage-services-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .homepage-services-area {
        padding: 6rem 0;
    }
    .homepage-services-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
    .homepage-services-blob {
        width: 16rem;
        height: 16rem;
        filter: blur(45px);
    }
    .homepage-services-area .card-content {
        padding: 32px;
    }
    .homepage-services-area .card-title {
        font-size: 24px !important;
        line-height: 30px !important;
    }
}

.card-hover-3d:hover .card-title {
    color: rgb(26, 26, 26);
}

/* Card Body */
.card-body {
    font-size: 18px;
    line-height: 1.625;
    color: rgb(101, 139, 126);
    margin: 0;
    flex-grow: 1;
}

/* ============================================
   HOMEPAGE CONTENT AREA - General Content
   ============================================ */

.homepage-content-area {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* ============================================
   WORDPRESS CORE WIDGET STYLING
   ============================================ */

/* Style WordPress core Heading widget in all sections */
.widget_block h1,
.widget_block h2,
.widget_block h3,
.widget_text h2,
.homepage-how-content-area .widget h2,
.homepage-how-content-area .widget h3,
.section-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    color: rgb(26, 26, 26);
    letter-spacing: -0.02em;
    text-align: center;
}

/* Style WordPress core Paragraph widget in all sections */
.widget_block p,
.widget_text p,
.homepage-how-content-area .widget p,
.section-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgb(89, 89, 89);
    text-align: center;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* Special styling for headers in Homepage How Content section */
.homepage-how-content-wrapper .widget_text h2,
.homepage-how-content-wrapper .widget_block h2 {
    margin-bottom: 16px !important;
}

.homepage-how-content-wrapper .widget_text p,
.homepage-how-content-wrapper .widget_block p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Section Header Container */
.homepage-how-content-area .text_widget,
.homepage-how-content-area .widget_block {
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .widget_block h1,
    .widget_block h2,
    .widget_block h3,
    .widget_text h2,
    .homepage-how-content-area .widget h2,
    .section-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .widget_block p,
    .widget_text p,
    .homepage-how-content-area .widget p,
    .section-description {
        font-size: 20px;
        margin-bottom: 3rem;
    }
}

/* Tablet adjustments */
@media (min-width: 969px) and (max-width: 1200px) {
    .homepage-explanation-grid {
        gap: 1.5rem;
    }
}

/* Stack on mobile */
@media (max-width: 968px) {
    .homepage-explanation-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .homepage-explanation-area,
    .homepage-content-area {
        margin: 2rem auto;
    }
    
    .explanation-section {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .homepage-explanation-area,
    .homepage-content-area {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .homepage-explanation-grid {
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - CARD GRID
   ============================================ */

@media (max-width: 1024px) {
    /* 3+ cards become 2 columns on tablet */
    .homepage-how-content-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .homepage-how-content-wrapper .cohorted-card-icon-widget:only-of-type {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* All cards stack on mobile */
    .homepage-how-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .homepage-how-content-area {
        padding: 4rem 0;
    }
    
    .homepage-how-content-wrapper {
        padding: 0 1.5rem;
    }
    
    .homepage-how-content-wrapper .cohorted-card-icon-widget {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
    }
    
    .homepage-how-content-wrapper .widget_text,
    .homepage-how-content-wrapper .widget_block {
        margin-bottom: 0.5rem;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .card-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .card-title {
        font-size: 1.375em;
        line-height: 1.8em;
    }
    
    .card-body {
        font-size: 16px;
    }
}

/* ============================================
   EXPLANATION WIDGET STYLES
   ============================================ */

/* Base Explanation Section */
.explanation-section {
    padding: 3rem 2.5rem;
    border-radius: 24px;
    animation: fadeInUp 0.6s ease-out;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    contain: layout;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.explanation-content {
    max-width: 600px;
}

/* Explanation Icon (Black Theme Only) */
.explanation-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: rgb(91, 232, 214);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }
}

.explanation-icon svg {
    width: 100%;
    height: 100%;
}

/* Explanation Heading */
.explanation-heading {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Explanation Description */
.explanation-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Bullet Points Container */
.explanation-bullets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Individual Bullet Item */
.explanation-bullet-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0;
}

/* White theme bullet animation */
.explanation-theme-white .explanation-bullet-item {
    animation: fadeInSlide 0.5s ease-out forwards;
}

/* Black theme bullet animation (already defined above with scaleIn) */

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bullet Icon Container */
.explanation-bullet-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

/* Bullet Content */
.explanation-bullet-content {
    flex: 1;
}

.explanation-bullet-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.explanation-bullet-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   WHITE THEME (Left Side - Light Background)
   ============================================ */

.explanation-theme-white {
    background-color: rgb(240, 243, 244);
    color: rgb(26, 26, 26);
}

.explanation-theme-white .explanation-heading {
    color: rgb(26, 26, 26);
}

.explanation-theme-white .explanation-description {
    color: rgb(101, 139, 126);
}

.explanation-theme-white .explanation-bullet-title {
    color: rgb(232, 125, 125);
}

.explanation-theme-white .explanation-bullet-description {
    color: rgb(89, 89, 89);
}

/* White Theme - Coral Dot with Pulse Animation */
.explanation-theme-white .bullet-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(232, 125, 125, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: none;
}

.explanation-theme-white .bullet-dot::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgb(232, 125, 125);
    animation: none;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes innerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
}

/* ============================================
   BLACK THEME (Right Side - Dark Background)
   ============================================ */

.explanation-theme-black {
    background-color: rgb(26, 26, 26);
    color: rgb(255, 255, 255);
}

.explanation-theme-black .explanation-heading {
    color: rgb(255, 255, 255);
}

.explanation-theme-black .explanation-description {
    color: rgba(255, 255, 255, 0.8);
}

.explanation-theme-black .explanation-bullet-title {
    color: rgb(255, 255, 255);
}

.explanation-theme-black .explanation-bullet-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Black Theme - Teal Checkmark with Animation */
.explanation-theme-black .checkmark-icon {
    width: 28px;
    height: 28px;
    color: rgb(91, 232, 214);
}

/* Circle animation - draws the circle */
.explanation-theme-black .checkmark-circle {
    stroke-dasharray: 65;
    stroke-dashoffset: 65;
    animation: drawCircle 0.6s ease-out forwards;
    transform-origin: center;
}

/* Check animation - draws the checkmark */
.explanation-theme-black .checkmark-check {
    stroke-dasharray: 15;
    stroke-dashoffset: 15;
    animation: drawCheck 0.4s ease-out 0.5s forwards;
}

@keyframes drawCircle {
    0% {
        stroke-dashoffset: 65;
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes drawCheck {
    0% {
        stroke-dashoffset: 15;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Scale animation for the entire bullet item */
.explanation-theme-black .explanation-bullet-item {
    animation: fadeInSlide 0.5s ease-out forwards, scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8) translateX(-20px);
    }
    100% {
        transform: scale(1) translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN FOR EXPLANATION WIDGET
   ============================================ */

@media (max-width: 1024px) {
    .explanation-section {
        padding: 3rem 1.5rem;
    }

    .explanation-heading {
        font-size: 36px;
    }

    .explanation-description {
        font-size: 16px;
    }

    .explanation-bullet-title {
        font-size: 18px;
    }

    .explanation-bullet-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .explanation-section {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .explanation-heading {
        font-size: 32px;
        margin-bottom: 1rem;
    }

    .explanation-description {
        font-size: 16px;
        margin-bottom: 2rem;
    }

    .explanation-bullets {
        gap: 1.5rem;
    }

    .explanation-bullet-item {
        gap: 1rem;
    }

    .explanation-bullet-title {
        font-size: 17px;
    }

    .explanation-bullet-description {
        font-size: 14px;
    }

    .explanation-theme-white .bullet-dot {
        width: 48px;
        height: 48px;
    }

    .explanation-theme-white .bullet-dot::before {
        width: 24px;
        height: 24px;
    }

    .explanation-theme-black .explanation-bullet-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .explanation-section {
        padding: 2rem 1rem;
    }

    .explanation-heading {
        font-size: 28px;
    }

    .explanation-description {
        font-size: 15px;
    }

    .explanation-bullet-title {
        font-size: 16px;
    }

    .explanation-bullet-description {
        font-size: 14px;
    }

    .explanation-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
}

/* Responsive Design for Hero */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 3rem;
    }
    
    .hero-heading {
        font-size: 64px;
        line-height: 1.06;
    }

    .hero-subheading {
        font-size: 18px;
    }
    
    .hero-bg-blob {
        width: 20rem;
        height: 20rem;
    }
    
    .hero-bg-grid {
        background-size: 3rem 3rem;
    }
}

@media (max-width: 768px) {
    .homepage-hero-section {
        min-height: calc(100vh - var(--header-height));
    }
    
    .hero-container {
        padding: 0 2rem;
    }

    .hero-heading {
        font-size: 48px;
        line-height: 1.06;
        margin-bottom: 1.5rem;
    }

    .hero-subheading {
        font-size: 16px;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .hero-bg-blob {
        width: 16rem;
        height: 16rem;
        top: 3rem;
        left: 3rem;
    }
    
    .hero-bg-grid {
        background-size: 2rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .hero-heading {
        font-size: 36px;
        line-height: 1.06;
    }

    .hero-subheading {
        font-size: 15px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .hero-bg-blob {
        width: 12rem;
        height: 12rem;
        top: 2rem;
        left: 2rem;
        filter: blur(40px);
    }
    
    .hero-bg-grid {
        background-size: 1.5rem 1.5rem;
        -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
        mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
    }
}

