
:root{
  --bg:#f4f5f7;
  --surface:#ffffff;
  --text:#1d2327;
  --muted:#646970;
  --border:#dcdcde;
  --accent:#2271b1;
  --accent-dark:#135e96;
  --shadow:0 8px 30px rgba(0,0,0,.08);
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}
img{max-width:100%;display:block}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}

.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
}
.header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand strong{font-size:1.35rem;color:#101517}
.brand span{font-size:.78rem;color:var(--muted);margin-top:5px}
.nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.nav a{
  color:#2c3338;
  font-weight:600;
  padding:10px 13px;
  border-radius:6px;
}
.nav a:hover,.nav a.active{background:#f0f0f1;color:var(--accent)}
.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:6px;
  padding:8px 10px;
  font-size:1rem;
}

.hero-wrap{padding:28px 0 0}
.slider{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  box-shadow:var(--shadow);
  background:#111;
  aspect-ratio:16/6.2;
  min-height:330px;
}
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.015);
  transition:opacity .8s ease,transform 1s ease;
  pointer-events:none;
}
.slide.active{opacity:1;transform:scale(1);pointer-events:auto}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.74;
}
.slide-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding:clamp(22px,5vw,64px);
  background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,.05) 60%);
}
.slide-copy{max-width:720px;color:#fff}
.slide-copy .kicker{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.75rem;
  font-weight:800;
  opacity:.9;
}
.slide-copy h1{
  margin:.35rem 0 .5rem;
  font-size:clamp(2rem,4.5vw,4.4rem);
  line-height:1.03;
}
.slide-copy p{font-size:clamp(1rem,1.6vw,1.18rem);margin:0 0 18px;color:#f5f5f5}
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff!important;
  font-weight:700;
  padding:11px 17px;
  border-radius:6px;
}
.btn:hover{background:var(--accent-dark)}
.slider-dots{
  position:absolute;
  left:0;right:0;bottom:13px;
  display:flex;justify-content:center;gap:8px;
  z-index:5;
}
.slider-dot{
  width:10px;height:10px;border-radius:50%;
  border:0;background:rgba(255,255,255,.55);cursor:pointer;padding:0;
}
.slider-dot.active{background:#fff;transform:scale(1.25)}

.content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:30px;
  padding:40px 0 60px;
}
.main-column h2.section-title{
  margin:0 0 18px;
  font-size:1.7rem;
}
.post-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:28px;
  margin-bottom:22px;
  box-shadow:0 3px 14px rgba(0,0,0,.035);
}
.post-meta{
  font-size:.82rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:6px;
}
.post-card h3{
  font-size:1.65rem;
  line-height:1.2;
  margin:0 0 10px;
}
.post-card p{margin:0 0 16px;color:#3c434a}
.read-more{font-weight:700}
.sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.widget{
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
}
.widget h3{margin:0 0 12px;font-size:1.08rem}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{padding:8px 0;border-bottom:1px solid #eee}
.widget li:last-child{border-bottom:0}
.widget p{color:#50575e;margin:0}

.page-hero{
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:54px 0 44px;
}
.page-hero h1{font-size:clamp(2.1rem,4vw,3.6rem);margin:0 0 8px}
.page-hero p{max-width:760px;color:var(--muted);font-size:1.05rem;margin:0}
.page-content{
  width:min(900px,calc(100% - 36px));
  margin:38px auto 70px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:clamp(24px,4vw,48px);
}
.page-content h2,.page-content h3{line-height:1.25}
.page-content p{color:#343a40}
.portfolio-grid,.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:24px;
}
.tile{
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover}
.tile-body{padding:18px}
.tile-body h3{margin:0 0 8px}
.tile-body p{margin:0;color:var(--muted)}

.article-header{margin-bottom:28px}
.article-header h1{font-size:clamp(2rem,4vw,3.3rem);margin:0 0 8px}
.article-meta{color:var(--muted);font-size:.92rem}
.article-body p{margin:0 0 1.25em}
.article-body h2{margin-top:1.8em}

.site-footer{
  background:#1d2327;
  color:#c3c4c7;
  padding:36px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.site-footer a{color:#fff}

@media (max-width:900px){
  .content-grid{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:repeat(2,1fr)}
  .portfolio-grid,.product-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  .header-inner{min-height:66px}
  .menu-btn{display:block}
  .nav{
    display:none;
    position:absolute;
    top:66px;
    left:0;right:0;
    background:#fff;
    border-bottom:1px solid var(--border);
    padding:12px 18px 18px;
  }
  .nav.open{display:flex;flex-direction:column;align-items:stretch}
  .nav a{width:100%}
  .brand span{display:none}
  .slider{aspect-ratio:4/5;min-height:0}
  .slide-overlay{padding:28px 24px 48px}
  .slide-copy h1{font-size:2.25rem}
  .sidebar{grid-template-columns:1fr}
  .portfolio-grid,.product-grid{grid-template-columns:1fr}
  .post-card{padding:22px}
}

/* About Me profile */
.about-profile{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:42px;
  align-items:start;
}
.about-profile > .academic-record{
  grid-column:1 / -1;
  width:100%;
}
.about-photo-wrap{
  display:flex;
  justify-content:center;
}
.about-photo{
  width:240px;
  height:240px;
  object-fit:cover;
  object-position:center 24%;
  border-radius:50%;
  border:7px solid #fff;
  box-shadow:0 12px 34px rgba(0,0,0,.16);
  background:#e9eaec;
}
.about-copy h2{
  margin-top:4px;
  font-size:2rem;
}
@media (max-width:760px){
  .about-profile{
    grid-template-columns:1fr;
    gap:26px;
  }
  .about-photo{
    width:210px;
    height:210px;
  }
  .about-copy h2{
    text-align:center;
  }
}

.section-heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.section-heading-row .section-title{margin:0!important}
.archive-link{font-weight:700;white-space:nowrap}
.archive-layout{padding:40px 0 65px;max-width:900px}
.archive-card h3{font-size:1.5rem}
.article-page{max-width:900px}
.article-body h2{font-size:1.5rem;margin-top:2.15em;margin-bottom:.7em}
.article-body p{font-size:1.02rem;line-height:1.78}
.article-end-links{margin-top:42px;padding-top:22px;border-top:1px solid var(--border);font-weight:700}
@media (max-width:680px){
  .section-heading-row{align-items:flex-start;flex-direction:column;gap:4px}
}


/* Academic record table */
.academic-record{
  margin-top:38px;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.academic-record h2{
  margin:0 0 10px;
  font-size:1.7rem;
}
.academic-record > p{
  margin:0 0 18px;
}
.table-responsive{
  overflow-x:auto;
}
.study-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  font-size:.95rem;
}
.study-table th,
.study-table td{
  border:1px solid var(--border);
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}
.study-table th{
  background:#0f6f9f;
  color:#fff;
  font-weight:700;
}
.study-table td:nth-child(3),
.study-table th:nth-child(3),
.study-table td:nth-child(4),
.study-table th:nth-child(4){
  white-space:nowrap;
}
@media (max-width:760px){
  .study-table{
    min-width:760px;
  }
}

/* Slider arrow controls */
.slider-controls{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.slider-controls .slider-dots{
  position:static;
  left:auto;
  right:auto;
  bottom:auto;
}
.slider-arrow{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  padding:0;
  transition:transform .2s ease, opacity .2s ease;
}
.slider-arrow:hover{
  background:transparent;
  opacity:.78;
}
.slider-arrow:active{
  transform:scale(.88);
}
.slider-arrow:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

.slider-arrow .triangle-icon{
  display:block;
  width:0;
  height:0;
}
.slider-arrow .triangle-left{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-right:11px solid #fff;
  margin-left:-2px;
}
.slider-arrow .triangle-right{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:11px solid #fff;
  margin-right:-2px;
}


/* Read All Posts */
.read-all-posts{
  margin-top:10px;
  text-align:center;
}
.read-all-posts a{
  font-weight:700;
}


/* Portfolio dropdown menu */
.nav-dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.nav-dropdown > a{
  display:block;
}
.nav-submenu{
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  display:none;
  padding:8px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  z-index:1200;
}
.nav-submenu a{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:6px;
  white-space:nowrap;
  font-weight:600;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu{
  display:block;
}
.portfolio-view-link{
  display:inline-block;
  margin-top:12px;
  font-weight:700;
}
.portfolio-entry{
  padding:24px 0;
  border-bottom:1px solid var(--border);
}
.portfolio-entry:last-of-type{
  border-bottom:0;
}
.portfolio-entry h3{
  margin:0 0 9px;
  font-size:1.35rem;
}
.portfolio-entry p{
  margin:0;
}
.portfolio-back{
  margin-top:28px;
  font-weight:700;
}
@media (max-width:680px){
  .nav-dropdown{
    display:block;
    width:100%;
  }
  .nav-dropdown > a{
    width:100%;
  }
  .nav-submenu{
    position:static;
    min-width:0;
    box-shadow:none;
    border:0;
    border-left:2px solid var(--border);
    border-radius:0;
    margin-left:14px;
    padding:4px 0 4px 8px;
  }
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu{
    display:block;
  }
}


/* Product category pages */
.product-view-link{
  display:inline-block;
  margin-top:12px;
  font-weight:700;
}
.product-entry{
  padding:24px 0;
  border-bottom:1px solid var(--border);
}
.product-entry:last-of-type{
  border-bottom:0;
}
.product-entry h3{
  margin:0 0 9px;
  font-size:1.35rem;
}
.product-entry p{
  margin:0;
}
.product-back{
  margin-top:28px;
  font-weight:700;
}


/* About Me mobile responsiveness */
.about-profile,
.about-copy,
.academic-record,
.table-responsive{
  min-width:0;
}
.about-copy,
.academic-record{
  overflow-wrap:anywhere;
}
.about-photo{
  max-width:100%;
  height:auto;
  aspect-ratio:1 / 1;
}
.table-responsive{
  width:100%;
  max-width:100%;
}

@media (max-width:760px){
  .page-hero{
    padding:36px 0 30px;
  }
  .page-hero h1{
    font-size:clamp(2rem,10vw,2.7rem);
  }
  .page-hero p{
    font-size:1rem;
    line-height:1.6;
  }
  .about-profile.page-content{
    width:calc(100% - 24px);
    margin:24px auto 46px;
    padding:24px 20px;
    border-radius:8px;
  }
  .about-profile{
    grid-template-columns:minmax(0,1fr);
    gap:24px;
  }
  .about-photo-wrap{
    width:100%;
  }
  .about-photo{
    width:min(190px,58vw);
    height:auto;
    border-width:5px;
  }
  .about-copy{
    width:100%;
  }
  .about-copy h2{
    margin:0 0 14px;
    font-size:clamp(1.65rem,8vw,2rem);
    text-align:center;
  }
  .about-copy p{
    font-size:1rem;
    line-height:1.7;
  }
  .academic-record{
    margin-top:12px;
    padding-top:24px;
  }
  .academic-record h2{
    font-size:clamp(1.45rem,7vw,1.8rem);
    overflow-wrap:anywhere;
  }
  .academic-record > p{
    font-size:.98rem;
    line-height:1.65;
  }
}

@media (max-width:640px){
  .table-responsive{
    overflow:visible;
  }
  .study-table{
    width:100%;
    min-width:0 !important;
    border-collapse:separate;
    border-spacing:0 12px;
    background:transparent;
    font-size:.95rem;
  }
  .study-table thead{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  .study-table tbody,
  .study-table tr,
  .study-table td{
    display:block;
    width:100%;
  }
  .study-table tr{
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
  }
  .study-table td{
    display:grid;
    grid-template-columns:minmax(88px,32%) minmax(0,1fr);
    gap:12px;
    padding:10px 12px;
    border:0;
    border-bottom:1px solid #ececef;
    white-space:normal !important;
    overflow-wrap:anywhere;
  }
  .study-table td:last-child{
    border-bottom:0;
  }
  .study-table td::before{
    content:attr(data-label);
    font-weight:700;
    color:var(--text);
  }
}

@media (max-width:420px){
  .about-profile.page-content{
    width:calc(100% - 16px);
    padding:20px 15px;
  }
  .about-photo{
    width:min(170px,62vw);
  }
  .study-table td{
    grid-template-columns:1fr;
    gap:3px;
  }
  .study-table td::before{
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:var(--muted);
  }
}


/* Homepage sidebar portfolio */
.portfolio-sidebar-widget h3{
  margin-bottom:14px;
}
.portfolio-sidebar-list{
  display:grid;
  gap:12px;
}
.portfolio-sidebar-card{
  display:block;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  color:var(--text);
  transition:transform .18s ease, box-shadow .18s ease;
}
.portfolio-sidebar-card:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 16px rgba(0,0,0,.08);
}
.portfolio-sidebar-card img{
  width:100%;
  aspect-ratio:16/8.5;
  object-fit:cover;
  display:block;
}
.portfolio-sidebar-title{
  display:block;
  padding:10px 12px 11px;
  font-weight:700;
  line-height:1.3;
  color:var(--accent);
}
.portfolio-sidebar-all{
  display:block;
  margin-top:14px;
  text-align:center;
  font-weight:700;
}
@media (max-width:900px) and (min-width:681px){
  .portfolio-sidebar-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* Homepage Products section */
.home-products-section{
  margin-top:42px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
}
.home-products-section .section-title{
  margin:0 0 18px;
}
.home-products-section .product-grid{
  margin-top:0;
}


/* Homepage Products clean cards */
.home-products-section .tile{
  background:#fff;
}
.home-products-section .tile-body{
  background:#fff;
}
.home-products-section .tile-body h3{
  margin:0;
}
.home-products-all{
  display:block;
  margin-top:18px;
  text-align:center;
  font-weight:700;
}


/* Homepage Products white container mobile */
@media (max-width:680px){
  .home-products-section{
    padding:18px;
  }
}

/* Article featured image */
.post-featured-image{
  display:block;
  width:100%;
  height:auto;
  margin:18px 0 16px;
  border-radius:10px;
  object-fit:cover;
}
@media (max-width:680px){
  .post-featured-image{
    margin:15px 0 14px;
    border-radius:8px;
  }
}

/* Reading comfort and refined color theme */
:root{
  --bg:#f3f6f7;
  --surface:#fcfdfd;
  --surface-soft:#f7f9fa;
  --text:#24313a;
  --muted:#667681;
  --border:#d7e0e4;
  --accent:#2f6f89;
  --accent-dark:#24566b;
  --heading:#183b4d;
  --shadow:0 10px 28px rgba(28,48,61,.07);
}

html{
  background:var(--bg);
}

body{
  color:var(--text);
  background:var(--bg);
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{
  background:#cfe5ec;
  color:#18313e;
}

a{
  color:var(--accent);
  text-underline-offset:3px;
}

a:hover{
  color:var(--accent-dark);
}

a:focus-visible,
button:focus-visible{
  outline:3px solid rgba(47,111,137,.32);
  outline-offset:3px;
}

/* Header and navigation */
.site-header{
  background:rgba(252,253,253,.97);
  border-bottom-color:#dbe3e7;
  box-shadow:0 2px 12px rgba(28,48,61,.035);
  backdrop-filter:saturate(130%) blur(8px);
}

.brand strong{
  color:#173747;
  letter-spacing:.01em;
}

.brand span{
  color:#70808a;
}

.nav a{
  color:#344650;
}

.nav a:hover,
.nav a.active{
  background:#eaf2f5;
  color:#245f78;
}

.nav-submenu{
  background:#fcfdfd;
  border-color:#d7e0e4;
  box-shadow:0 14px 32px rgba(28,48,61,.11);
}

.menu-btn{
  color:#263842;
  background:#fcfdfd;
  border-color:#ccd8dd;
}

/* General headings */
h1,h2,h3,h4{
  color:var(--heading);
}

.page-hero{
  background:#f9fbfb;
  border-bottom-color:#dde5e8;
}

.page-hero p{
  color:#697a84;
}

/* Surfaces and cards */
.page-content,
.post-card,
.widget,
.tile,
.home-products-section,
.portfolio-sidebar-card{
  background:var(--surface);
  border-color:var(--border);
  box-shadow:var(--shadow);
}

.page-content{
  border-radius:12px;
}

.post-card{
  border-radius:12px;
  padding:30px;
  margin-bottom:24px;
}

.post-card:not(.Odd-Post):not(.Even-Post) p{
  color:#40515b;
}

.post-meta,
.article-meta{
  color:#71818b;
}

.widget p,
.tile-body p{
  color:#5d6e78;
}

.widget li{
  border-bottom-color:#e6ecef;
}

.btn{
  background:#2f6f89;
  border-radius:7px;
  box-shadow:0 3px 10px rgba(47,111,137,.18);
}

.btn:hover{
  background:#24566b;
}

/* Improve homepage and archive card reading */
.post-card h3{
  line-height:1.22;
  letter-spacing:-.012em;
}

.post-card p{
  line-height:1.72;
}

.read-more{
  letter-spacing:.005em;
}

/* Article reading experience */
.article-page{
  max-width:920px;
  padding:clamp(28px,5vw,54px);
}

.article-header{
  margin-bottom:34px;
}

.article-header h1{
  color:#173b4d;
  max-width:820px;
  font-size:clamp(2rem,4vw,3.25rem);
  line-height:1.09;
  letter-spacing:-.025em;
  margin-top:7px;
  margin-bottom:12px;
}

.article-meta{
  font-size:.9rem;
  letter-spacing:.015em;
}

.post-featured-image{
  margin:22px 0 34px;
  border-radius:12px;
  box-shadow:0 7px 22px rgba(28,48,61,.10);
}

.article-body{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

.article-body p{
  color:#2f3d46;
  font-size:1.075rem;
  line-height:1.86;
  margin:0 0 1.42em;
  letter-spacing:.002em;
}

.article-body .post-intro{
  color:#283842;
  font-size:1.11rem;
  line-height:1.88;
}

.article-body h2{
  color:#1d5368;
  font-size:1.55rem;
  line-height:1.28;
  letter-spacing:-.012em;
  margin-top:2.15em;
  margin-bottom:.72em;
}

.article-body h3{
  color:#244f61;
  line-height:1.32;
  margin-top:1.9em;
}

.article-body a{
  color:#286985;
  text-decoration:underline;
  text-decoration-color:rgba(40,105,133,.38);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.article-body a:hover{
  color:#1c5269;
  text-decoration-color:#1c5269;
}

.article-body strong{
  color:#223741;
}

/* Keep calls-to-action and article navigation visually separate */
.post-cta,
.article-end-links{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

.post-cta{
  margin-top:40px;
  padding:22px 24px;
  background:#f0f6f7;
  border:1px solid #d5e4e8;
  border-radius:10px;
}

.article-end-links{
  border-top-color:#dce5e8;
}

/* About page and table */
.about-copy p,
.academic-record > p{
  color:#394b55;
  line-height:1.78;
}

.about-photo{
  border-color:#fcfdfd;
  box-shadow:0 12px 30px rgba(28,48,61,.14);
}

.study-table{
  background:#fcfdfd;
}

.study-table th{
  background:#2e687f;
}

.study-table th,
.study-table td{
  border-color:#d6e0e4;
}

.study-table tbody tr:nth-child(even){
  background:#f7f9fa;
}

/* Portfolio / product pages */
.portfolio-entry,
.product-entry{
  border-bottom-color:#dfe7ea;
}

.portfolio-entry p,
.product-entry p{
  color:#3d4e58;
  line-height:1.75;
}

/* Footer */
.site-footer{
  background:#182a34;
  color:#c8d3d8;
}

.site-footer a{
  color:#e7f2f5;
}

.site-footer a:hover{
  color:#ffffff;
}

/* Slider: slightly softer text contrast and overlay */
.slider{
  background:#172a34;
  box-shadow:0 12px 30px rgba(28,48,61,.13);
}

.slide img{
  opacity:.80;
}

.slide-overlay{
  background:
    linear-gradient(
      0deg,
      rgba(18,34,44,.82) 0%,
      rgba(18,34,44,.46) 45%,
      rgba(18,34,44,.10) 78%
    );
}

.slide-copy p{
  color:#edf3f5;
  line-height:1.62;
}

/* Mobile reading comfort */
@media (max-width:680px){
  body{
    line-height:1.68;
  }

  .container{
    width:min(var(--max),calc(100% - 28px));
  }

  .page-content{
    width:calc(100% - 22px);
    margin-top:24px;
    margin-bottom:48px;
    padding:24px 19px;
  }

  .post-card{
    padding:23px 20px;
    border-radius:10px;
  }

  .post-card h3{
    font-size:1.45rem;
  }

  .article-page{
    padding:24px 19px 34px;
  }

  .article-header{
    margin-bottom:28px;
  }

  .article-header h1{
    font-size:clamp(2rem,10vw,2.65rem);
    line-height:1.1;
  }

  .post-featured-image{
    margin:18px 0 27px;
    border-radius:9px;
  }

  .article-body p{
    font-size:1.035rem;
    line-height:1.8;
    margin-bottom:1.35em;
  }

  .article-body .post-intro{
    font-size:1.065rem;
    line-height:1.82;
  }

  .article-body h2{
    font-size:1.4rem;
    margin-top:1.95em;
  }

  .post-cta{
    padding:18px 17px;
  }
}

/* Slider light navigation text */
.slider .slide-copy,
.slider .slide-copy h1,
.slider .slide-copy h2,
.slider .slide-copy h3,
.slider .slide-copy p,
.slider .slide-copy a{
  color:#ffffff;
}

.slider .slide-copy a{
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}

.slider .slide-copy a:hover,
.slider .slide-copy a:focus-visible{
  color:#f4fbff;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,.9);
}

/* If the slide uses button-style links, keep them light too. */
.slider .btn,
.slider .slide-link,
.slider .hero-link{
  color:#ffffff;
}

.slider .btn:hover,
.slider .slide-link:hover,
.slider .hero-link:hover{
  color:#ffffff;
}

/* Related Posts */
.related-posts{
  max-width:760px;
  margin:42px auto 28px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.article-body .related-posts > h2{
  margin:0 0 18px;
  color:#1d5368;
  font-size:1.55rem;
  line-height:1.25;
}

.related-posts-stack{
  display:grid;
  gap:22px;
}

.related-post-feature-card{
  background:#fcfdfd;
  color:var(--text);
  border:1px solid #d7e0e4;
  border-radius:12px;
  padding:28px 30px 24px;
  box-shadow:0 10px 28px rgba(28,48,61,.07);
  overflow:hidden;
}

.related-post-meta{
  color:#6e7f89;
  font-size:.82rem;
  line-height:1.4;
  margin-bottom:9px;
  letter-spacing:.01em;
}

.article-body .related-post-feature-card h3{
  margin:0 0 15px;
  color:#173b4d;
  font-size:clamp(1.55rem,2.7vw,2.1rem);
  line-height:1.15;
  letter-spacing:-.02em;
}

.article-body .related-post-feature-card h3 a{
  color:#173b4d;
  text-decoration:none;
}

.article-body .related-post-feature-card h3 a:hover{
  color:#245f78;
  text-decoration:none;
}

.related-post-image-wrap{
  display:block;
  margin:0 0 21px;
  border-radius:10px;
  overflow:hidden;
  text-decoration:none;
}

.related-post-image{
  display:block;
  width:100%;
  aspect-ratio:3/1;
  object-fit:cover;
  border-radius:10px;
}

.article-body .related-post-feature-card p{
  margin:0 0 20px;
  color:#394b55;
  font-size:1rem;
  line-height:1.72;
}

.article-body .related-post-read-more{
  display:table;
  margin-left:auto;
  margin-right:0;
  padding:10px 17px;
  background:#2f6f89;
  color:#fff;
  border-radius:7px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(47,111,137,.16);
  transition:background .16s ease, transform .16s ease;
}

.article-body .related-post-read-more:hover{
  background:#24566b;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}

@media(max-width:680px){
  .related-posts{
    margin-top:34px;
  }

  .article-body .related-posts > h2{
    font-size:1.4rem;
    margin-bottom:15px;
  }

  .related-posts-stack{
    gap:18px;
  }

  .related-post-feature-card{
    padding:22px 19px 20px;
    border-radius:10px;
  }

  .related-post-meta{
    font-size:.8rem;
  }

  .article-body .related-post-feature-card h3{
    font-size:1.45rem;
    margin-bottom:13px;
  }

  .related-post-image-wrap{
    margin-bottom:17px;
    border-radius:8px;
  }

  .related-post-image{
    border-radius:8px;
  }

  .article-body .related-post-feature-card p{
    font-size:.98rem;
    line-height:1.68;
  }
}

/* Unified post-card design for Home and Blog Archive */
.featured-layout-card{
  background:#fcfdfd;
  color:var(--text);
  border:1px solid #d7e0e4;
  border-radius:12px;
  padding:30px 34px 28px;
  box-shadow:0 10px 28px rgba(28,48,61,.07);
  overflow:hidden;
}

.featured-layout-card .post-meta{
  color:#6e7f89;
  font-size:.84rem;
  line-height:1.4;
  margin-bottom:10px;
  text-transform:none;
  letter-spacing:.01em;
}

.featured-layout-card h3,
.featured-layout-card h2{
  margin:0 0 16px;
  color:#173b4d;
  font-size:clamp(1.9rem,3.2vw,2.55rem);
  line-height:1.12;
  letter-spacing:-.025em;
}

.featured-layout-card h3 a,
.featured-layout-card h2 a{
  color:#173b4d;
  text-decoration:none;
}

.featured-layout-card h3 a:hover,
.featured-layout-card h2 a:hover{
  color:#245f78;
  text-decoration:none;
}

.post-card-featured-image-wrap{
  display:block;
  margin:0 0 24px;
  border-radius:10px;
  overflow:hidden;
  text-decoration:none;
}

.post-card-featured-image{
  display:block;
  width:100%;
  aspect-ratio:3/1;
  object-fit:cover;
  border-radius:10px;
}

.featured-layout-card p{
  margin:0 0 20px;
  color:#394b55;
  font-size:1rem;
  line-height:1.75;
}

.featured-layout-card .post-card-read-more-btn{
  display:table;
  margin-left:auto;
  margin-right:0;
  padding:10px 17px;
  background:#2f6f89;
  color:#fff;
  border-radius:7px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(47,111,137,.16);
  transition:background .16s ease, transform .16s ease;
}

.featured-layout-card .post-card-read-more-btn:hover{
  background:#24566b;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
}

/* Archive cards now use exactly the same visual treatment. */
.blog-archive-page .featured-layout-card{
  background:#fcfdfd;
}

@media(max-width:680px){
  .featured-layout-card{
    padding:22px 20px 20px;
    border-radius:10px;
  }

  .featured-layout-card h3,
  .featured-layout-card h2{
    font-size:clamp(1.75rem,8.5vw,2.2rem);
    margin-bottom:14px;
  }

  .post-card-featured-image-wrap{
    margin-bottom:20px;
    border-radius:8px;
  }

  .post-card-featured-image{
    border-radius:8px;
  }

  .featured-layout-card p{
    font-size:.98rem;
    line-height:1.7;
  }
}



/* Index post photo hover */
.home-page .post-card-featured-image-wrap{
  display:block;
  overflow:hidden;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(28,48,61,.10);
  transition:box-shadow .22s ease, transform .22s ease;
}

.home-page .post-card-featured-image{
  transition:transform .32s ease;
  will-change:transform;
}

.home-page .post-card-featured-image-wrap:hover{
  box-shadow:0 14px 30px rgba(28,48,61,.18);
  transform:translateY(-2px);
}

.home-page .post-card-featured-image-wrap:hover .post-card-featured-image{
  transform:scale(1.055);
}

@media (prefers-reduced-motion:reduce){
  .home-page .post-card-featured-image-wrap,
  .home-page .post-card-featured-image{
    transition:none;
  }

  .home-page .post-card-featured-image-wrap:hover,
  .home-page .post-card-featured-image-wrap:hover .post-card-featured-image{
    transform:none;
  }
}

/* Archive and Related Posts photo hover */
.blog-archive-page .post-card-featured-image-wrap,
.related-posts .related-post-image-wrap{
  display:block;
  overflow:hidden;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(28,48,61,.10);
  transition:box-shadow .22s ease, transform .22s ease;
}

.blog-archive-page .post-card-featured-image,
.related-posts .related-post-image{
  transition:transform .32s ease;
  will-change:transform;
}

.blog-archive-page .post-card-featured-image-wrap:hover,
.related-posts .related-post-image-wrap:hover{
  box-shadow:0 14px 30px rgba(28,48,61,.18);
  transform:translateY(-2px);
}

.blog-archive-page .post-card-featured-image-wrap:hover .post-card-featured-image,
.related-posts .related-post-image-wrap:hover .related-post-image{
  transform:scale(1.055);
}

@media (max-width:680px){
  .blog-archive-page .post-card-featured-image-wrap,
  .related-posts .related-post-image-wrap{
    box-shadow:0 6px 16px rgba(28,48,61,.10);
  }

  .blog-archive-page .post-card-featured-image-wrap:hover,
  .related-posts .related-post-image-wrap:hover{
    box-shadow:0 10px 22px rgba(28,48,61,.15);
  }
}

@media (prefers-reduced-motion:reduce){
  .blog-archive-page .post-card-featured-image-wrap,
  .blog-archive-page .post-card-featured-image,
  .related-posts .related-post-image-wrap,
  .related-posts .related-post-image{
    transition:none;
  }

  .blog-archive-page .post-card-featured-image-wrap:hover,
  .blog-archive-page .post-card-featured-image-wrap:hover .post-card-featured-image,
  .related-posts .related-post-image-wrap:hover,
  .related-posts .related-post-image-wrap:hover .related-post-image{
    transform:none;
  }
}

/* Wallpapers page */
.wallpaper-page-content{
  max-width:1100px;
}

.wallpaper-entry{
  background:#fcfdfd;
  border:1px solid #d7e0e4;
  border-radius:14px;
  padding:clamp(22px,4vw,38px);
  box-shadow:0 10px 28px rgba(28,48,61,.07);
}

.wallpaper-entry h2{
  margin:0 0 22px;
  color:#173b4d;
  font-size:clamp(1.9rem,3.4vw,2.7rem);
  line-height:1.12;
  letter-spacing:-.025em;
}

.wallpaper-image-wrap{
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 10px 26px rgba(28,48,61,.12);
  margin-bottom:24px;
}

.wallpaper-image{
  display:block;
  width:100%;
  height:auto;
}

.wallpaper-description{
  max-width:900px;
  margin:0 0 24px;
  color:#394b55;
  font-size:1.05rem;
  line-height:1.75;
}

.wallpaper-download-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 18px;
  background:#2f6f89;
  color:#fff;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(47,111,137,.18);
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.wallpaper-download-btn:hover{
  background:#24566b;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(47,111,137,.22);
}

.download-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
}

@media(max-width:680px){
  .wallpaper-entry{
    padding:20px;
    border-radius:10px;
  }

  .wallpaper-image-wrap{
    border-radius:9px;
    margin-bottom:20px;
  }

  .wallpaper-description{
    font-size:1rem;
  }

  .wallpaper-download-btn{
    width:100%;
    justify-content:center;
  }
}



/* Wallpaper download button alignment */
.wallpaper-download-btn{
  display:flex;
  width:max-content;
  margin-left:auto;
  margin-right:0;
}

@media(max-width:680px){
  .wallpaper-download-btn{
    width:100%;
    margin-left:0;
    margin-right:0;
    justify-content:center;
  }
}


/* Wallpaper metadata */
.wallpaper-meta{
  margin:0 0 8px;
  color:#6e7f89;
  font-size:.82rem;
  line-height:1.4;
  letter-spacing:.01em;
}


/* Multiple wallpaper spacing */
.wallpaper-entry + .wallpaper-entry{
  margin-top:32px;
}

/* Sidebar Bible verse slider */
.verse-widget{
  padding:0;
  overflow:hidden;
}

.verse-slider{
  position:relative;
  min-height:225px;
  padding:24px 22px 58px;
}

.verse-slide{
  display:none;
  min-height:143px;
  flex-direction:column;
  justify-content:center;
}

.verse-slide.active{
  display:flex;
}

.verse-text{
  margin:0!important;
  color:#2f414b!important;
  font-size:1.04rem;
  line-height:1.72;
  font-weight:500;
}

.verse-reference{
  margin:15px 0 0!important;
  color:#2f6f89!important;
  font-size:.82rem!important;
  line-height:1.4!important;
  font-weight:700;
  letter-spacing:.01em;
}

.verse-slider-controls{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.verse-slider-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.verse-slider-dot{
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#b9c8cf;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, opacity .18s ease;
}

.verse-slider-dot.active{
  background:#2f6f89;
  transform:scale(1.25);
}

.verse-slider-dot:disabled{
  cursor:default;
  opacity:.34;
}

.verse-slider-dot:not(:disabled):hover{
  background:#24566b;
}

.verse-slider-arrow{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2f6f89;
  cursor:pointer;
  padding:0;
  transition:transform .2s ease, opacity .2s ease;
}

.verse-slider-arrow:hover{
  background:transparent;
  opacity:.72;
}

.verse-slider-arrow:active{
  transform:scale(.88);
}

.verse-slider-arrow:focus-visible,
.verse-slider-dot:focus-visible{
  outline:2px solid #2f6f89;
  outline-offset:3px;
}

.verse-slider-arrow:disabled{
  opacity:.28;
  cursor:default;
}

.verse-triangle-icon{
  display:block;
  width:0;
  height:0;
}

.verse-triangle-left{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-right:11px solid #2f6f89;
  margin-left:-2px;
}

.verse-triangle-right{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:11px solid #2f6f89;
  margin-right:-2px;
}

.verse-source-pool{
  display:none!important;
}

@media(max-width:680px){
  .verse-slider{
    min-height:210px;
    padding:22px 20px 56px;
  }

  .verse-slide{
    min-height:132px;
  }

  .verse-text{
    font-size:1rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .verse-slider-arrow,
  .verse-slider-dot{
    transition:none;
  }
}



/* Verse widget title alignment */
.verse-widget > h3{
  margin:0;
  padding:18px 20px 0;
}

.verse-widget .verse-slider{
  padding-top:14px;
}

/* Site search */
.site-search-widget{
  padding:20px;
}

.sidebar-search-form{
  display:flex;
  flex-direction:column;
  gap:11px;
}

.sidebar-search-button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border:0;
  border-radius:7px;
  background:#2f6f89;
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(47,111,137,.16);
  transition:background .16s ease, transform .16s ease;
}

.sidebar-search-button:hover{
  background:#24566b;
  transform:translateY(-1px);
}

.search-lens-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
}

.sidebar-search-input,
.search-page-form input[type="search"]{
  width:100%;
  min-width:0;
  border:1px solid #cfdadd;
  border-radius:7px;
  background:#fff;
  color:#24313a;
  font:inherit;
  padding:10px 12px;
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease;
}

.sidebar-search-input:focus,
.search-page-form input[type="search"]:focus{
  border-color:#6e9bad;
  box-shadow:0 0 0 3px rgba(47,111,137,.11);
}

.search-page-content{
  max-width:920px;
}

.search-page-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin-bottom:18px;
}

.search-page-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border:0;
  border-radius:7px;
  background:#2f6f89;
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(47,111,137,.16);
}

.search-page-button:hover{
  background:#24566b;
}

.search-status{
  margin:0 0 22px;
  color:#667681;
  font-size:.95rem;
}

.search-results{
  display:grid;
  gap:16px;
}

.search-result-card{
  padding:22px 24px;
  background:#fcfdfd;
  border:1px solid #d7e0e4;
  border-radius:12px;
  box-shadow:0 7px 22px rgba(28,48,61,.055);
}

.search-result-card h2{
  margin:0 0 10px;
  font-size:1.35rem;
  line-height:1.25;
}

.search-result-card h2 a{
  color:#1d5368;
  text-decoration:none;
}

.search-result-card h2 a:hover{
  text-decoration:underline;
}

.search-result-card p{
  margin:0 0 14px;
  color:#455761;
  line-height:1.65;
}

.search-result-card mark{
  background:#fff1a8;
  color:inherit;
  padding:0 .05em;
}

.search-result-link{
  font-weight:700;
  color:#2f6f89;
  text-decoration:none;
}

.search-result-link:hover{
  text-decoration:underline;
}

@media(max-width:680px){
  .search-page-form{
    grid-template-columns:1fr;
  }

  .search-page-button{
    width:100%;
  }

  .search-result-card{
    padding:19px;
  }
}



/* Search result button alignment */
.search-result-link{
  display:flex;
  width:max-content;
  margin-left:auto;
  margin-right:0;
  align-items:center;
  justify-content:center;
  padding:9px 15px;
  border-radius:7px;
  background:#2f6f89;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(47,111,137,.16);
  transition:background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.search-result-link:hover{
  background:#24566b;
  color:#fff;
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(47,111,137,.22);
}

@media(max-width:680px){
  .search-result-link{
    width:100%;
    margin-left:0;
    margin-right:0;
  }
}


/* Center search result buttons */
.search-result-link{
  margin-left:auto;
  margin-right:auto;
}

/* Homepage wallpaper slider */
.home-wallpaper-section{
  margin-top:38px;
  margin-bottom:42px;
}

.home-wallpaper-section > .section-title{
  margin-bottom:18px;
}

.home-wallpaper-slider{
  overflow:hidden;
  background:#fcfdfd;
  border:1px solid #d7e0e4;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(28,48,61,.06);
}

.home-wallpaper-slides{
  position:relative;
}

.home-wallpaper-slide{
  display:none;
}

.home-wallpaper-slide.active{
  display:block;
}

.home-wallpaper-image-wrap{
  overflow:hidden;
  aspect-ratio:16 / 9;
  background:#e9eff1;
}

.home-wallpaper-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.home-wallpaper-body{
  padding:22px 24px 20px;
}

.home-wallpaper-body h3{
  margin:0 0 10px;
  color:#183b4d;
  font-size:1.45rem;
  line-height:1.25;
}

.home-wallpaper-description{
  margin:0 0 17px;
  color:#455761;
  line-height:1.68;
}

.home-wallpaper-download-btn{
  display:flex;
  width:max-content;
  margin-left:auto;
  margin-right:0;
  align-items:center;
  gap:8px;
}

.home-wallpaper-download-btn svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
}

.home-wallpaper-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:2px 16px 18px;
}

.home-wallpaper-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.home-wallpaper-dot{
  width:10px;
  height:10px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#b9c8cf;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}

.home-wallpaper-dot.active{
  background:#2f6f89;
  transform:scale(1.25);
}

.home-wallpaper-arrow{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2f6f89;
  cursor:pointer;
  transition:transform .2s ease, opacity .2s ease;
}

.home-wallpaper-arrow:hover{
  opacity:.72;
}

.home-wallpaper-arrow:active{
  transform:scale(.88);
}

.home-wallpaper-arrow:focus-visible,
.home-wallpaper-dot:focus-visible{
  outline:2px solid #2f6f89;
  outline-offset:3px;
}

.home-wallpaper-triangle{
  display:block;
  width:0;
  height:0;
}

.home-wallpaper-triangle-left{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-right:11px solid #2f6f89;
  margin-left:-2px;
}

.home-wallpaper-triangle-right{
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:11px solid #2f6f89;
  margin-right:-2px;
}

.home-wallpaper-view-all{
  display:block;
  width:max-content;
  margin:14px auto 0;
  font-weight:700;
}

@media(max-width:680px){
  .home-wallpaper-section{
    margin-top:32px;
    margin-bottom:36px;
  }

  .home-wallpaper-body{
    padding:19px;
  }

  .home-wallpaper-body h3{
    font-size:1.28rem;
  }

  .home-wallpaper-download-btn{
    width:100%;
    margin-left:0;
    margin-right:0;
    justify-content:center;
  }

  .home-wallpaper-controls{
    padding-left:10px;
    padding-right:10px;
  }
}
/* End homepage wallpaper slider */

/* Homepage wallpaper overlay refinement */
.home-wallpaper-image-wrap{
  position:relative;
}

.home-wallpaper-image-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(
    0deg,
    rgba(10,22,30,.78) 0%,
    rgba(10,22,30,.56) 34%,
    rgba(10,22,30,.16) 68%,
    rgba(10,22,30,.04) 100%
  );
}

.home-wallpaper-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  padding:clamp(22px,4vw,42px);
  pointer-events:none;
}

.home-wallpaper-overlay h3{
  max-width:760px;
  margin:0 0 9px;
  color:#fff;
  font-size:clamp(1.6rem,3.4vw,2.65rem);
  line-height:1.08;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}

.home-wallpaper-overlay .home-wallpaper-description{
  max-width:760px;
  margin:0 0 16px;
  color:#f4f7f8;
  font-size:clamp(.94rem,1.45vw,1.08rem);
  line-height:1.58;
  text-shadow:0 1px 8px rgba(0,0,0,.32);
}

.home-wallpaper-overlay .home-wallpaper-download-btn{
  pointer-events:auto;
  width:max-content;
  margin:0;
  align-self:flex-start;
  box-shadow:0 5px 16px rgba(0,0,0,.22);
}

@media(max-width:680px){
  .home-wallpaper-overlay{
    padding:18px;
  }

  .home-wallpaper-overlay h3{
    font-size:1.45rem;
  }

  .home-wallpaper-overlay .home-wallpaper-description{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:.9rem;
    line-height:1.45;
    margin-bottom:13px;
  }

  .home-wallpaper-overlay .home-wallpaper-download-btn{
    width:max-content;
    padding:9px 13px;
    font-size:.88rem;
  }
}
/* End homepage wallpaper overlay refinement */

/* Homepage wallpaper card list matching Wallpapers page */
.home-wallpaper-card-list{
  display:block;
  margin:32px 0 18px;
}

.home-wallpaper-card-list .wallpaper-entry{
  width:100%;
}

.home-wallpaper-card-list .wallpaper-entry + .wallpaper-entry{
  margin-top:32px;
}

.home-wallpaper-card-list .wallpaper-download-btn{
  white-space:nowrap;
  flex-wrap:nowrap;
}
/* End homepage wallpaper card list matching Wallpapers page */

