:root {
    --codex-ink: #0d2230;
    --codex-ink-soft: #32515f;
    --codex-gold: #f3bc62;
    --codex-teal: #118a8d;
    --codex-white: #ffffff;
    --codex-shadow: 0 24px 60px rgba(13, 34, 48, 0.18);
}

.codex-home {
    background:
        radial-gradient(circle at top left, rgba(243, 188, 98, 0.16), transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #eef6f8 100%);
}

.codex-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--codex-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.codex-hero {
    position: relative;
    padding: 110px 0 70px;
    overflow: hidden;
}

.codex-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.codex-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(248, 251, 252, 0) 0%, #f8fbfc 100%);
}

.codex-hero-shell {
    position: relative;
    z-index: 1;
}

.codex-hero-copy h1 {
    margin: 24px 0 18px;
    color: var(--codex-white);
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.codex-hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.codex-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 36px;
}

.codex-btn-primary,
.codex-btn-secondary {
    min-width: 180px;
    padding: 15px 26px;
    border-radius: 16px;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
}

.codex-btn-primary {
    background: linear-gradient(135deg, var(--codex-gold), #ffd18a);
    color: var(--codex-ink);
    box-shadow: 0 18px 34px rgba(243, 188, 98, 0.28);
}

.codex-btn-primary:hover {
    color: var(--codex-ink);
    transform: translateY(-2px);
}

.codex-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: var(--codex-white);
}

.codex-btn-secondary:hover {
    color: var(--codex-white);
    background: rgba(255, 255, 255, 0.12);
}

.codex-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 680px;
}

.codex-metric-card {
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.codex-metric-card strong {
    display: block;
    color: var(--codex-white);
    font-size: 34px;
    line-height: 1;
}

.codex-metric-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.codex-hero-panel {
    padding: 30px;
    border-radius: 28px;
    background: rgba(8, 28, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--codex-shadow);
    backdrop-filter: blur(18px);
    color: var(--codex-white);
}

.codex-panel-header span,
.codex-section-head .codex-eyebrow,
.codex-cta-shell .codex-eyebrow,
.codex-about-copy .codex-eyebrow {
    background: rgba(17, 138, 141, 0.1);
    color: var(--codex-teal);
}

.codex-panel-header strong {
    display: block;
    margin-top: 12px;
    font-size: 28px;
    line-height: 1.25;
}

.codex-panel-item {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.codex-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(243, 188, 98, 0.25), rgba(255, 255, 255, 0.1));
    color: var(--codex-gold);
    flex-shrink: 0;
}

.codex-panel-item h5,
.codex-panel-item p,
.codex-panel-footer span,
.codex-panel-footer a {
    color: var(--codex-white);
}

.codex-panel-item p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.codex-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.codex-panel-footer a {
    font-weight: 700;
}

.codex-highlights,
.codex-about-band,
.codex-testimonials {
    padding: 110px 0;
}

.codex-section-head {
    max-width: 760px;
    margin: 0 auto 56px;
}

.codex-section-head h2,
.codex-about-copy h2 {
    font-size: 46px;
    line-height: 1.14;
    color: var(--codex-ink);
}

.codex-section-head p,
.codex-about-text,
.codex-about-tile p,
.codex-feature-card p,
.codex-cta-shell p {
    color: var(--codex-ink-soft);
    font-size: 17px;
    line-height: 1.85;
}

.codex-feature-card,
.codex-testimonial-card,
.codex-about-tile {
    height: 100%;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 138, 141, 0.08);
    box-shadow: 0 18px 42px rgba(13, 34, 48, 0.08);
}

.codex-feature-card {
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.codex-feature-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--codex-teal), var(--codex-gold));
}

.codex-feature-badge {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--codex-teal);
    font-family: 'Jost', sans-serif;
    font-size: 34px;
    font-weight: 700;
}

.codex-about-media {
    position: relative;
    padding: 16px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(17, 138, 141, 0.12), rgba(243, 188, 98, 0.18));
    box-shadow: var(--codex-shadow);
}

.codex-about-media img {
    width: 100%;
    border-radius: 24px;
}

.codex-about-copy {
    padding-left: 24px;
}

.codex-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.codex-about-tile h5 {
    margin-bottom: 12px;
}

.codex-cta-strip {
    padding-bottom: 30px;
}

.codex-cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px 42px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f3b50, #118a8d);
    box-shadow: 0 24px 44px rgba(17, 138, 141, 0.22);
}

.codex-cta-shell h3,
.codex-cta-shell p {
    color: var(--codex-white);
}

.codex-testimonial-card {
    margin-bottom: 28px;
}

.codex-quote-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(243, 188, 98, 0.18), rgba(17, 138, 141, 0.14));
    color: var(--codex-teal);
    font-size: 20px;
}

.codex-testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.codex-testimonial-user img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
}

