html {
    font-size: 16px;
}

:root {
    --primary: #049B91;
    --primary-dark: #138871;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F9F9F9;
    --gray-border: #E5E7EB;
    --gray-text: #6B7280;
    --text-main: #111827;
    --text-muted: #4B5563;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 80rem; /* 1280px */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ceg-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem; /* Reverted to original value */
}

/* Header */
.ceg-header {
    background: var(--white);
    padding: 0.9375rem 0;
    border-bottom: 0.0625rem solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ceg-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ceg-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ceg-logo__main {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03125rem;
}

.ceg-logo__sub {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.0625rem;
    margin-top: 0.125rem;
}

.ceg-header__nav-list {
    display: flex;
    gap: 1.5625rem;
    list-style: none;
}

.ceg-header__nav-link {
    font-weight: 700;
    font-size: 0.625rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding-bottom: 0.3125rem;
}

.ceg-header__nav-link.ceg-active {
    border-bottom: 0.125rem solid var(--primary);
    color: #111;
}

.ceg-header__nav-link:hover {
    color: var(--primary);
}

.ceg-header__contact-btn {
    border: 0.0625rem solid var(--primary);
    color: var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: 3.125rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    display: inline-block;
}

.ceg-header__contact-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.ceg-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--white);
}

.ceg-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceg-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.ceg-hero__container {
    margin-left: 10% !important; /* Responsive left alignment */
    margin-right: auto !important;
    width: 90% !important;
}

.ceg-hero__content {
    max-width: 800px;
    text-align: left;
}

.ceg-hero__breadcrumb {
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03125rem;
    color: rgba(255, 255, 255, 0.8);
}

.ceg-hero__breadcrumb span {
  
    color: #fff;
}

.ceg-hero__title {
    font-size: 4rem; /* 96px scaled down a bit for better fluidity */
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #40E9C7;
    line-height: 0.85;
    letter-spacing:0;
}

.ceg-hero__subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.0125rem;
    color: rgba(255, 255, 255, 0.9);
}
/* Category Nav */
.ceg-category-nav {
    padding: 3.5rem 0 0; /* Balanced vertical spacing */
    background: var(--white);
}

.ceg-category-nav__list {
    display: flex;
    justify-content: center;
    gap: 7.5rem; /* Precise spacing from reference */
    margin: 0;
    padding: 0;
    list-style: none;
}

.ceg-category-nav__item {
    position: relative;
    list-style: none;
}

.ceg-category-nav__link {
    font-weight: 700;
    font-size: 0.9375rem; /* Optimal header size */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem; /* Space for the dropdown to sit nicely */
    text-transform: none;
    transition: color 0.3s ease;
    color: inherit;
}

.ceg-category-nav__link.ceg-active,
.ceg-category-nav__link:hover {
    color: var(--primary) !important;
}

/* Premium Dropdown - Enforced Vertical List */
.ceg-category-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    background: var(--white);
    min-width: 17rem;
    padding: 1.25rem 0;
    margin-top: -2px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.625rem);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    list-style: none;
}

/* Precision alignment - prevent right-side overflow on desktop */
.ceg-category-nav__list > .ceg-category-nav__item:last-child .ceg-category-nav__dropdown {
    left: auto;
    right: 0;
}


@media (min-width: 993px) {
    .ceg-category-nav__item--has-dropdown:hover .ceg-category-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.ceg-category-nav__dropdown-item {
    display: block !important; /* Absolute enforcement */
    margin: 0;
    padding: 0;
}

.ceg-category-nav__dropdown-link {
    font-weight: 500;
    font-size: 0.8125rem; /* Clean secondary typography */
    color: #444;
    padding: 0.625rem 2rem; /* Professional vertical rhythm */
    display: block;
    width: 100%;
    text-align: left; /* Enforced */
    text-transform: none;
    transition: all 0.2s ease;
}

.ceg-category-nav__dropdown-link:hover {
    background: #fcfcfc;
    color: var(--primary);
    padding-left: 2.25rem; /* Subtle hover indention */
}

/* Icon Refinement */
.ceg-category-nav__icon,
.ceg-category-nav__link:hover .ceg-category-nav__icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}

@media (min-width: 993px) {
    .ceg-category-nav__item--has-dropdown:hover > .ceg-category-nav__link .ceg-category-nav__icon {
        transform: rotate(180deg);
    }
}

/* Grid Layouts - Fluid & Pattern Based */

.ceg-insights {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem;
    margin-bottom: 3.75rem;
    padding: 1rem 12rem;
}

