/* =====================================================
   Author Page
   ===================================================== */

/* ---- Breadcrumb top bar ---- */
.authorTopBar {
    background: linear-gradient(90deg, #2243A4 0%, #2243A4 86.95%, #566BD0 100%);
    padding: 80px 0 18px;
}
.authorBreadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.authorBreadcrumbs li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}
.authorBreadcrumbs li:not(:last-child)::after {
    content: '›';
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    font-weight: 300;
    margin-left: 2px;
}
.authorBreadcrumbs li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.authorBreadcrumbs li a:hover { color: #fff; text-decoration: underline; }
.authorBreadcrumbs li:last-child { color: rgba(255,255,255,0.9); font-weight: 500; }

/* ---- Main section ---- */
.authorSection {
    padding: 130px 0 70px;
    background: #f5f9ff;
}

/* ---- Two-column layout ---- */
.authorLayout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* =====================================================
   Left Card
   ===================================================== */
.authorCard {
    flex-shrink: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #EDF0F4;
    border-radius: 0px 0px 16px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 32px 20px 24px;
    position: sticky;
    /* top: 90px; */
    text-align: center;
}

/* Blue top accent stripe */
.authorCard::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #2243A4, #566BD0);
    border-radius: 16px 16px 0 0;
    position: absolute;
    top: 0; left: 0; right: 0;
}

.authorCardAvatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid #EDF0F4;
    overflow: hidden;
    margin: 0 auto 14px;
    background: #f0f4ff;
}
.authorCardAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.authorCardName {
    font-size: 16px;
    font-weight: 600;
    color: #01305C;
    margin: 0 0 10px;
    line-height: 1.3;
}

.authorCardRating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 4px;
}
.authorCardRatingNum {
    font-size: 15px;
    font-weight: 600;
    color: #92ABC9;
}

.authorCardReviews {
    font-size: 14px;
    font-weight: 500;
    color: #92ABC9;
    margin: 0 0 18px;
}

.authorCardDivider {
    height: 1px;
    background: #CFDEF0;
    margin-bottom: 18px;
}

.authorCardOrders {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    margin-bottom: 22px;
}
.authorCardOrders span {
    font-size: 15px;
    font-weight: 600;
    color: #117BD4;
    line-height: 1.2;
}

.authorCardCTA {
    display: block;
    background: #2243A4;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 0;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}
.authorCardCTA:hover {
    background: #1a3690;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,67,164,0.35);
}

/* =====================================================
   Right Content
   ===================================================== */
.authorContent {
    flex: 1;
    min-width: 0;
}

.authorBioBlock {
    background: #fff;
    border: 1px solid #EDF0F4;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 32px 36px;
    margin-bottom: 24px;
}
.authorBioBlock h1 {
    font-size: 20px;
    font-weight: 700;
    color: #01305C;
    margin: 0 0 14px;
    line-height: 1.3;
}
.authorBioBlock p {
    font-size: 15px;
    line-height: 1.8;
    color: #14181B;
    margin: 0;
}

.authorCompBlock {
    background: #fff;
    border: 1px solid #EDF0F4;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 32px 36px;
}
.authorCompBlock h2 {
    font-size: 20px;
    font-weight: 700;
    color: #01305C;
    margin: 0 0 18px;
    line-height: 1.3;
}
.authorCompBlock ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
}
.authorCompBlock li {
    font-size: 14px;
    line-height: 1.6;
    color: #14181B;
    padding: 8px 0 8px 20px;
    border-bottom: 1px solid #EDF0F4;
    position: relative;
}
.authorCompBlock li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #117BD4;
}

/* =====================================================
   Hover Effects
   ===================================================== */

/* Author card — lift on hover */
.authorCard {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.authorCard:hover {
    box-shadow: 0 12px 40px rgba(34,67,164,0.14);
    transform: translateY(-3px);
}

/* Avatar ring pulse */
.authorCardAvatar {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.authorCard:hover .authorCardAvatar {
    border-color: #2243A4;
    box-shadow: 0 0 0 4px rgba(34,67,164,0.12);
}

/* Bio block — accent border on hover */
.authorBioBlock {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.authorBioBlock:hover {
    border-color: #2243A4;
    box-shadow: 0 8px 32px rgba(34,67,164,0.10);
}

/* Competences block — accent border on hover */
.authorCompBlock {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.authorCompBlock:hover {
    border-color: #2243A4;
    box-shadow: 0 8px 32px rgba(34,67,164,0.10);
}

/* Competence list items — highlight row */
.authorCompBlock li {
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
    cursor: default;
    border-radius: 6px;
}
.authorCompBlock li:hover {
    background: #f0f5ff;
    color: #2243A4;
    padding-left: 26px;
}
.authorCompBlock li::before {
    transition: background 0.18s ease, transform 0.18s ease;
}
.authorCompBlock li:hover::before {
    background: #2243A4;
    transform: translateY(-50%) scale(1.3);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 991px) {
    .authorLayout { flex-direction: column; }
    .authorCard   { width: 100%; max-width: 380px; position: static; margin: 0 auto; }
    .authorContent { width: 100%; }
}

@media (max-width: 767px) {
    .authorSection { padding: 36px 0 50px; }
    .authorBioBlock,
    .authorCompBlock { padding: 24px 20px; }
    .authorCompBlock ul { grid-template-columns: 1fr; }
    .authorCard { max-width: 100%; }
}

@media (max-width: 575px) {
    .authorTopBar { padding-top: 70px; }
    .authorBioBlock h1,
    .authorCompBlock h2 { font-size: 18px; }
}
