/* EnlightenIM - Custom Page Styles */
/* Matches Elementor-styled Home/Insights pages */

/* === Container - matches Elementor boxed max-width === */
.ec-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* === Hero Banner === */
.ec-hero {
    position: relative;
    background-color: var(--ast-global-color-0, #3AA6B9);
    background-image: url('/wp-content/uploads/2021/03/home-background.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 100px 0 80px;
    overflow: hidden;
}
.ec-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--ast-global-color-0, #3AA6B9);
    opacity: 0.85;
}
.ec-hero .ec-container {
    position: relative;
    z-index: 1;
}
.ec-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 16px;
    line-height: 1.3;
    color: #ffffff;
}
.ec-hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
    max-width: 800px;
}

/* === Body Content === */
.ec-body {
    background-color: #ffffff;
    padding: 60px 0 80px;
}

/* === Sections === */
.ec-section {
    margin-bottom: 48px;
}
.ec-section:last-child {
    margin-bottom: 0;
}
.ec-section__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ast-global-color-3);
    margin-bottom: 20px;
}
.ec-section__subtitle {
    font-size: 1.1rem;
    color: var(--ast-global-color-2);
    font-weight: 600;
    margin-bottom: 12px;
}

/* === Divider === */
.ec-divider {
    border: none;
    height: 2px;
    background-color: #e5e5e5;
    margin: 48px 0;
}

/* === Cards === */
.ec-cards {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}
.ec-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}
.ec-cards--2 {
    grid-template-columns: repeat(2, 1fr);
}
.ec-card {
    background: var(--ast-global-color-5, #ffffff);
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ec-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.ec-card--center {
    text-align: center;
}
.ec-card__title {
    color: var(--ast-global-color-0);
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}
.ec-card h3, .ec-card h4 {
    margin-top: 0;
    color: var(--ast-global-color-3);
}
.ec-card h3.ec-card__highlight {
    color: var(--ast-global-color-0);
}
.ec-card p {
    color: var(--ast-global-color-3);
    margin-bottom: 0;
    line-height: 1.6;
}
.ec-card ul {
    color: var(--ast-global-color-3);
    padding-left: 20px;
    margin: 0;
}
.ec-card ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Tags === */
.ec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ec-tag {
    display: inline-block;
    background: var(--ast-global-color-4, #F2F5F7);
    color: var(--ast-global-color-0);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
}
.ec-tag--green {
    background: #e8f5e9;
    color: #2e7d32;
}
.ec-tag--orange {
    background: #fff3e0;
    color: #e65100;
}
.ec-tag--red {
    background: #fce4ec;
    color: #c62828;
}

/* === Blockquote === */
.ec-quote {
    border-left: 3px solid var(--ast-global-color-0);
    padding-left: 24px;
    margin: 24px 0;
}
.ec-quote p {
    font-size: 1.2rem;
    color: var(--ast-global-color-2);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* === Portfolio Company Entry === */
.ec-company {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}
.ec-company:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.ec-company__tag {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--ast-global-color-3);
    margin-bottom: 4px;
}
.ec-company__name {
    margin-bottom: 2px;
}
.ec-company__sector {
    font-size: 0.9rem;
    color: var(--ast-global-color-3);
    margin-bottom: 14px;
}
.ec-company__thesis {
    background: var(--ast-global-color-5);
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    border-left: 3px solid var(--ast-global-color-0);
    margin-top: 16px;
}
.ec-company__thesis p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ast-global-color-2);
    line-height: 1.6;
}

/* === Fund Sub-section === */
.ec-fund {
    margin-top: 40px;
}
.ec-fund__subtitle {
    font-size: 0.85rem;
    color: var(--ast-global-color-3);
    font-weight: 400;
}

/* === Typography for EC Pages === */
.ec-body p {
    line-height: 1.8;
    color: var(--ast-global-color-3);
    margin-bottom: 16px;
}
.ec-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ast-global-color-3);
    line-height: 1.3;
    margin: 0 0 16px;
}
.ec-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ast-global-color-3);
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.ec-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ast-global-color-3);
    line-height: 1.2;
    margin: 0 0 8px;
}

/* === Remove default Astra spacing for custom templates === */
.page-template-page-aboutus .entry-content,
.page-template-page-funds .entry-content,
.page-template-page-portfolio .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-page-aboutus #primary,
.page-template-page-funds #primary,
.page-template-page-portfolio #primary {
    margin: 0;
    padding: 0;
}
.page-template-page-aboutus .site-main,
.page-template-page-funds .site-main,
.page-template-page-portfolio .site-main {
    margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .ec-hero {
        padding: 60px 0 50px;
    }
    .ec-hero__title {
        font-size: 2.2rem;
    }
}
@media (max-width: 921px) {
    .ec-cards--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .ec-cards--3,
    .ec-cards--2 {
        grid-template-columns: 1fr;
    }
    .ec-hero {
        padding: 40px 0 30px;
    }
    .ec-hero__title {
        font-size: 1.8rem;
    }
    .ec-hero__subtitle {
        font-size: 1rem;
    }
    .ec-body {
        padding: 40px 0 60px;
    }
    .ec-body h2 {
        font-size: 1.5rem;
    }
    .ec-body h3 {
        font-size: 1.25rem;
    }
}