.ceg-insight-card {
    display: flex;
    flex-direction: column;
    border: 0.0625rem solid var(--gray-border);
    border-radius: 0.25rem;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.ceg-insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.ceg-insight-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 1 Card Pattern */
.ceg-insight-card:nth-child(8n+1) {
    grid-column: span 6;
}

/* 2 Cards Pattern */
.ceg-insight-card:nth-child(8n+2),
.ceg-insight-card:nth-child(8n+3),
.ceg-insight-card:nth-child(8n+7),
.ceg-insight-card:nth-child(8n+8) {
    grid-column: span 3;
}

/* 3 Cards Pattern */
.ceg-insight-card:nth-child(8n+4),
.ceg-insight-card:nth-child(8n+5),
.ceg-insight-card:nth-child(8n+6) {
    grid-column: span 2;
}

.ceg-insight-card__image-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1.45rem; /* Reverted horizontal padding to 2rem */
}

/* Fixed Image Heights based on Pattern */
.ceg-insight-card:nth-child(8n+1) .ceg-insight-card__image-wrapper img {
    height: 28.125rem;
}

.ceg-insight-card:nth-child(8n+2) .ceg-insight-card__image-wrapper img,
.ceg-insight-card:nth-child(8n+3) .ceg-insight-card__image-wrapper img,
.ceg-insight-card:nth-child(8n+7) .ceg-insight-card__image-wrapper img,
.ceg-insight-card:nth-child(8n+8) .ceg-insight-card__image-wrapper img {
    height: 17.875rem;
}

.ceg-insight-card:nth-child(8n+4) .ceg-insight-card__image-wrapper img,
.ceg-insight-card:nth-child(8n+5) .ceg-insight-card__image-wrapper img,
.ceg-insight-card:nth-child(8n+6) .ceg-insight-card__image-wrapper img {
    height: 12rem;
}

/* Specific refinement for 3-column titles */
.ceg-insight-card:nth-child(8n+4) .ceg-insight-card__title,
.ceg-insight-card:nth-child(8n+5) .ceg-insight-card__title,
.ceg-insight-card:nth-child(8n+6) .ceg-insight-card__title {
    max-width: 85%; /* Reduced width as requested */
}

.ceg-insight-card__image-wrapper img {
    width: 100%;
    object-fit: cover;
}

.ceg-insight-card__content {
    padding: 0 1.45rem 2rem; /* Reverted horizontal padding to 2rem */
    position: relative;
    flex-grow: 1; /* Ensure content pushes footer down */
    display: flex;
    flex-direction: column;
}

.ceg-insight-card__category {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: none;
    margin-bottom: 0.75rem;
    display: block;
}

.ceg-insight-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ceg-insight-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.ceg-insight-card__description {
    color: #666;
    margin-bottom: 1.5625rem;
    line-height: 1.5;
    font-size: 0.875rem;
}


.ceg-insight-card__arrow {
    flex-shrink: 0;
    padding-top: 0.125rem;
}

.ceg-insight-card__arrow-icon,
.ceg-insight-card__link:hover .ceg-insight-card__arrow-icon {
    font-size: 1.5rem; /* Increased size as requested */
    color: var(--primary-dark);
    transform: rotate(45deg);
    display: inline-block;
    vertical-align: middle;
    text-decoration: none !important;
}

.category-nav a i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.ceg-button__icon,
.ceg-button:hover .ceg-button__icon {
    font-size: 1rem;
    top:0 !important;
    display: inline-block;
    text-decoration: none !important;
}

.ceg-insight-card__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto; /* Pin footer to bottom */
}

.ceg-insight-card__author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.ceg-insight-card__author-info span {
    display: block;
    font-size: 0.875rem;
}

.ceg-insight-card__author-name {
    font-weight: 500;
    color: #101828;
}

.ceg-insight-card__author-date {
    color: #888;
    margin-top: -0.55rem;
}

/* Buttons */
.ceg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
}

.ceg-button--view-more {
    background: #E1F9F4;
    color: var(--primary);
    padding: 0.75rem 1.5625rem;
    font-size: 1rem;
    border-radius: 0.55rem;
}

.ceg-button--black {
    background: #222;
    color: var(--white) !important;
    padding: 0.475rem 2.95rem;
    border-radius: 3.125rem;
    font-size: 1.25rem;
}

.ceg-button--teal {
    background: #138871;
    color: var(--white);
    padding: 0.475rem 2.95rem;
    border-radius: 3.125rem;
    font-size: 1.25rem;
}

.ceg-button--black:hover,
.ceg-button--teal:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* CTA Section */
.ceg-cta {
    padding: 1rem 0 0;
    text-align: center;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.ceg-cta__visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.ceg-cta__visual::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 9.35rem;
    background: #47EFCE;
    z-index: 1;
}

