/* ═══════════════════════════════════════════════════════════════
   LQ Team Page  —  Learnovate Qatar
═══════════════════════════════════════════════════════════════ */

/* ── Hide page title on team page ──────────────────────────────── */
.lq-team-page .entry-header,
.lq-team-page .page-header,
.lq-team-page .page-title { display: none !important; }
.lq-team-page .entry-content { padding: 0 !important; max-width: 100% !important; }
.lq-team-page .site-main    { padding: 0 !important; }

/* ── Hero ──────────────────────────────────────────────────────── */
.lq-team-hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 55%, #16213e 100%);
    padding: 90px 24px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lq-team-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214,35,4,.18) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: lq-hero-pulse 5s ease-in-out infinite;
}
@keyframes lq-hero-pulse {
    0%,100% { transform: translate(-50%,-50%) scale(1);   opacity:.6; }
    50%      { transform: translate(-50%,-50%) scale(1.15); opacity:1; }
}
.lq-team-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(214,35,4,.15);
    border: 1px solid rgba(214,35,4,.4);
    color: #ff7b5c;
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 18px; border-radius: 30px;
    margin-bottom: 24px;
    position: relative;
}
.lq-team-hero h1 {
    font-size: clamp(34px, 5.5vw, 60px);
    font-weight: 800; color: #fff;
    margin: 0 0 18px; line-height: 1.1;
    position: relative;
}
.lq-team-hero h1 em { font-style: normal; color: #D62304; }
.lq-team-hero p {
    font-size: 18px; color: rgba(255,255,255,.65);
    max-width: 560px; margin: 0 auto;
    line-height: 1.7; position: relative;
}

/* ── Stats bar ─────────────────────────────────────────────────── */
.lq-team-stats-bar {
    display: grid; grid-template-columns: repeat(4,1fr);
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,.12);
    border-radius: 20px;
    max-width: 900px; margin: -40px auto 72px;
    padding: 8px 0; position: relative; z-index: 10;
    overflow: hidden;
}
@media(max-width:600px){ .lq-team-stats-bar{ grid-template-columns:repeat(2,1fr); } }

.lq-stat-item {
    text-align: center; padding: 24px 16px;
    border-right: 1px solid #f0f0f0;
}
.lq-stat-item:last-child { border-right: none; }
.lq-stat-num {
    display: block;
    font-size: 38px; font-weight: 900; color: #D62304;
    line-height: 1; margin-bottom: 6px;
}
.lq-stat-label {
    font-size: 12px; font-weight: 700; color: #999;
    text-transform: uppercase; letter-spacing: 1px;
}

/* ── Section header ────────────────────────────────────────────── */
.lq-section-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.lq-section-header { text-align: center; max-width: 580px; margin: 0 auto 52px; }
.lq-section-eyebrow {
    display: inline-block; color: #D62304;
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 10px;
}
.lq-section-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800; color: #111; margin: 0 0 12px;
}
.lq-section-header p { font-size: 16px; color: #666; line-height: 1.65; margin: 0; }

/* ── Team grid ─────────────────────────────────────────────────── */
.lq-team-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px; margin-bottom: 90px;
}
@media(max-width:900px){ .lq-team-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .lq-team-grid{ grid-template-columns:1fr; } }

/* ── Card ──────────────────────────────────────────────────────── */
.lq-team-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: visible;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    /* entrance + hover share one transition — no JS inline styles needed */
    transition: opacity .38s ease, transform .38s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.lq-team-card.lq-card-in {
    opacity: 1; transform: translateY(0);
}
.lq-team-card.lq-card-in:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0,0,0,.14);
}