.codex-testimonial-user h6 {
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .codex-hero {
        padding-top: 80px;
    }

    .codex-hero-copy h1 {
        font-size: 48px;
    }

    .codex-hero-panel,
    .codex-about-copy {
        margin-top: 30px;
        padding-left: 0;
    }

    .codex-about-grid,
    .codex-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .codex-cta-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .codex-hero-copy h1,
    .codex-section-head h2,
    .codex-about-copy h2 {
        font-size: 36px;
    }

    .codex-hero-metrics,
    .codex-about-grid {
        grid-template-columns: 1fr;
    }

    .codex-hero-panel,
    .codex-feature-card,
    .codex-testimonial-card,
    .codex-about-tile,
    .codex-cta-shell {
        padding: 24px;
    }

    .codex-panel-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.breadcrumb-area {
    position: relative;
    min-height: 300px;
    padding: 120px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(243, 188, 98, 0.18), transparent 24%),
        linear-gradient(135deg, #0f3144, #118a8d);
    overflow: hidden;
}

.breadcrumb-area::before,
.breadcrumb-area::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.breadcrumb-area::before {
    width: 260px;
    height: 260px;
    top: -80px;
    right: 8%;
}

.breadcrumb-area::after {
    width: 140px;
    height: 140px;
    bottom: 28px;
    left: 7%;
}

.breadcrumb-title h2,
.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item a {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.shop-area,
.blog-area,
.inner-blog,
.project-detail,
.event03,
#work {
    background: linear-gradient(180deg, #f8fbfc 0%, #edf6f7 100%);
}

.courses-item,
.event-item,
.single-post2,
.faq-wrap .card,
.project-detail .inner-column3,
.project-detail .inner-column2,
.blog-details-wrap,
.portfolio .grid-item {
    border: 1px solid rgba(17, 138, 141, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(13, 34, 48, 0.08);
    overflow: hidden;
}

.courses-item .thumb img,
.event-item .thumb img,
.single-post2 .blog-thumb2 img,
.project-detail .upper-box img,
.details__content-img img,
.portfolio .gallery-image img {
    width: 100%;
    border-radius: 22px 22px 0 0;
    transition: transform 0.4s ease;
}

.courses-item:hover .thumb img,
.event-item:hover .thumb img,
.single-post2:hover .blog-thumb2 img,
.portfolio .grid-item:hover .gallery-image img {
    transform: scale(1.04);
}

.courses-content,
.event-content,
.blog-content2,
.blog-details-wrap,
.project-detail .inner-column,
.project-detail .s-about-content,
.project-detail .inner-column2,
.project-detail .inner-column3,
.faq-wrap .card-body {
    padding: 28px;
}

.courses-content h3,
.event-content h3,
.blog-content2 h4,
.project-detail h2,
.blog-details-wrap h2,
.faq-wrap .faq-btn {
    color: var(--codex-ink);
}

.courses-content .cat,
.event-content .date,
.single-post2 .date-home,
.meta-info,
.project-info strong,
.time {
    color: var(--codex-teal);
}

.courses-content p,
.event-content p,
.blog-content2 p,
.project-detail p,
.blog-details-wrap p,
.faq-wrap .card-body,
.time strong {
    color: var(--codex-ink-soft);
}

.courses-item .icon,
.event-item .icon {
    display: none;
}

.readmore,
.blog-btn a,
.project-info span,
.footer-social a:hover,
.footer-link a:hover,
.project-detail a {
    color: var(--codex-teal);
}

.readmore:hover,
.blog-btn a:hover,
.project-detail a:hover {
    color: #0c6a6c;
}

.single-post2 .date-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 138, 141, 0.1);
    font-weight: 700;
}

.event-content .date,
.courses-content .cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 138, 141, 0.08);
    font-weight: 700;
}

.time {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 138, 141, 0.1);
}

.faq-wrap {
    padding: 0;
}

.faq-wrap .card {
    margin-bottom: 18px;
}

.faq-wrap .card-header {
    padding: 0;
    background: transparent;
    border: 0;
}

.faq-wrap .faq-btn {
    width: 100%;
    padding: 24px 28px;
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    background: transparent;
}

.portfolio .grid-item {
    margin-bottom: 26px;
    padding: 12px;
}

.portfolio .gallery-image img {
    border-radius: 18px;
}

.project-detail,
.inner-blog {
    padding: 110px 0;
}

.project-detail .upper-box,
.inner-blog .details__content-img {
    margin-bottom: 28px;
}

.project-detail .inner-column2,
.project-detail .inner-column3 {
    position: sticky;
    top: 120px;
}

.project-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17, 138, 141, 0.08);
}

.project-info li:last-child {
    border-bottom: 0;
}

.pagination-wrap .pagination {
    justify-content: center;
    gap: 8px;
}

.pagination-wrap .page-item .page-link,
.pagination-wrap .pagination li > * {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(17, 138, 141, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--codex-ink);
}

.pagination-wrap .page-item.active .page-link,
.pagination-wrap .pagination .active > * {
    background: linear-gradient(135deg, var(--codex-teal), #16a3a6);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 991px) {
    .project-detail .inner-column2,
    .project-detail .inner-column3 {
        position: static;
        margin-top: 24px;
    }

    .breadcrumb-area {
        min-height: 240px;
        padding-top: 100px;
    }
}