.ceg-cta__visual img {
    position: relative;
    width: 100%;
    max-width: 41.5rem;
    z-index: 2;
    object-fit: cover;
}

.ceg-cta__text-wrapper {
    margin: 2.5rem auto;
}

.ceg-cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.ceg-cta__subtitle {
    font-size: 1.5rem; /* Increased to be "same size" or more consistent with title */
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 700; /* Increased weight for prominence as shown in user image */
    max-width: 50rem;
    margin: 0 auto;
}

.ceg-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
    margin-top: 1.875rem;
}

/* Footer */
.ceg-footer {
    background: var(--black);
    color: var(--white);
    padding: 3.75rem 0;
}

.ceg-footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.875rem;
}

.ceg-footer__brand .ceg-logo__main {
    font-size: 3rem;
    margin-bottom: 0;
}

.ceg-footer__brand .ceg-logo__sub {
    font-size: 0.625rem;
    letter-spacing: 0.125rem;
}

.ceg-footer__column-title {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.0625rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.ceg-footer__column-list {
    list-style: none;
    padding: 0;
}

.ceg-footer__column-item {
    margin-bottom: 0.625rem;
}

.ceg-footer__column-link {
    color: #888;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.ceg-footer__column-link:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .ceg-hero__title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .ceg-header__nav, .ceg-header__contact-btn {
        display: none;
    }
    
    .ceg-hero {
        height: 25rem;
    }
    
    .ceg-hero__title {
        font-size: 3.5rem;
        letter-spacing: -0.15rem;
    }

    /* Intuitive Mobile Accordion Nav */
    .ceg-category-nav {
        padding: 1.5rem 0 2rem;
    }

    .ceg-category-nav .ceg-container {
        padding: 0; /* Full edge-to-edge for cleaner accordion rows */
    }

    .ceg-category-nav__list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .ceg-category-nav__item {
        position: relative;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .ceg-category-nav__item--has-dropdown > .ceg-category-nav__link {
        padding: 1.25rem 1.5rem;
        justify-content: space-between;
        font-size: 1rem;
        color: #111;
        font-weight: 700;
        border-left: 4px solid transparent;
        transition: all 0.25s ease;
    }

    .ceg-category-nav__item--has-dropdown.ceg-is-open > .ceg-category-nav__link,
    .ceg-category-nav__item--has-dropdown > .ceg-category-nav__link.ceg-active {
        background: #f9f9f9;
        border-left-color: var(--primary);
        color: var(--primary) !important;
    }

    .ceg-category-nav__item--has-dropdown > .ceg-category-nav__link .ceg-category-nav__icon {
        transition: transform 0.3s ease;
    }

    .ceg-category-nav__item--has-dropdown.ceg-is-open > .ceg-category-nav__link .ceg-category-nav__icon {
        transform: rotate(180deg); /* Rotate when open */
    }

    /* Accordion Style Dropdown - Smooth & Gap-Free */
    .ceg-category-nav__dropdown {
        position: static;
        display: block; 
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border-top: none;
        background: #fcfcfc;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }

    .ceg-category-nav__item--has-dropdown.ceg-is-open .ceg-category-nav__dropdown {
        max-height: 400px; /* Large enough for content */
        opacity: 1;
        visibility: visible;
        padding: 0.5rem 0 1rem !important; /* Spacing only when open */
    }

    .ceg-category-nav__dropdown ul {
        display: block;
        padding: 0;
        margin: 0;
    }

    .ceg-category-nav__dropdown-item {
        border: none;
    }

    .ceg-category-nav__dropdown-link {
        padding: 0.75rem 2.5rem; /* Indented for clear hierarchy */
        font-size: 0.875rem;
        color: #555;
    }

    .ceg-category-nav__dropdown-link:hover {
        padding-left: 2.75rem;
        background: transparent;
    }

    .ceg-insights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .ceg-insight-card:nth-child(n) {
        grid-column: span 1;
    }

    .ceg-insight-card:nth-child(n) .ceg-insight-card__image-wrapper img {
        height: 18rem;
    }
    
    .ceg-cta__title {
        font-size: 2rem;
    }
    
    .ceg-footer__container {
        flex-direction: column;
        text-align: center;
    }
    
    .ceg-footer__brand {
        margin-bottom: 1.25rem;
    }
}
@media (max-width: 767px) {
    .ceg-cta__buttons {
       flex-wrap: wrap;
       gap: 12px;
}

    .ceg-cta__buttons .ceg-button {
       width: 100%;
  }

}
