/*   
Theme Name: InspireCorp
Text Domain: New InspireCorp theme
Author: Fahd Idaghdour
Author URI: http://fahdos.com
Version: 1.18
*/


/* ==========================================================================
   Reset 2020 ^^
   ========================================================================== */

*,*::before,*::after {box-sizing: border-box; outline: none;}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd {margin: 0;}
ul{list-style: none; padding: 0; margin: 0;}
html {scroll-behavior: smooth; width: 100%; height: 100%;}
body {text-rendering: optimizeSpeed; min-width: 100%; height: 100%;}
a:not([class]) {text-decoration-skip-ink: auto;}
img,picture {max-width: 100%;display: block; height: auto;}
input,button,textarea,select {font: inherit;}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;}}

button {border: none; background: none; height: fit-content; padding: 5px 20px; border-radius: 40px; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
button:hover, button:focus {transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); cursor: pointer;}
a { color:#1593f5; text-decoration: none; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); }
a:hover {color: var(--color2); transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
p {margin-bottom: 10px; line-height: 1.5;}
textarea:focus, input:focus {outline: none;}
img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto;}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}
::-moz-selection { color: #fff; background: var(--color1);}
::selection { color: #fff; background: var(--color1);}


:root {
  --color1 : #abc6db;
  --color2 : #edbb99;
  --color3 : #efc4cd;
  --color4 : #efc170;
  --adult : #e66f51;
  --youth : #CCDB29;
  --black : #000000;
  --light: #F2F8F1;
}



/* ==========================================================================
   General
   ========================================================================== */
body {font-family: "Alexandria", sans-serif; font-size: 15px; color: #0D0D0D; font-weight: 300;}
body.noscroll {overflow-y: hidden;}
section {width: 100%; display: flex; padding: 30px 20px; position: relative;}
.row {max-width: 1200px; width: 100%; margin: 0 auto;}

.btngrp {display: flex; gap: 10px;}
.btn {padding: 11px 50px 10px 12px; border-radius: 30px; border: 1px solid #000; color: #000; position: relative; display: inline-block; text-align: center;}
.btn:before {content: ""; position: absolute; right: 5px; top: calc(50% - 15px); width: 30px; height: 30px; border-radius: 50%; background-color: var(--color1);}
.btn:after {content: ""; position: absolute; right: 5px; top: calc(50% - 15px); width: 30px; height: 30px;  background-image: url('img/arrowfull.svg'); background-size: 24px 24px; background-repeat: no-repeat; background-position: center center;}

.btn:hover {background: var(--color1); color: #000;}
.btn:hover:before {background: #fff; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}

.btn.adult { border: 1px solid var(--adult);}
.btn.adult:before { background-color: var(--adult);}
.btn.youth { border: 1px solid var(--youth);}
.btn.youth:before { background-color: var(--youth);}
.btn.adult:after, .btn.youth:after {filter: invert(1);}

.btn.adult:hover {background: var(--adult);}
.btn.youth:hover {background: var(--youth);}
.btn.adult:hover:before, .btn.youth:hover:before {background: #fff; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.btn.adult:hover:after, .btn.youth:hover:after {filter: invert(0);}

/* Responsive video embeds — YouTube / Vimeo iframes */
iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="youtu.be"], iframe[src*="vimeo.com"], iframe[src*="player.vimeo.com"] {width: 100%; height: auto; aspect-ratio: 16 / 9;}



/* ==========================================================================
   Header
   ========================================================================== */
.header {}
.header .tophead {background: var(--color1); min-height: 36px; padding: 5px 20px;}
.header .tophead .row {display: flex; justify-content: flex-end;}
.header .tophead .row a.login {font-size: 12px; padding: 5px 10px; border-radius: 20px; border: 1px solid #000; color: #000;}
.header .tophead .row a.login:hover {background: #000; color: #fff;}

.header .tophead .row .search-box { width: fit-content;height: fit-content;position: relative; margin-right: 20px;}
.header .tophead .row .input-search { width: 26px; border-style: none; background: transparent; padding:  3px 0px; font-size: 14px; outline: none; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); border-bottom: 1px solid var(--color1);}
.header .tophead .row .input-search::placeholder { color: #000; font-size: 12px; font-weight: 300;}
.header .tophead .row .btn-search { padding: 3px;  border-style: none;  outline: none; cursor: pointer; position: absolute; right: 0px; background-color: var(--color1); pointer-events: painted; border-radius: 0;}
.header .tophead .row .btn-search img {display: block; width: 20px; height: 20px;}
.header .tophead .row .btn-search:focus ~ .input-search { width: 200px; border-radius: 0px; background-color: transparent; border-bottom: 1px solid #000; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.header .tophead .row .input-search:focus { width: 200px; border-radius: 0px; background-color: transparent; border-bottom: 1px solid #000; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}

.header .mainhead {background: var(--black); padding:10px; }
.header .mainhead .row {display: flex;justify-content: space-between; align-content: center;}
.header .mainhead .logo {display: block;}
.header .mainhead .logo img {width: 100%; max-width: 160px;}
.header .mainhead nav {display: block; font-weight: 300; align-content: center;}
.header .mainhead nav ul {display: inline-block; align-content: center; justify-content: center; padding: 0 10px; border-left: 1px solid #999;}
.header .mainhead nav li {display: inline-block;  margin: 0 10px;}
.header .mainhead nav li a {color: #fff; padding: 0 10px;}
.header .mainhead nav li a:hover {text-decoration: underline;}
.header .mainhead nav ul.adult li a {color: var(--adult);}
.header .mainhead nav ul.youth li a {color: var(--youth);}
.header .mainhead nav ul:first-child {padding-left: 0; margin-left: 0; border-left: none;}
.header .mainhead nav ul:first-child li { margin-left: 0;}
.header .mainhead nav ul:first-child li a {padding-left: 0;}

.header .mainhead nav ul:last-child {padding-right: 0; margin-right: 0;}
.header .mainhead nav ul:last-child li { margin-right: 0;}
.header .mainhead nav ul:last-child li a {padding-right: 0;}

.nav-toggle {display: none; width: 30px; height: 22px; position: relative; background: none; border: none; padding: 0; cursor: pointer; flex-shrink: 0;}
.nav-toggle span {display: block; position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: all .3s ease;}
.nav-toggle span:nth-child(1) {top: 0;}
.nav-toggle span:nth-child(2) {top: 10px;}
.nav-toggle span:nth-child(3) {top: 20px;}
.nav-toggle.open span:nth-child(1) {top: 10px; transform: rotate(45deg);}
.nav-toggle.open span:nth-child(2) {opacity: 0;}
.nav-toggle.open span:nth-child(3) {top: 10px; transform: rotate(-45deg);}


/* ==========================================================================
   hero
   ========================================================================== */
.hero { }
.hero .row {display: flex; align-items: center;}
.hero figure {width: 100%;}
.hero figure img {width: 100%;}
.hero .row article {flex: 0 0 50%;}
.hero article span {color: var(--color2); font-weight: 700; font-size: 20px; text-transform: uppercase; border-left: 4px solid var(--color2); padding-left: 10px; display: block; line-height: 1; margin-bottom: 25px;}
.hero article span small {display: block; text-transform: initial; font-weight: 300;  color: var(--black); margin-top: 5px;}
.hero article h1 {font-weight: 200; font-size: 56px; margin-bottom: 25px;}


/* ==========================================================================
   home Content
   ========================================================================== */
.intro { padding:0 20px 20px 20px; }
.intro .row {display: flex; gap: 40px; align-items: center;}
.intro h2 {color: var(--color1); font-size: 66px; font-weight: 800; flex:0 0 180px; line-height: 1.1;}

.testimony {overflow: hidden;}
.testimony .carrousel {}
.testimony .carrousel .item {padding: 0 15px;}
.testimony .carrousel article {padding: 20px; border-radius: 20px; border: 1px solid var(--black); font-size: 14px; margin-bottom: 30px; position: relative; padding-bottom: 30px;}
.testimony .carrousel img {display: block; background: #fff; padding: 1px; border: 1px solid #000; border-radius: 50px; width: 42px; height: 42px; position: absolute; bottom: -21px; left: 25px;}
.testimony .carrousel h3.name {font-weight: 400; font-size: 13px; margin-left: 40px;}
.testimony .carrousel span.function {font-size: 12px; color: #888; margin-left: 40px;}

.homeabout {}
.homeabout .row {position: relative; min-height: 500px; display: flex; justify-content: center;align-items: center; padding-left: 500px;}
.homeabout .row .cover {aspect-ratio: 800/629; border-radius: 10px; width: 50%; overflow: hidden; position: absolute; left: 0;}
.homeabout .row .cover img {width: 100%; height: 100%; object-fit: cover;}
.homeabout .row article {position: relative; z-index: 2; padding: 25px; background: #fff; height: fit-content; border-radius: 20px; min-height: 200px; border: 1px solid #000;}
.homeabout article h2 {color: var(--color4); font-size: 36px; font-weight: 800; margin-bottom: 20px}
.homeabout article .btn {padding: 9px 40px 10px 10px; font-size: 14px; margin-top: 10px;}
.homeabout article .btn:before {background-color: var(--color4);}
.homeabout article .btn:hover:before {background-color: #fff;}


.homeportfolio {display: flex; padding-right: 0; padding-left: calc((100vw - 1200px) / 2); overflow:hidden; padding-top: 50px; }
.homeportfolio .ptitle {padding-right: 50px; width: 250px; }
.homeportfolio .ptitle h2 {font-weight: 900; font-size: 70px; line-height: 1.0; color: var(--color3); margin-bottom: 5px;}
.homeportfolio .ptitle span {font-size: 26px; text-indent: 5px; display: inline-block;}
.carportfolio {width: calc(((100vw - 1200px) / 2) + 1100px);}
.carportfolio .item {padding: 0 20px;}
.carportfolio .item a {display: block;}
.carportfolio .item article {position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 20px; aspect-ratio: 9/6; padding: 20px; border: 1px solid #000; background-size: cover;}
.carportfolio .item article:before {content: ""; position: absolute; top:0; left: 0; width: 100%; height: 100%; background: #000000; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);}
.carportfolio .item article h2 {position: relative; color: #fff; font-size: 26px; margin-bottom: 10px;}
.carportfolio .item article p {position: relative; color: #fff; font-weight: 200;}

.waitforus {padding: 20px 0;}
.waitforus picture, .waitforus img {width: 100%;}

.resources {}
.resources .row > h2 {font-weight: 900; font-size: 60px; margin-bottom: 40px; color: var(--color2);}
.centerlink {display: flex; justify-content: center;}

/* ==========================================================================
 Blog
   ========================================================================== */
.blogtitle {font-size: 38px; font-weight: 300; margin-bottom: 20px;}
.blogintro {max-width: 720px; margin-bottom: 40px; font-size: 16px; font-weight: 300; line-height: 1.6; color: #444;}
.blogintro p {margin-bottom: 12px;}
.blogintro p:last-child {margin-bottom: 0;}
.catfilter {display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px;}
.catfilter li a {display: block;}

.postlisting {display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); padding-bottom: 40px;}
.postlisting .item {border-radius: 20px; border: 1px solid #000; overflow: hidden;}
.postlisting .item .cover {position: relative;}
.postlisting .item .cover img {width: 100%; max-width: 100%;}
.postlisting .item .cover ul {position: absolute; top: 15px; left: 15px;}
.postlisting .item .cover ul li {display: inline-block; border: 1px solid #000; padding: 2px 2px; border-radius: 18px;}
.postlisting .item .cover ul li a {background: #000; color: #fff; border-radius: 15px; padding: 3px 8px; font-size: 12px; display: block;}
.postlisting .item .cover ul li.adult {border: 1px solid var(--adult); }
.postlisting .item .cover ul li.youth {border: 1px solid var(--youth); }
.postlisting .item .cover ul li.adult a {background: var(--adult);}
.postlisting .item .cover ul li.youth a {background: var(--youth);}
.postlisting .item article {padding: 15px; display: flex; flex-direction: column;}
.postlisting .item article h2 {font-size: 16px; font-weight: 400; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.load-more-trigger {height: 60px; width: 100%;}
.postlisting .item article p {font-size: 13px; margin-bottom: 20px;}
.postlisting .item article .btn {margin-left: auto; font-size: 13px; padding: 7px 30px 8px 7px;}
.postlisting .item article .btn:hover {background-color:var(--color2); }
.postlisting .item article .btn:before { top: calc(50% - 12px); right: 3px; width: 24px; height:24px; background:var(--color2); }
.postlisting .item article .btn:hover:before {background: #fff;}
.postlisting .item article .btn:after {width: 24px; height:24px; background-size: 20px 20px; top: calc(50% - 13px); right: 3px;}



/* ==========================================================================
   Footer
   ========================================================================== */

footer {background: var(--black);}
footer .row  {display: flex;}
footer section {padding: 30px 20px;}
footer ul, footer li {margin-bottom: 0;}
footer .newsletter {border-bottom: 1px solid rgba(255, 255, 255, .1);}
footer .newsletter .row {justify-content: space-between;}
footer .newsletter p {color: var(--light); width: 45%; font-size: 18px; font-weight: 300; line-height: 1.2; letter-spacing: 1px;}
footer .newsletter p strong {display: block; font-size: 30px; font-weight: 500;}
footer .newsletter form {width: 55%;}
footer .newsletter fieldset {display: flex; background: #fff; border: none; padding: 0; display: flex; margin-bottom: 10px;}
footer .newsletter fieldset input {flex-grow: 2; border: none; padding: 10px;}
footer .newsletter fieldset input::placeholder { font-weight: 300; font-size: 13px;}
footer .newsletter fieldset button {border-radius: 0; letter-spacing: 1px;}
footer .newsletter form span {font-size: 12px; color: var(--light); font-weight: 300; opacity: 0.5;}

footer .bottomfooter {border-top:1px solid rgba(255, 255, 255, .2); }
footer .bottomfooter .row {display: flex; justify-content: space-between; align-items: center;}
footer .bottomfooter li { display: inline-block; margin-left: 20px;}
footer .bottomfooter p, footer .bottomfooter a {text-transform: uppercase; color: var(--light); font-weight: 300; font-size: 12px; margin-bottom: 0;}
footer .bottomfooter a:hover {opacity: 1; text-transform: uppercase; text-decoration: underline;}

footer .mainfooter {padding: 60px 20px; display: flex;}

footer .footerinfo {display: flex; flex-direction: column; gap: 15px; align-items: center; width: 100%;}
footer .footerinfo > a {flex: 1; display: block;}
footer .footerinfo img {display: block; margin-bottom: 0; width: 200px;}
footer .footerinfo ul {flex: 1; margin-bottom: 0; text-align: center;}
footer .footerinfo li {color: var(--light); font-weight: 300; font-size: 13px; margin-bottom: 5px;}
footer .footerinfo li:hover {opacity: 1;}
footer .footerinfo li a {color: var(--light); text-decoration: underline;}
footer .footerinfo .social {display: flex; flex: 1; justify-content: flex-end;}
footer .footerinfo .social img {filter: invert(); width: 30px; height: 30px; margin: 0 3px; opacity: 0.6;}
footer .footerinfo .social img:hover {opacity: 1;}



/* ==========================================================================
   Plugins
   ========================================================================== */
.tabs { display: flex; max-width: 100%; margin: 0 auto; overflow: hidden;}

/* Sidebar Tabs */
.tab-list { display: flex; flex-direction: column; flex: 0 0 50%; padding:0 20px; }
.tab-button { padding: 12px 40px; font-size: 22px; font-weight: 200; border: 1px solid var(--black); margin: 5px 0; cursor: pointer; position: relative; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.tab-button:before {content: ""; position: absolute; height: 1px; width: calc(100% - 70px); top: 50%; left: 50px; background: #000; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.tab-button:after {visibility: hidden; content: ""; height: 30px; width: 30px; position: absolute;  top: 11px; right: 12px; 
background-image: url('img/arrow.svg'); background-size: 30px 30px; background-repeat: no-repeat; background-position: center center;}
.tab-button small {position: absolute; left: 12px; font-size: 22px}
.tab-button span {background: #fff; position: relative; padding: 0 2px; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.tab-button.active, .tab-button.active span, .tab-button:hover, .tab-button:hover span  { background: var(--color1); transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); }
.tab-button.active:after, .tab-button:hover:after  {visibility: visible; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
/* Content Area */
.tab-content { flex: 1 1 auto; min-width: 0; padding: 0 20px; font-size: 15px; text-align: justify; display: flex; align-items: center;}
.tab-panel { display: none;}
.tab-panel h3 {display: none;}
.tab-panel.active { display: block;}
/* --- Mobile (Accordion Mode) --- */
@media (max-width: 768px) {
   .tabs { flex-direction: column; width: 100%;}
   .tab-list { display: none;}
   .tab-content { padding: 0; display: initial;}
   .tab-panel { display: block;}
   .tab-panel.open {}
   .tab-panel h3 { display: block; padding: 12px 18px 12px 40px; font-size: 18px; font-weight: 200; border: 1px solid var(--black); margin: 5px 0 15px 0; cursor: pointer; position: relative; border-radius: 30px; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); white-space: nowrap;}
   .tab-panel h3:before {display: none;}
   .tab-panel h3:after {display: none;}
   .tab-panel h3 small {position: absolute; left: 14px; font-size: 18px}
   .tab-panel h3 span {background: transparent; position: relative; padding: 0; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
   .tab-panel.open h3, .tab-panel.open h3 span, .tab-panel h3:hover, .tab-panel h3:hover span  { background: var(--color1); transition: all .4s cubic-bezier(0.46, 0, 0.07, 1); }
   .tab-panel p { display: none; padding: 0 10px;}
   .tab-panel.open p { display: block;}
   .tab-panel.active p { display: block;}
}



/* Slick Slider */
.slick-list,.slick-slider,.slick-track{position:relative;display:block}.slick-slider{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;
user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.slick-list{overflow:hidden;margin:0;padding:0}.slick-list:focus{outline:0}.slick-list.dragging{cursor:pointer;cursor:hand}
.slick-slider .slick-list,.slick-slider .slick-track{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);
 -o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.slick-track{top:0;left:0;margin-left:auto;margin-right:auto}
.slick-track:after,.slick-track:before{display:table;content:''}.slick-track:after{clear:both}.slick-loading .slick-slide,.slick-loading .slick-track{visibility:hidden}
.slick-slide{display:none;float:left;height:100%;min-height:1px}[dir=rtl] .slick-slide{float:right}.slick-initialized .slick-slide,.slick-slide img{display:block}
.slick-arrow.slick-hidden,.slick-slide.slick-loading img{display:none}.slick-slide.dragging img{pointer-events:none}
.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}

/* Reduce CLS — show only the first slide until Slick initializes */
.carrousel:not(.slick-initialized) {overflow: hidden;}
.carrousel:not(.slick-initialized) > .item {display: none;}
.carrousel:not(.slick-initialized) > .item:first-child {display: block;}

.carrousel .slick-arrow {position: absolute; top: calc(50% - 40px); z-index: 99; width: 20px; height: 30px; text-indent: -9999px; background-repeat: none; opacity: 1; background-size: 40px;}
.carrousel .slick-arrow.slick-prev {right: -30px; background: url('img/arrow.svg') center center no-repeat; background-size: 30px 30px;}
.carrousel .slick-arrow.slick-next {left: -30px; background: url('img/arrow.svg') center center no-repeat; background-size: 30px 30px; transform: scaleX(-1);}
.carrousel .slick-arrow:hover {opacity: 0.5; cursor:   pointer  ;}
.slick-dots {position: absolute; bottom: 0; display: flex; justify-content: center; width: 100%;}
.slick-dots li {padding: 0 8px;}
.carrousel .slick-dots{bottom: -30px; display: flex !important; justify-content: center;}
.carrousel .slick-dots li button{padding: 0; display: block; text-indent: -9999px; width: 8px; height: 8px; border-radius: 8px; background-color: var(--black); opacity:0.1;}
.carrousel .slick-dots li.slick-active button {background-color: var(--color1); opacity: 1;}

.carportfolio .carrousel .slick-arrow.slick-prev {top:-50px; right: inherit; left: 60px;}
.carportfolio .carrousel .slick-arrow.slick-next {top:-50px; left: 10px;}
.carportfolio .carrousel .slick-dots li.slick-active button {background-color: var(--color3); opacity: 1;}


/* ==========================================================================
   Single Post
   ========================================================================== */
.singlepost {padding: 60px 20px;}
.singlepost .row {max-width: 960px;}

.postback {display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #000; margin-bottom: 40px;}
.postback:before {content: ""; display: inline-block; width: 24px; height: 24px; background-image: url('img/arrowfull.svg'); background-size: 18px 18px; background-repeat: no-repeat; background-position: center center; transform: scaleX(-1); opacity: 0.5;}
.postback:hover {color: var(--color2);}
.postback:hover:before {opacity: 1;}

.postheader {}
.postheader .postcats {display: flex; gap: 8px; margin-bottom: 20px;}
.postheader .postcats li {display: inline-block; border: 1px solid #000; padding: 2px 2px; border-radius: 18px;}
.postheader .postcats li a {background: #000; color: #fff; border-radius: 15px; padding: 3px 10px; font-size: 12px; display: block;}
.postheader .postcats li.adult {border: 1px solid var(--adult);}
.postheader .postcats li.youth {border: 1px solid var(--youth);}
.postheader .postcats li.adult a {background: var(--adult);}
.postheader .postcats li.youth a {background: var(--youth);}

.postheader h1 {font-size: 42px; font-weight: 300; line-height: 1.2; margin-bottom: 24px;}

.postmeta {display: flex; align-items: center; gap: 20px; font-size: 13px; color: #888; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #e8e8e8;}
.postmeta .postdate {display: flex; align-items: center; gap: 6px;}
.postmeta .postdate:before {content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--color4); flex-shrink: 0;}
.postmeta .postauthor {color: #000; font-weight: 400;}

.postcover {margin-bottom: 40px; border-radius: 20px; overflow: hidden; border: 1px solid #000;}
.postcover img {width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover;}

.postcontent {font-size: 16px; line-height: 1.75; font-weight: 300; color: #1a1a1a;}
.postcontent p {margin-bottom: 24px;}
.postcontent h2 {font-size: 26px; font-weight: 400; margin-top: 40px; margin-bottom: 16px;}
.postcontent h3 {font-size: 20px; font-weight: 400; margin-top: 30px; margin-bottom: 12px;}
.postcontent blockquote {margin: 40px 0; padding: 24px 30px; border-left: 4px solid var(--color1); background: #f7f7f7; border-radius: 0 12px 12px 0;}
.postcontent blockquote p {margin-bottom: 0; font-size: 18px; font-weight: 300; color: #444;}
.postcontent a {color: var(--adult); text-decoration: underline;}
.postcontent a:hover {color: #000;}
.postcontent ul, .postcontent ol {padding-left: 24px; margin-bottom: 24px;}
.postcontent ul li {list-style: disc; margin-bottom: 8px;}
.postcontent ol li {list-style: decimal; margin-bottom: 8px;}

.postfooter {margin-top: 60px; padding-top: 30px; border-top: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center;}
.postshare {display: flex; align-items: center; gap: 12px;}
.postshare span {font-size: 13px; font-weight: 400;}
.postshare a {display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #000; transition: all .4s cubic-bezier(0.46, 0, 0.07, 1);}
.postshare a img {width: 16px; height: 16px; display: block;}
.postshare a:hover {background: #000;}
.postshare a:hover img {filter: invert(1);}

.postnav {display: flex; gap: 20px;}
.postnav a {font-size: 13px; color: #000; display: flex; align-items: center; gap: 6px;}
.postnav a:hover {color: var(--color2);}
.postnav .prev:before {content: ""; display: inline-block; width: 20px; height: 20px; background-image: url('img/arrowfull.svg'); background-size: 16px 16px; background-repeat: no-repeat; background-position: center; transform: scaleX(-1); opacity: 0.5;}
.postnav .next:after {content: ""; display: inline-block; width: 20px; height: 20px; background-image: url('img/arrowfull.svg'); background-size: 16px 16px; background-repeat: no-repeat; background-position: center; opacity: 0.5;}

/* Related Posts */
.relatedposts {background: #f7f7f7; padding: 60px 20px;}
.relatedposts h2 {font-size: 28px; font-weight: 300; margin-bottom: 30px;}

/* ==========================================================================
   Portfolio archive
   ========================================================================== */
.pf-hero {width: 100%; padding: 60px 20px 20px;}
.pf-hero .row {max-width: 1200px; margin: 0 auto;}
.pf-hero h1 {font-weight: 300; font-size: 40px; max-width: 700px; line-height: 1.2;}

.pf-rows {width: 100%; padding: 20px 0 80px;}
.pf-row {max-width: 1200px; margin: 0 auto 60px; padding: 0 20px;}

.pf-row-header {display: flex; align-items: center; gap: 14px; margin-bottom: 20px;}
.pf-row-header h2 {font-weight: 900; font-size: 52px; line-height: 1;}
.pf-row-arrows {display: flex; flex-direction: row; gap: 8px; align-items: center;}

.arr-btn {width: 32px; height: 32px; border-radius: 50%; border-width: 1.5px; border-style: solid; display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 0; background-color: transparent; cursor: pointer; transition: background-color .3s; flex-shrink: 0;}
.arr-btn img {width: 14px; height: 14px; display: block; pointer-events: none;}
.arr-btn.arr-prev img {transform: scaleX(-1);}
.arr-btn:disabled {opacity: 0.3; cursor: default;}
.arr-btn.hidden {display: none;}

.pf-row:nth-child(4n+1) .pf-row-header h2 {color: var(--color1);}
.pf-row:nth-child(4n+1) .arr-btn {border-color: var(--color1);}
.pf-row:nth-child(4n+1) .arr-btn:not(:disabled):hover {background-color: var(--color1);}

.pf-row:nth-child(4n+2) .pf-row-header h2 {color: var(--color2);}
.pf-row:nth-child(4n+2) .arr-btn {border-color: var(--color2);}
.pf-row:nth-child(4n+2) .arr-btn:not(:disabled):hover {background-color: var(--color2);}

.pf-row:nth-child(4n+3) .pf-row-header h2 {color: var(--color3);}
.pf-row:nth-child(4n+3) .arr-btn {border-color: var(--color3);}
.pf-row:nth-child(4n+3) .arr-btn:not(:disabled):hover {background-color: var(--color3);}

.pf-row:nth-child(4n+4) .pf-row-header h2 {color: var(--color4);}
.pf-row:nth-child(4n+4) .arr-btn {border-color: var(--color4);}
.pf-row:nth-child(4n+4) .arr-btn:not(:disabled):hover {background-color: var(--color4);}

.pf-clip {overflow: hidden;}
.pf-track {display: flex; gap: 20px; transition: transform .5s cubic-bezier(0.46, 0, 0.07, 1);}

.pf-card {flex: 0 0 calc((100% - 40px) / 3); aspect-ratio: 9/6; border-radius: 20px; overflow: hidden; position: relative; background-size: cover; background-position: center; cursor: pointer; display: block;}
.pf-card::before {content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0) 60%);}
.pf-card-body {position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;}
.pf-card h3 {color: #fff; font-size: 18px; font-weight: 600; line-height: 1.2; margin: 0;}

/* ==========================================================================
   Single Portfolio
   ========================================================================== */
.pf-back {display: block; padding: 30px 20px 0; max-width: 1200px; margin: 0 auto;}
.pf-back a {display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #000; transition: color .3s;}
.pf-back a:before {content: ""; display: inline-block; width: 24px; height: 24px; background-image: url('img/arrowfull.svg'); background-size: 18px 18px; background-repeat: no-repeat; background-position: center; transform: scaleX(-1); opacity: 0.5;}
.pf-back a:hover {color: var(--color2);}

.pf-header {padding: 30px 20px 40px; max-width: 1200px; margin: 0 auto;}
.pf-header .pf-cat {font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--color2); margin-bottom: 10px; display: block;}
.pf-header h1 {font-size: 56px; font-weight: 800; line-height: 1.05; color: var(--adult);}

.pf-body {padding: 0 20px 60px; max-width: 1200px; margin: 0 auto;}
.pf-body.has-sidebar {display: flex; gap: 40px; align-items: flex-start;}

.pf-sidebar {flex: 0 0 260px; position: sticky; top: 30px;}
.pf-sidebar-block {border: 1px solid #000; border-radius: 20px; padding: 24px; font-size: 14px; line-height: 1.6;}
.pf-sidebar-block h3 {font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--adult); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8;}
.pf-sidebar-block p {font-size: 13px; color: #333; margin-bottom: 10px;}
.pf-sidebar-block p:last-child {margin-bottom: 0;}
.pf-sidebar-block strong {font-weight: 600; color: #000;}
.pf-sidebar-block ul {margin-bottom: 10px;}
.pf-sidebar-block ul li {font-size: 13px; color: #333; padding: 4px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 8px;}
.pf-sidebar-block ul li:last-child {border-bottom: none;}
.pf-sidebar-block ul li:before {content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--color1); flex-shrink: 0;}
.pf-sidebar-meta {font-size: 11px; color: #999; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e8e8e8;}

.pf-content {flex: 1; min-width: 0;}
.pf-body.no-sidebar .pf-content {max-width: 960px; margin: 0 auto;}

.pf-cover {border-radius: 20px; overflow: hidden; border: 1px solid #000; margin-bottom: 30px;}
.pf-cover img {width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;}

.pf-text {font-size: 16px; line-height: 1.75; font-weight: 300; color: #1a1a1a; margin-bottom: 30px;}
.pf-text p {margin-bottom: 20px;}
.pf-text p:last-child {margin-bottom: 0;}
.pf-text ul, .pf-text ol, .about-intro ul, .about-intro ol {padding-left: 24px; margin-bottom: 20px;}
.pf-text ul li, .about-intro ul li {list-style: disc; margin-bottom: 8px;}
.pf-text ol li, .about-intro ol li {list-style: decimal; margin-bottom: 8px;}

.pf-img-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px;}
.pf-img-grid figure {border-radius: 16px; overflow: hidden; border: 1px solid #000;}
.pf-img-grid figure img {width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;}

.pf-video {border-radius: 20px; overflow: hidden; border: 1px solid #000; margin-bottom: 30px; position: relative; aspect-ratio: 16/9; background: #0D0D0D;}
.pf-video img {width: 100%; height: 100%; object-fit: cover; opacity: 0.5; display: block;}
.pf-video-play {position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;}
.pf-video-play span {width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center;}
.pf-video-play span:after {content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px;}

.pf-postfooter {margin-top: 40px; padding-top: 30px; border-top: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center;}
.pf-share {display: flex; align-items: center; gap: 12px;}
.pf-share span {font-size: 13px; font-weight: 400;}
.pf-share a {display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #000; transition: background .3s;}
.pf-share a img {width: 16px; height: 16px; display: block;}
.pf-share a:hover {background: #000;}
.pf-share a:hover img {filter: invert(1);}

.pf-more {background: #f7f7f7; padding: 60px 20px;}
.pf-more .row {max-width: 1200px; margin: 0 auto;}
.pf-more-header {display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;}
.pf-more h2 {font-size: 28px; font-weight: 300;}
.pf-more .btn-back {font-size: 13px; display: inline-flex; align-items: center; gap: 8px; color: #000; border: 1px solid #000; padding: 8px 16px; border-radius: 30px; transition: all .3s;}
.pf-more .btn-back:before {content: ""; display: inline-block; width: 18px; height: 18px; background-image: url('img/arrowfull.svg'); background-size: 14px 14px; background-repeat: no-repeat; background-position: center; transform: scaleX(-1); opacity: 0.5;}
.pf-more .btn-back:hover {background: #000; color: #fff;}
.pf-more .btn-back:hover:before {filter: invert(1); opacity: 1;}

/* ==========================================================================
   About Us
   ========================================================================== */
.about-intro {width: 100%; padding: 60px 20px 50px;}
.about-intro .row {max-width: 960px; margin: 0 auto;}
.about-cover {border-radius: 20px; overflow: hidden; border: 1px solid #000; margin-bottom: 40px;}
.about-cover img {width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; object-position: center 30%;}
.about-intro h1 {font-size: 42px; font-weight: 800; color: var(--adult); line-height: 1.1; margin-bottom: 16px;}
.about-intro .tagline {font-size: 15px; font-weight: 600; margin-bottom: 24px; color: #0D0D0D;}
.about-intro p {font-size: 15px; font-weight: 300; line-height: 1.75; color: #1a1a1a; margin-bottom: 14px;}

.about-story {width: 100%; padding: 60px 20px;}
.about-story .row {max-width: 960px; margin: 0 auto;}
.about-story h2 {text-align: center; font-size: 36px; font-weight: 800; color: var(--color1); margin-bottom: 20px;}
.about-story .story-intro {font-size: 15px; font-weight: 300; line-height: 1.75; color: #555; text-align: center; margin-bottom: 60px;}

.timeline {position: relative; padding: 0;}
.timeline-item {display: flex; align-items: flex-start; margin-bottom: 50px;}
.timeline-item:last-child {margin-bottom: 0;}
.timeline-left {flex: 0 0 calc(50% - 30px); padding-right: 40px; text-align: right;}
.timeline-mid {flex: 0 0 60px; align-self: stretch; display: flex; flex-direction: column; align-items: center; position: relative;}
.timeline-right {flex: 0 0 calc(50% - 30px); padding-left: 40px; text-align: left;}
.timeline-item:not(:last-child) .timeline-mid::after {content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 1px; background: #000; bottom: -50px;}
.timeline-dot {width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #000; margin-top: 3px; flex-shrink: 0; position: relative; z-index: 1;}
.timeline-year {font-size: 14px; font-weight: 700; color: var(--color1); letter-spacing: 1px;}
.timeline-left .timeline-year {text-align: right;}
.timeline-right .timeline-year {text-align: left;}
.timeline-title {font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #000;}
.timeline-text {font-size: 13px; font-weight: 300; line-height: 1.65; color: #555;}
.story-cta {text-align: center; margin-top: 50px;}

.about-collabs {width: 100%; padding: 60px 20px;}
.about-collabs .row {max-width: 1200px; margin: 0 auto;}
.about-collabs h2 {text-align: center; font-size: 42px; font-weight: 800; color: var(--color3); margin-bottom: 6px;}
.about-collabs h3 {text-align: center; font-size: 22px; font-weight: 300; margin-bottom: 40px; color: #0D0D0D;}
.logo-carousel-wrap {position: relative; display: flex; align-items: center; gap: 16px;}
.logo-arr {width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--color3); background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .3s; padding: 0; box-sizing: border-box;}
.logo-arr:hover {background: var(--color3);}
.logo-arr img {width: 14px; height: 14px; display: block;}
.logo-arr.arr-prev img {transform: scaleX(-1);}
.logo-clip {overflow: hidden; flex: 1;}
.logo-track {display: flex; gap: 20px; transition: transform .5s cubic-bezier(0.46, 0, 0.07, 1);}
.logo-item {flex: 0 0 calc((100% - 60px) / 4); padding: 24px 20px; display: flex; align-items: center; justify-content: center; min-height: 90px;}
.logo-item img {max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.5; transition: all .3s;}
.logo-item:hover img {filter: grayscale(0); opacity: 1;}
.logo-dots {display: flex; justify-content: center; gap: 6px; margin-top: 24px;}
.logo-dot {width: 7px; height: 7px; border-radius: 50%; background: #000; opacity: 0.12; cursor: pointer; transition: all .3s; border: none; padding: 0;}
.logo-dot.active {background: var(--color3); opacity: 1;}

.about-people {width: 100%; padding: 20px 20px 60px;}
.about-people .row {max-width: 1200px; margin: 0 auto;}
.about-people-header {text-align: center; margin-bottom: 40px;}
.about-people h3 {font-size: 42px; font-weight: 800; color: var(--color2); margin-bottom: 0;}
.about-people .centerlink {display: flex; justify-content: center; margin-top: 40px;}
.people-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;}
.person-avatar {width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; outline: 2px solid var(--color1); outline-offset: 3px;}
.person-avatar img {width: 100%; height: 100%; object-fit: cover; display: block;}
.person-name {font-size: 15px; font-weight: 600; margin-bottom: 2px;}
.person-role {font-size: 12px; font-weight: 400; color: var(--adult); margin-bottom: 8px; letter-spacing: 0.5px;}
.person-bio {font-size: 13px; font-weight: 300; line-height: 1.6; color: #555;}

/* ==========================================================================
   Search results
   ========================================================================== */
.search-page {padding: 60px 20px 80px;}
.search-page .row {max-width: 960px; margin: 0 auto;}

.search-header {margin-bottom: 50px;}
.search-header p {font-size: 13px; color: #888; margin-bottom: 16px;}
.search-header h1 {font-size: 32px; font-weight: 300; line-height: 1.2;}
.search-header h1 strong {font-weight: 700;}

.search-form {display: flex; gap: 0; border: 1px solid #000; border-radius: 30px; overflow: hidden; max-width: 560px;}
.search-form input {flex: 1; border: none; padding: 12px 20px; font-size: 15px; font-family: "Alexandria", sans-serif; font-weight: 300; outline: none; background: transparent;}
.search-form button {border: none; background: #000; color: #fff; padding: 14px 24px; cursor: pointer; font-family: "Alexandria", sans-serif; font-size: 13px; font-weight: 400; border-radius: 0 30px 30px 0; transition: background .3s;}
.search-form button:hover {background: var(--color1); color: #000;}

.search-group {margin-bottom: 50px;}
.search-group:last-child {margin-bottom: 0;}
.search-group-title {font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8;}
.search-group.type-pages .search-group-title {color: var(--color1);}
.search-group.type-portfolio .search-group-title {color: var(--color3);}
.search-group.type-resources .search-group-title {color: var(--color2);}

.search-results {display: flex; flex-direction: column;}
.search-result {display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f0f0;}
.search-result:last-child {border-bottom: none;}
.search-result a {color: #0D0D0D; font-size: 16px; font-weight: 400; flex: 1; transition: color .3s;}
.search-result a:hover {color: var(--color2);}
.search-result-arrow {width: 20px; height: 20px; flex-shrink: 0; background-image: url('img/arrowfull.svg'); background-size: 16px 16px; background-repeat: no-repeat; background-position: center; opacity: 0; transition: opacity .3s;}
.search-result:hover .search-result-arrow {opacity: 0.4;}

/* ==========================================================================
   404
   ========================================================================== */
.page-404 {display: flex; align-items: center; padding: 60px 20px; min-height: calc(100vh - 120px);}
.page-404 .row {max-width: 960px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 80px;}
.page-404-number {font-size: 200px; font-weight: 900; line-height: 1; flex-shrink: 0; user-select: none;}
.page-404-number span:nth-child(1) {color: var(--color1);}
.page-404-number span:nth-child(2) {color: var(--color3);}
.page-404-number span:nth-child(3) {color: var(--color4);}
.page-404-content h1 {font-size: 28px; font-weight: 400; margin-bottom: 14px; line-height: 1.2;}
.page-404-content p {font-size: 15px; font-weight: 300; color: #555; line-height: 1.75; margin-bottom: 30px;}
.page-404-content .search-form {max-width: 400px; margin-bottom: 30px;}
.page-404-links {display: flex; flex-direction: column; gap: 6px;}
.page-404-links span {font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 4px; display: block;}
.page-404-links a {font-size: 14px; color: #0D0D0D; display: inline-flex; align-items: center; gap: 8px; transition: color .3s;}
.page-404-links a:before {content: ""; display: inline-block; width: 16px; height: 16px; background-image: url('img/arrowfull.svg'); background-size: 13px 13px; background-repeat: no-repeat; background-position: center; opacity: 0.4;}
.page-404-links a:hover {color: var(--color2);}




/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large tablet / small desktop — undo homepage full-bleed portfolio hack */
@media only screen and (max-width: 1199px) {
  .homeportfolio {padding-left: 20px; padding-right: 0;}
  .carportfolio {width: 100%;}
}

@media only screen and (max-width: 1023px) {
  .hero article h1 {font-size: 44px;}
  .intro h2 {font-size: 52px; flex: 0 0 140px;}
  .resources .row > h2 {font-size: 50px;}
  .homeportfolio .ptitle h2 {font-size: 56px;}
  .pf-row-header h2 {font-size: 40px;}
  .pf-header h1 {font-size: 46px;}
}

/* Tablet — hamburger navigation */
@media only screen and (max-width: 900px) {
  .nav-toggle {display: block;}
  .header .mainhead {position: relative;}
  .header .mainhead .row {align-items: center;}
  .header .mainhead nav {display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--black); padding: 10px 20px 20px; z-index: 999; border-top: 1px solid #333;}
  .header .mainhead nav.open {display: block;}
  .header .mainhead nav ul {display: block; border-left: none; padding: 0; margin: 0;}
  .header .mainhead nav ul + ul {border-top: 1px solid #333; margin-top: 8px; padding-top: 8px;}
  .header .mainhead nav li {display: block; margin: 0;}
  .header .mainhead nav li a {display: block; padding: 9px 0;}

  .postlisting {grid-template-columns: repeat(2, 1fr);}
  .people-grid {grid-template-columns: repeat(2, 1fr);}
  .pf-card {flex: 0 0 calc((100% - 20px) / 2);}
  .logo-item {flex: 0 0 calc((100% - 40px) / 3);}

  .homeabout .row {padding-left: 0; min-height: 0; flex-direction: column; align-items: stretch;}
  .homeabout .row .cover {position: relative; left: auto; width: 100%;}
  .homeabout .row article {margin: -50px 15px 0; z-index: 2;}
}

/* Stack major two-column sections */
@media only screen and (max-width: 768px) {
  .hero .row {flex-direction: column; align-items: flex-start; gap: 24px;}
  .hero .row article {flex: 0 0 auto; width: 100%;}
  .hero article h1 {font-size: 38px;}
  .hero figure {display: none;}

  .intro .row {flex-direction: column; gap: 16px; align-items: flex-start;}
  .intro h2 {font-size: 44px; flex: 0 0 auto;}

  .homeportfolio {flex-direction: column;}
  .homeportfolio .ptitle {width: 100%; padding-right: 0; margin-bottom: 50px;}
  .carportfolio .carrousel .slick-arrow {top: -42px;}
  .carportfolio .carrousel .slick-arrow.slick-prev {left: auto; right: 50px; transform: scaleX(-1);}
  .carportfolio .carrousel .slick-arrow.slick-next {left: auto; right: 12px; transform: scaleX(1);}

  footer .mainfooter {flex-direction: column;}
  footer .footerinfo {flex-direction: column; gap: 20px; text-align: center;}
  footer .footerinfo > a, footer .footerinfo ul, footer .footerinfo .social {flex: 0 0 auto; justify-content: center;}
  footer .bottomfooter .row {flex-direction: column; gap: 10px; align-items: flex-start;}
  footer .bottomfooter li {margin-left: 0; margin-right: 20px;}

  .timeline-item {flex-direction: column; align-items: stretch; margin-bottom: 30px; padding-left: 22px; border-left: 2px solid #000;}
  .timeline-item .timeline-left, .timeline-item .timeline-right {flex: 0 0 auto; width: 100%; text-align: left; padding: 0;}
  .timeline-item:nth-child(odd) .timeline-right {order: -1;}
  .timeline-left .timeline-year, .timeline-right .timeline-year {text-align: left;}
  .timeline-mid {display: none;}

  .pf-body.has-sidebar {flex-direction: column;}
  .pf-sidebar {flex: 0 0 auto; width: 100%; position: static; top: auto;}

  .page-404 .row {flex-direction: column; gap: 30px; text-align: center;}
  .page-404-number {font-size: 120px;}

  .catfilter {grid-template-columns: 1fr;}

  .postfooter {flex-direction: column; gap: 20px; align-items: flex-start;}
  .pf-postfooter {flex-direction: column; gap: 20px; align-items: flex-start;}
  .pf-more-header {flex-wrap: wrap; gap: 12px;}
}

@media only screen and (max-width: 600px) {
  .postlisting {grid-template-columns: 1fr;}
  .people-grid {grid-template-columns: 1fr;}
  .pf-card {flex: 0 0 100%;}
  .logo-item {flex: 0 0 calc((100% - 20px) / 2);}
  .hero article h1 {font-size: 32px;}
  .resources .row > h2 {font-size: 40px;}
  .homeportfolio .ptitle h2 {font-size: 48px;}
  .pf-row-header h2 {font-size: 30px;}
  .pf-header h1 {font-size: 34px;}
  .postheader h1 {font-size: 30px;}
  .about-intro h1 {font-size: 32px;}
  .about-story h2, .about-collabs h2, .about-people h3 {font-size: 30px;}
  .singlepost {padding: 40px 20px;}
}

@media only screen and (max-width: 560px) {
  .header .tophead .row .input-search:focus, .header .tophead .row .btn-search:focus ~ .input-search {width: 150px;}
}

@media only screen and (max-width: 500px) {
  .carportfolio .item {padding: 0 5px;}
}

@media only screen and (max-width: 460px) {
  .logo-item {flex: 0 0 100%;}
  .hero article h1 {font-size: 28px;}
  .header .mainhead .logo img {max-width: 130px;}
  .intro h2 {font-size: 36px;}
}
