:root {
    --color-primary: #0f766e;
    --color-primary-dark: #134e4a;
    --color-blue: #1e3a8a;
    --color-ink: #0f172a;
    --color-muted: #64748b;
    --color-soft: #f8fafc;
    --color-border: #e2e8f0;
    --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.simplebio-template {
    margin: 0;
    color: var(--color-ink);
    background: #ffffff;
    font-family: "Cairo", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.8;
}

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

a {
    color: #1b3a7a;
    text-decoration: none;
}

.container {
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    right: 12px;
    transform: translateY(-160%);
    z-index: 10000;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 4px solid #1b3a7a;
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--color-blue);
    white-space: nowrap;
}

.brand-mark,
.author-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 5px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #0f766e, #14b8a6 48%, #1e3a8a);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.22);
	overflow: hidden;
}

.brand-title {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    color: #334155;
}

.main-nav a,
.site-footer a {
    transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
    color: var(--color-primary);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    background: #020617;
    overflow: hidden;
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(15, 118, 110, 0.20), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.72));
}

.hero-caption {
    position: absolute;
    inset-inline: 24px;
    top: 45%;
    transform: translateY(-44%);
    margin-inline: auto;
    width: min(920px, calc(100% - 48px));
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.32);
}

.hero-caption h1 {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    z-index: 3;
    inset-inline: 0;
    bottom: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.slider-btn,
.slider-dot {
    border: 0;
    cursor: pointer;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: background 180ms ease, transform 180ms ease;
	padding-bottom: 6px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 180ms ease, background 180ms ease;
}

.slider-dot.is-active {
    width: 30px;
    background: #fff;
}

.section {
    padding: clamp(60px, 4vw, 80px) 0;
}

.section-kicker {
    display: inline-flex;
    width: fit-content;
    color: var(--color-primary);
    background: rgba(20, 184, 166, 0.10);
    border: 1px solid rgba(20, 184, 166, 0.20);
    border-radius: 5px;
    padding: 6px 16px;
    font-size: 0.95rem;
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 42px;
    align-items: center;
}

.about-copy h2,
.section-heading h2,
.author-card h2 {
    margin: 16px 0 16px;
    color: var(--color-blue);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
}

.lead {
    font-size: 1.25rem;
    color: #334155;
    font-weight: 700;
}

.about-copy p,
.section-heading p,
.author-card p,
.section-grid p {
    color: var(--color-muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 5px;
    color: #ffffff;
    background: #1b3a7a;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(20, 184, 166, 0.28);
    background: #2a4f9a;
}

.stats-card,
.section-card,
.author-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.stats-card {
    padding: 26px;
    display: grid;
    gap: 22px;
}

.stats-card div {
    padding: 18px;
    border-radius: 5px;
    background: linear-gradient(180deg, #f8fafc, #eefdfb);
}

.stats-card strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.5;
}

.stats-card span {
    color: var(--color-muted);
    font-weight: 700;
}

.gallery-section,
.author-section {
    background: linear-gradient(180deg, #ffffff, var(--color-soft));
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading.centered {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.section-heading.centered .section-kicker {
    margin-inline: auto;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.section-grid>div {
	display: flex;
}

.section-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
	display: flex;
	flex-direction: column;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.section-card>div, .section-content>div {
	height: 100%;
}

.section-card .section-content .chat-container-client {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.section-card .section-content .chat-container-client .chat-messages {
	flex-grow: 1;
}

.section-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.section-card>div:not(.section-content) {
    padding: 24px;
}

.section-card .section-content {
    padding: 0;
}

.section-grid h3 {
    margin: 0 0 8px;
    color: var(--color-blue);
    font-size: 1.35rem;
    font-weight: 900;
}

.section-grid h3.center {
	margin: 8px;
	text-align: center;
}

.section-card p,
.chapter-card p {
    margin: 0;
}

.chapters-section {
    background: #fff;
}

.chapter-card {
    position: relative;
    min-height: 252px;
    padding: 32px 28px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-card span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-blue), var(--color-primary));
    font-size: 1.5rem;
    font-weight: 900;
}

.section-card small {
    position: absolute;
    inset-inline-start: 28px;
    bottom: 24px;
    color: var(--color-primary);
    font-weight: 900;
}

.author-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    padding: clamp(28px, 5vw, 48px);
}

.author-avatar {
    width: 74px;
    height: 74px;
    font-size: 2rem;
    border: 1px solid #CBCBCB;
    background: transparent;
}

.role {
    color: var(--color-primary-dark) !important;
    font-weight: 800;
}

.joomla-component {
    padding: 0 0 60px;
}

.joomla-component:empty {
    display: none;
}

.site-footer {
    background: #1b3a7a;
    padding: 32px 0;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.site-footer, .site-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

.footer-inner nav {
    display: flex;
    gap: 20px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .two-column,
    .section-grid,
    .author-card {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 560px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 18px;
        font-size: 0.95rem;
    }

    .hero {
        min-height: 500px;
    }

    .section {
        padding: 64px 0;
    }

    .section-card img {
        height: 220px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

.chat-container-client .assistant-trigger-icon {
	background: transparent !important;
	border-radius: 9px !important;
	padding: 0px !important;
	border: 0px !important;
}

.chat-container-client .init-content img {
	margin: 0px auto;
}

.chat-container-client .chat-messages .motd {
	font-size: 14px !important;
}

.chat-container-client .init-content .prompts {
	max-height: 300px !important;
}
