/* Savvy HRMS – Author page. Scope: .savvy-author-page. Path: /assets/css/author.css */

/* Break Astra's container on author archives */
body.savvy-author-body #content > .ast-container{max-width:100%;padding:0;display:block}
body.savvy-author-body #primary{width:100%;margin:0;padding:0}

.savvy-author-page{
	--sa-blue:#3b4bf0; --sa-blue-d:#2a37c9; --sa-red:#ff001d; --sa-ink:#111322; --sa-mute:#5b6075;
	--sa-line:#e8eaf3; --sa-soft:#f4f5ff; --sa-pink:#fff0f0;
	font-family:'CabinetGrotesk',inherit,sans-serif;color:var(--sa-ink);overflow:hidden;background:#fff;
}
.savvy-author-page *{box-sizing:border-box}
.savvy-author-page a{text-decoration:none;color:inherit}
.savvy-author-page img{max-width:100%;height:auto;display:block}
.savvy-author-page h1,.savvy-author-page h2,.savvy-author-page h3,.savvy-author-page p{margin:0}
.savvy-author-page .sa-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.savvy-author-page .sa-blue{color:var(--sa-blue)}
.savvy-author-page .sa-red{color:var(--sa-red)}

.savvy-author-page .sa-title{font-size:36px;font-weight:600;text-align:center;line-height:1.2}
.savvy-author-page .sa-title--left{text-align:left;font-size:32px}
.savvy-author-page .sa-sub{text-align:center;color:var(--sa-mute);font-size:15px;margin-top:10px}
.savvy-author-page .sa-sub--left{text-align:left;font-size:14px;margin-top:6px}