/* photo */
.lq-card-photo-wrap {
    position: relative; height: 260px; border-radius: 22px 22px 0 0;
    overflow: hidden;
    background: var(--lq-avatar-bg, #D62304);
}
/* initials fallback */
.lq-card-photo-wrap::before {
    content: attr(data-initials);
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 72px; font-weight: 900; color: rgba(255,255,255,.35);
    letter-spacing: -4px;
}
.lq-card-photo {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.lq-card-photo-wrap.lq-no-photo .lq-card-photo { display: none; }
.lq-team-card:hover .lq-card-photo { transform: scale(1.06); }

.lq-card-photo-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
}
.lq-card-role-badge {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    color: #fff; font-size: 10px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 5px 13px; border-radius: 30px;
    background: var(--lq-badge-color, #D62304);
}

/* body */
.lq-card-body { padding: 20px 22px 22px; border-radius: 0 0 22px 22px; }
.lq-card-name { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 3px; }
.lq-card-specialty {
    font-size: 12px; font-weight: 700; color: #D62304;
    text-transform: uppercase; letter-spacing: .8px; margin: 0 0 12px;
}
.lq-card-bio {
    font-size: 13.5px; color: #666; line-height: 1.65; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* mini stats */
.lq-card-stats {
    display: flex; background: #f7f7f7; border-radius: 12px;
    overflow: hidden; margin-bottom: 18px;
}
.lq-card-stat {
    flex: 1; text-align: center; padding: 11px 8px;
    border-right: 1px solid #eee;
}
.lq-card-stat:last-child { border-right: none; }
.lq-card-stat .num { display: block; font-size: 19px; font-weight: 800; color: #111; }
.lq-card-stat .lbl { display: block; font-size: 10px; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* footer */
.lq-card-footer { display: flex; align-items: center; justify-content: space-between; }
.lq-card-profile-btn {
    font-size: 13px; font-weight: 700; color: #111;
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    transition: color .2s;
}
.lq-card-profile-btn:hover { color: #D62304; }
.lq-card-profile-btn::after { content: '→'; transition: transform .2s; display: inline-block; }
.lq-card-profile-btn:hover::after { transform: translateX(4px); }

/* ── Social fan ────────────────────────────────────────────────── */
.lq-social-fan { position: relative; }

.lq-share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #111; color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s, transform .35s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}
.lq-share-btn:hover         { background: #333; }
.lq-social-fan.lq-fan-open .lq-share-btn {
    transform: rotate(135deg); background: #D62304;
}

.lq-fan-list {
    position: absolute; bottom: 50px; right: 0;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    pointer-events: none;
}
.lq-fan-item {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    opacity: 0; transform: translateY(14px) scale(.6);
    transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1), background .2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.lq-fan-item:hover { filter: brightness(1.15); transform: scale(1.12) !important; }
.lq-social-fan.lq-fan-open .lq-fan-list { pointer-events: auto; }
.lq-social-fan.lq-fan-open .lq-fan-item { pointer-events: auto; }

.lq-social-fan.lq-fan-open .lq-fan-item:nth-child(1){ opacity:1; transform:translateY(0) scale(1); transition-delay:0ms; }
.lq-social-fan.lq-fan-open .lq-fan-item:nth-child(2){ opacity:1; transform:translateY(0) scale(1); transition-delay:65ms; }
.lq-social-fan.lq-fan-open .lq-fan-item:nth-child(3){ opacity:1; transform:translateY(0) scale(1); transition-delay:130ms; }
.lq-social-fan.lq-fan-open .lq-fan-item:nth-child(4){ opacity:1; transform:translateY(0) scale(1); transition-delay:195ms; }

.lq-fi-li { background:#0077b5; }
.lq-fi-tw { background:#000; }
.lq-fi-wa { background:#25d366; }
.lq-fi-em { background:#D62304; }

/* ── Values section ────────────────────────────────────────────── */
.lq-team-values {
    background: #f5f6fa; padding: 80px 24px;
    margin-bottom: 0;
}
.lq-values-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
    max-width: 1140px; margin: 0 auto;
}
@media(max-width:900px){ .lq-values-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px){ .lq-values-grid{ grid-template-columns:1fr; } }

.lq-value-card {
    background: #fff; border-radius: 18px; padding: 30px 22px;
    text-align: center;
    box-shadow: 0 2px 18px rgba(0,0,0,.06);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
    border-bottom: 3px solid transparent;
}
.lq-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    border-bottom-color: #D62304;
}
.lq-value-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(214,35,4,.08);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px;
}
.lq-value-card h3 { font-size: 16px; font-weight: 800; color: #111; margin: 0 0 8px; }
.lq-value-card p  { font-size: 13px; color: #777; line-height: 1.6; margin: 0; }

/* ── CTA strip ─────────────────────────────────────────────────── */
.lq-team-cta {
    background: linear-gradient(135deg, #c91e00 0%, #D62304 50%, #ff4a1f 100%);
    padding: 70px 24px; text-align: center; position: relative; overflow: hidden;
}
.lq-team-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.lq-team-cta h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; color: #fff; margin: 0 0 12px; position: relative; }
.lq-team-cta p  { font-size: 17px; color: rgba(255,255,255,.82); margin: 0 0 32px; position: relative; }
.lq-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #D62304;
    font-size: 15px; font-weight: 800;
    padding: 15px 36px; border-radius: 50px; text-decoration: none;
    box-shadow: 0 6px 28px rgba(0,0,0,.2);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
    position: relative;
}
.lq-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.28); color: #D62304; }

/* ═══════════════════════════════════════════════════════════════
   Detail Page
═══════════════════════════════════════════════════════════════ */
.lq-team-detail { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }

.lq-detail-back {
    display: inline-flex; align-items: center; gap: 7px;
    color: #888; text-decoration: none; font-size: 14px; font-weight: 600;
    margin-bottom: 36px; transition: color .2s;
}
.lq-detail-back:hover { color: #D62304; }

.lq-detail-hero {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 56px; align-items: start; margin-bottom: 52px;
}
@media(max-width:760px){ .lq-detail-hero{ grid-template-columns:1fr; } }

.lq-detail-photo-wrap {
    border-radius: 24px; overflow: hidden;
    aspect-ratio: 1; box-shadow: 0 20px 60px rgba(0,0,0,.15);
    background: var(--lq-avatar-bg, #D62304); position: relative;
}
.lq-detail-photo-wrap::before {
    content: attr(data-initials);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 96px; font-weight: 900; color: rgba(255,255,255,.3);
}
.lq-detail-photo { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.lq-detail-intro .lq-card-role-badge { position: static; display: inline-block; margin-bottom: 14px; border-radius: 30px; }
.lq-detail-intro h1 { font-size: clamp(30px,5vw,44px); font-weight: 900; color: #111; margin: 0 0 6px; }
.lq-detail-specialty { font-size: 15px; font-weight: 700; color: #D62304; margin: 0 0 20px; text-transform: uppercase; letter-spacing: .8px; }
.lq-detail-bio { font-size: 16px; color: #555; line-height: 1.75; margin: 0 0 24px; }

.lq-detail-social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.lq-detail-social-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.lq-detail-social-btn:hover { transform: scale(1.12) translateY(-2px); }

.lq-detail-stat-row {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 16px; margin-bottom: 52px;
}
@media(max-width:560px){ .lq-detail-stat-row{ grid-template-columns:1fr; } }

.lq-detail-stat-card {
    background: #fff; border-radius: 16px; padding: 28px 20px;
    text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.07);
    border-top: 4px solid #D62304;
}
.lq-detail-stat-card .num { display: block; font-size: 36px; font-weight: 900; color: #D62304; margin-bottom: 4px; }
.lq-detail-stat-card .lbl { font-size: 12px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

.lq-detail-expertise { margin-bottom: 52px; }
.lq-detail-expertise h2 { font-size: 22px; font-weight: 800; color: #111; margin: 0 0 18px; }
.lq-expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.lq-expertise-tag {
    background: rgba(214,35,4,.07); color: #D62304;
    font-size: 13px; font-weight: 700;
    padding: 8px 16px; border-radius: 30px;
    border: 1px solid rgba(214,35,4,.2);
    transition: background .2s;
}
.lq-expertise-tag:hover { background: rgba(214,35,4,.14); }

/* ═══════════════════════════════════════════════════════════════
   CEO / Director Message Block
═══════════════════════════════════════════════════════════════ */
.lq-ceo-section {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 560px;
    background: linear-gradient(135deg, #0a0a14 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}
@media(max-width:860px){ .lq-ceo-section{ grid-template-columns:1fr; } }

/* Photo column */
.lq-ceo-photo-col {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: var(--lq-avatar-bg, #D62304);
}
/* initials fallback */
.lq-ceo-photo-col::before {
    content: attr(data-initials);
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 120px; font-weight: 900; color: rgba(255,255,255,.2);
    letter-spacing: -6px;
}
.lq-ceo-photo-col img {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    display: block;
}
.lq-ceo-photo-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
        to right,
        rgba(10,10,20,0)   0%,
        rgba(10,10,20,0)  60%,
        rgba(10,10,20,.9) 100%
    );
}
@media(max-width:860px){
    .lq-ceo-photo-vignette{ background: linear-gradient(to bottom, rgba(10,10,20,0) 50%, rgba(10,10,20,.95) 100%); }
}

/* Content column */
.lq-ceo-content-col {
    padding: 72px 64px 72px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; z-index: 3;
}
@media(max-width:860px){ .lq-ceo-content-col{ padding: 40px 28px 56px; } }

.lq-ceo-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: #ff7b5c;
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 16px;
}
.lq-ceo-eyebrow::before {
    content: '';
    display: inline-block; width: 28px; height: 2px;
    background: #D62304; flex-shrink: 0;
}

.lq-ceo-quote-mark {
    font-size: 110px; line-height: .75;
    font-family: Georgia, 'Times New Roman', serif;
    color: #D62304; opacity: .55;
    margin-bottom: 12px; display: block;
    pointer-events: none; user-select: none;
}

.lq-ceo-message {
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255,255,255,.88);
    font-weight: 400; font-style: italic;
    line-height: 1.7;
    margin: 0 0 36px;
    border: none; padding: 0;
}

.lq-ceo-signature {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 22px;
}
.lq-ceo-name {
    display: block;
    font-size: 20px; font-weight: 800; color: #fff;
    text-decoration: none; margin-bottom: 4px;
    transition: color .2s;
}
.lq-ceo-name:hover { color: #ff7b5c; }
.lq-ceo-title {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════════════════════════
   Team Sections (role-based groups)
═══════════════════════════════════════════════════════════════ */
.lq-team-section {
    padding: 80px 0;
    background: #fff;
}
.lq-team-section.lq-section-alt {
    background: #f5f6fa;
}
/* Add a subtle top separator between consecutive white sections */
.lq-team-section + .lq-team-section:not(.lq-section-alt) {
    border-top: 1px solid #f0f0f0;
}