.savvy-author-page .sa-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:999px;font-size:13px;font-weight:600;transition:.2s;border:1px solid transparent}
.savvy-author-page .sa-btn--linkedin{background:#0a66c2;color:#fff}
.savvy-author-page .sa-btn--linkedin:hover{background:#084e96;color:#fff}
.savvy-author-page .sa-in{background:#fff;color:#0a66c2;border-radius:3px;font-size:11px;font-weight:700;padding:0 3px;line-height:15px}
.savvy-author-page .sa-btn--ghost{border-color:#cfd3e6;background:#fff;color:var(--sa-ink)}
.savvy-author-page .sa-btn--ghost:hover{border-color:var(--sa-blue);color:var(--sa-blue)}
.savvy-author-page .sa-btn--red{background:var(--sa-red);color:#fff;border-radius:6px;padding:8px 14px;font-size:14px}
.savvy-author-page .sa-btn--red:hover{background:#c00f33;color:#fff}

/* ---------- Hero ---------- */
.savvy-author-page .sa-hero{padding:90px 0 30px;background:radial-gradient(300px 200px at 75% 50%,rgba(255,120,130,.22),transparent 70%)}
.savvy-author-page .sa-hero__grid{display:flex;align-items:center;justify-content:space-between;gap:40px}
.savvy-author-page .sa-hero__left{display:flex;gap:4rem;align-items:center;flex:1;max-width:700px;position:relative}
.savvy-author-page .sa-hero__left .sa-hero__photo{position:relative;flex:0 0 190px;width:190px;height:250px}
.savvy-author-page .sa-hero__left .sa-hero__photo:before{content:"";position:absolute;right:-1.5rem;top:-2rem;bottom:-2rem;width:100%;max-width:100%;background:#eef0fb;border-radius:10px;z-index:0;width:50px}
.savvy-author-page .sa-hero__photo img{position:relative;z-index:1;width:190px;height:250px;flex:0 0 190px;border-radius:14px;background:#ddd}
.savvy-author-page .sa-hero__photo img{object-fit:cover}
.savvy-author-page .sa-hero__info{position:relative;z-index:1}
.savvy-author-page .sa-pill{display:inline-block;background:#e3e6fd;color:var(--sa-blue);font-size:12px;letter-spacing:2.4px;font-weight:600;padding:5px 14px;border-radius:999px;margin-bottom:12px}
.savvy-author-page .sa-hero__name{font-size:34px;font-weight:600;line-height:1.15}
.savvy-author-page .sa-hero__role{color:var(--sa-mute);font-size:18px;margin:6px 0 10px 0;font-weight:500}
.savvy-author-page .sa-hero__bio{font-size:16px;line-height:1.65;color:#3a3f55;max-width:430px}

.savvy-author-page .sa-stats{background:#fff;border:1px solid var(--sa-line);border-radius:20px;box-shadow:0 14px 40px rgba(30,40,120,.08);padding:26px 30px;width:100%;max-width:380px;flex:0 0 auto;margin:auto}
.savvy-author-page .sa-stats__row{display:flex;align-items:center;gap:26px}
.savvy-author-page .sa-stats__col{display:flex;flex-direction:column}
.savvy-author-page .sa-stats__col:first-child{padding-right:26px;border-right:1px solid var(--sa-line)}
.savvy-author-page .sa-stats__col strong{font-size:34px;line-height:1;font-weight:600}
.savvy-author-page .sa-stats__col span{color:var(--sa-mute);font-size:16px}
.savvy-author-page .sa-stats__since{font-size:20px!important;color:var(--sa-ink)!important;font-weight:600}
.savvy-author-page .sa-stats__btns{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}

/* ---------- Modules ---------- */
.savvy-author-page .sa-modules{padding:70px 0;background-image: linear-gradient(to top, #f8f8fb 40%, transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='702' viewBox='0 0 1920 702' fill='none'%3E%3Cpath d='M-222.816 641.487L1943.41 647.26L1945.12 5.77585C1913.23 115.495 1636.9 292.427 786.658 122.4C-63.589 -47.6266 -240.594 397.614 -222.816 641.487Z' fill='%23f8f8fb'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center top; background-size: 100% 100%, 100% auto; padding: 10rem 3rem 4rem;}
.savvy-author-page .sa-modules .sa-slider{margin-top:36px}
.savvy-author-page .sa-modules__grid{gap:22px;padding:6px 4px 22px}
.savvy-author-page .sa-modules__grid .sa-mcard{flex:0 0 calc((100% - 44px)/3);scroll-snap-align:start;border:1px solid #ccc}
.savvy-author-page .sa-mcard{flex:0 0 calc((100% - 44px)/3);background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.savvy-author-page .sa-mcard__img{display:block;aspect-ratio:16/8.5;background:var(--sa-soft);overflow:hidden}
.savvy-author-page .sa-mcard__img img{width:100%;height:100%;object-fit:cover}
.savvy-author-page .sa-mcard__body{padding:18px 18px 10px;flex:1}
.savvy-author-page .sa-mcard__body h3{font-size:16px;font-weight:600;line-height:1.4}
.savvy-author-page .sa-readmore{display:inline-block;margin-top:14px;color:var(--sa-blue);font-size:11px;font-weight:700;letter-spacing:.5px;border-bottom:1px solid var(--sa-blue)}
.savvy-author-page .sa-mcard__foot{display:flex;justify-content:space-between;padding:10px 18px;border-top:1px solid var(--sa-line);font-size:11px;color:var(--sa-mute)}

/* ---------- Articles ---------- */
.savvy-author-page .sa-articles{padding:60px 0 70px}
.savvy-author-page .sa-articles__grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.savvy-author-page .sa-articles__head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.savvy-author-page .sa-filter{display:flex;gap:10px}
.savvy-author-page .sa-filter input,.sa-filter select{height:32px;border:1px solid #d9dcec;border-radius:999px;background:#fff;font-size:12px;padding:0 14px;color:var(--sa-mute);box-shadow:none}
.savvy-author-page .sa-filter input{width:170px}
.savvy-author-page .sa-list{display:flex;flex-direction:column;gap:14px}
.savvy-author-page .sa-item{position:relative;display:grid;grid-template-columns:190px 1fr auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--sa-line);border-radius:12px;padding:12px 16px 12px 12px;transition:.2s}
.savvy-author-page .sa-item:hover{box-shadow:0 10px 28px rgba(30,40,120,.12);transform:translateY(-2px)}
.savvy-author-page .sa-item__img{display:block;border-radius:8px;overflow:hidden;background:var(--sa-soft)}
.savvy-author-page .sa-item__img img{width:100%;height:100%;object-fit:fill}
.savvy-author-page .sa-badge{display:inline-block;background:#ffe5e8;color:var(--sa-red);font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:3px 10px;border-radius:999px;line-height:1em}
.savvy-author-page .sa-item__title{font-size:16px;font-weight:600;line-height:1.35;margin:3px 0 6px}
.savvy-author-page .sa-item__excerpt{font-size:13px;line-height:1.2;color:var(--sa-mute)}
.savvy-author-page .sa-item__meta{display:flex;flex-direction:column;align-items:flex-end;gap:26px;align-self:stretch;justify-content:space-between;min-width:170px}
.savvy-author-page .sa-item__author{display:flex;align-items:center;gap:10px;align-self:flex-end}
.savvy-author-page .sa-item__author img{width:38px;height:38px;border-radius:10px;object-fit:cover}
.savvy-author-page .sa-item__author strong{display:block;font-size:13px;font-weight:600}
.savvy-author-page .sa-item__author span{font-size:11px;color:var(--sa-mute)}
.savvy-author-page .sa-item__date{font-size:11px;color:var(--sa-mute);display:flex;align-items:center;gap:8px}
.savvy-author-page .sa-item__date i{width:3px;height:3px;border-radius:50%;background:#aab}
.savvy-author-page .sa-empty{padding:40px;text-align:center;color:var(--sa-mute)}

.savvy-author-page .sa-pagination ul{list-style:none;display:flex;gap:8px;justify-content:center;margin:28px 0 0;padding:0}
.savvy-author-page .sa-pagination a, .savvy-author-page .sa-pagination span{display:flex;min-width:36px;height:36px;align-items:center;justify-content:center;border:1px solid var(--sa-line);border-radius:10px;font-size:13px;background:#fff}
.savvy-author-page .sa-pagination .current, .savvy-author-page .sa-pagination a:hover{background:var(--sa-blue);color:#fff;border-color:var(--sa-blue)}

/* Sidebar */
.savvy-author-page .sa-side{display:flex;flex-direction:column;gap:20px;position:sticky;top:100px}
.savvy-author-page .sa-cta{background:linear-gradient(180deg,#ffe9e9,#fff6f6);border-radius:16px;padding:24px 22px 0;overflow:hidden;text-align:left}
.savvy-author-page .sa-cta h3{font-size:24px;font-weight:600;line-height:1.2}
.savvy-author-page .sa-cta h3 span{color:var(--sa-red);display:block}
.savvy-author-page .sa-cta p{font-size:14px;color:var(--sa-mute);margin:10px 0 14px;max-width:190px}
.savvy-author-page .sa-cta img{margin:14px auto 0;margin-right:0;max-height:210px;width:auto}
.savvy-author-page .sa-topics{background:#f4f5ff;border:1px solid var(--sa-line);border-radius:16px;padding:20px}
.savvy-author-page .sa-topics h3{font-size:16px;font-weight:600}
.savvy-author-page .sa-topics p{font-size:12px;color:var(--sa-mute);margin:4px 0 14px}
.savvy-author-page .sa-topics__tags{display:block;grid-template-columns:1fr 1fr;gap:8px}
.savvy-author-page .sa-topics__tags a{background:#fff;border:1px solid #d9dcec;border-radius:6px;padding:6px 8px;font-size:12px;text-align:center;color:var(--sa-ink);white-space:nowrap;transition:.2s}
.savvy-author-page .sa-topics__tags a:hover{background:var(--sa-line);border-color:var(--sa-blue);color:#000}

/* ---------- Writers ---------- */
.savvy-author-page .sa-writers{background:var(--sa-pink);padding:34px 0}
.savvy-author-page .sa-writers__grid{display:flex;align-items:center;justify-content:space-between;gap:30px}
.savvy-author-page .sa-writers__text{flex:0 0 auto}
.savvy-author-page .sa-writers__list{flex:1;min-width:0}
.savvy-author-page .sa-writers__list .sa-track{gap:2rem;padding:6px 3rem 10px}
.savvy-author-page .sa-writers__list .sa-writer{flex:0 0 calc((100% - 28px)/3);min-width:0;scroll-snap-align:center}
.savvy-author-page .sa-writer>span{min-width:0}
.savvy-author-page .sa-writer strong,.sa-writer em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.savvy-author-page .sa-writer{display:flex;align-items:center;gap:12px;background:#fff;border-radius:10px;padding:10px 14px 10px 10px;}
.savvy-author-page .sa-writer img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.savvy-author-page .sa-writer strong{display:block;font-size:13px;font-weight:600}
.savvy-author-page .sa-writer em{font-style:normal;font-size:11px;color:var(--sa-mute)}
.savvy-author-page .sa-writers__text h2{font-size:26px;font-weight:600;line-height:1.2}
.savvy-author-page .sa-writers__text h2 span{display:block;color:var(--sa-red)}
.savvy-author-page .sa-writers__text p{font-size:16px;color:var(--sa-mute);margin-top:6px}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
	.savvy-author-page .sa-hero__grid{flex-direction:column;align-items:flex-start}
	.savvy-author-page .sa-articles__grid{grid-template-columns:1fr}
	.savvy-author-page .sa-side{position:static}
}
@media (max-width:767px){
	.savvy-author-page .sa-hero{padding:50px 0;padding-bottom:10px;background: radial-gradient(300px 200px at 50% 16%, rgba(255, 120, 130, .22), transparent 70%);}
	.savvy-author-page .sa-hero__left{flex-direction:column;align-items:flex-start}
	.savvy-author-page .sa-hero__left:before{display:none}
	.savvy-author-page .sa-hero__photo{width:150px;height:200px;flex-basis:auto}
	.savvy-author-page .sa-stats{max-width:100%}
	.savvy-author-page .sa-title{font-size:28px}
	.savvy-author-page .sa-item{grid-template-columns:1fr}
	.savvy-author-page .sa-item__meta{align-items:flex-start;min-width:0;gap:12px}
	.savvy-author-page .sa-item__author{align-self:flex-start}
	.savvy-author-page .sa-filter{width:100%}.sa-filter input{flex:1;width:auto}
	.savvy-author-page .sa-writers__grid{flex-direction:column;align-items:flex-start}
	.savvy-author-page .sa-writers__text{order:-1}
	.savvy-author-page .sa-writers__list .sa-writer{flex:0 0 100%;scroll-snap-align:center}
	.savvy-author-page .sa-hero__left .sa-hero__photo {margin:auto}
	.savvy-author-page .sa-hero__left .sa-hero__photo:before { top:-1rem;bottom:-1rem;right:-1rem;width:30px;border-radius:6px}
	.savvy-author-page .sa-writers__list .sa-track {padding:6px 2rem 10px}
}


/* ---------- Horizontal scroll sliders ---------- */
.savvy-author-page .sa-slider{position:relative}
.savvy-author-page .sa-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;cursor:grab;justify-content:center}
.savvy-author-page .sa-track::-webkit-scrollbar{display:none}
.savvy-author-page .sa-track.is-drag{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.savvy-author-page .sa-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid var(--sa-line);background:#fff;color:var(--sa-blue);font-size:24px;line-height:1;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.savvy-author-page .sa-arrow:hover{background:var(--sa-line);color:#fff;border-color:var(--sa-blue)}
.savvy-author-page .sa-arrow[disabled]{opacity:0;pointer-events:none}
.savvy-author-page .sa-arrow--prev{left:-14px}
.savvy-author-page .sa-arrow--next{right:-14px}
.savvy-author-page .arrow-right, .savvy-author-page .arrow-left {display: block; width: 7px; height: 7px; border-top: 1px solid #000; border-left: 1px solid #000;}
.savvy-author-page .arrow-right { transform: rotate(135deg); margin-left: -3px;}
.savvy-author-page .arrow-left { transform: rotate(-45deg); margin-right: -3px; }
@media (max-width:1024px){.savvy-author-page .sa-modules__grid .sa-mcard{flex-basis:calc((100% - 22px)/2)}}
@media (max-width:767px){.savvy-author-page .sa-modules__grid .sa-mcard{flex-basis:100%;scroll-snap-align:center}.savvy-author-page .sa-arrow--prev{left:-6px}.savvy-author-page .sa-arrow--next{right:-7px}.savvy-author-page .sa-writers__list{width:100%}}
@media (max-width:1024px){.savvy-author-page .sa-writers__list .sa-writer{flex-basis:calc((100% - 14px)/2)}}
@media (max-width:767px){.savvy-author-page .sa-writers__list .sa-writer{flex-basis:100%}.savvy-author-page .sa-modules { padding: 4rem 0rem 1rem; background-image: linear-gradient(to top, #f8f8fb 80%, transparent 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='702' viewBox='0 0 1920 702' fill='none'%3E%3Cpath d='M-222.816 641.487L1943.41 647.26L1945.12 5.77585C1913.23 115.495 1636.9 292.427 786.658 122.4C-63.589 -47.6266 -240.594 397.614 -222.816 641.487Z' fill='%23f8f8fb'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center top; background-size: 100% auto, 100% auto; }.savvy-author-page .sa-hero__name{font-size:24px;font-weight:600;line-height:0.5}
.savvy-author-page .sa-stats{box-shadow:none;}.savvy-author-page .sa-modules__grid{padding:6px 10px 22px}.savvy-author-page .sa-hero__role{margin:6px 0 5px 0}}