/*--------------------------------------------------------------
# General col-lg-8 pt-4 pt-lg-0 content
--------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #0563bb;
}

::-webkit-scrollbar-thumb:hover {
  background: #067ded;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #272829;
  /* Sticky-footer scaffold — keeps #footer pinned to the bottom of the
     viewport on short pages (e.g. /downloader before any media is fetched).
     On taller pages this is a no-op because #main grows beyond the viewport
     anyway. The fixed-position #header is out of flow so it doesn't affect
     this layout. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#main {
  flex: 1;
}

a {
  color: #0563bb;
  text-decoration: none;
}

a:hover {
  color: #067ded;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #0563bb;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #0678e3;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #0563bb;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: all 0.5s;
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 992px) {
  #header {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e6e9ec;
    left: -300px;
  }
}

@media (min-width: 992px) {
  #main {
    margin-left: 100px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: block;
}

.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #45505b;
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: 0.3s;
  font-size: 15px;
  border-radius: 50px;
  background: #f2f3f5;
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
  padding: 0 5px 0 7px;
  color: #45505b;
}

@media (min-width: 992px) {

  .nav-menu a,
  .nav-menu a:focus {
    width: 56px;
  }

  .nav-menu a span,
  .nav-menu a:focus span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover>a {
  color: #fff;
  background: #0563bb;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover>a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover>a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover>a span {
  display: block;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 28px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50px;
  padding: 5px;
}

.mobile-nav-toggle i {
  color: #45505b;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") top right no-repeat;
  background-size: cover;
  position: relative;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 160px;
  }
}

#hero:before {
  content: "";
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero .container {
  position: relative;
  z-index: 1;
}

#hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #45505b;
}

#hero p {
  color: #45505b;
  margin: 15px 0 0 0;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
}

#hero p span {
  color: #0563bb;
  letter-spacing: 1px;
}

#hero .social-links {
  margin-top: 30px;
}

#hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: #45505b;
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

#hero .social-links a:hover {
  color: #0563bb;
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
  }

  #hero h1 {
    font-size: 32px;
    line-height: 36px;
  }

  #hero p {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #45505b;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: #0563bb;
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: #272829;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #0563bb;
  line-height: 0;
}

.about .content p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/
.facts .count-box {
  padding: 30px 30px 25px 30px;
  margin-top: 30px;
  width: 100%;
  position: relative;
  text-align: center;
  background: #fff;
}

.facts .count-box i {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  background: #0563bb;
  color: #fff;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.facts .count-box span {
  font-size: 36px;
  display: block;
  font-weight: 600;
  color: #011426;
}

.facts .count-box p {
  padding: 0;
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: #45505b;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: #f2f3f5;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: #0563bb;
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #45505b;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #0563bb;
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #0563bb;
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #f7f8f9;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #0563bb;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  background: #fff;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #272829;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #0563bb;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: rgba(69, 80, 91, 0.8);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
}

/* ── New portfolio card design ─────────────────────────────────────────────── */
.portfolio .portfolio-item {
  margin-bottom: 20px;
}

.portfolio .pc-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.portfolio .pc-card {
  background: #272829;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.portfolio .pc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.18);
}

.portfolio .pc-visual {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16%;
  background: #272829;
}

.portfolio .pc-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.portfolio .pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.portfolio .pc-icon-wrap {
  width: 58%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.portfolio .pc-icon {
  font-size: 2.8rem;
  color: #272829;
}

.portfolio .pc-body {
  padding: 11px 15px 13px;
  background: #1e1f20;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio .pc-body h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f0f0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Open Sans', sans-serif;
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  bottom: 30px;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-info {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  top: 35px;
  left: 35px;
  border-top: 3px solid #d7dce1;
  border-left: 3px solid #d7dce1;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info::after {
  display: block;
  content: "";
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 35px;
  right: 35px;
  border-bottom: 3px solid #d7dce1;
  border-right: 3px solid #d7dce1;
  transition: all 0.5s ease 0s;
  z-index: 9994;
}

.portfolio .portfolio-wrap .portfolio-info h4 {
  font-size: 20px;
  color: #45505b;
  font-weight: 600;
}

.portfolio .portfolio-wrap .portfolio-info p {
  color: #45505b;
  font-size: 14px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  text-align: center;
  z-index: 4;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #45505b;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #148af9;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
  top: 15px;
  left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
  bottom: 15px;
  right: 15px;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(69, 80, 91, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .icon-box .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .icon-box .icon svg path {
  transition: 0.5s;
  fill: #f5f5f5;
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: #45505b;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0px 0 35px 0 rgba(0, 0, 0, 0.08);
}

.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon i {
  color: #fff;
}

.services .iconbox-blue:hover .icon path {
  fill: #47aeff;
}

.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon i {
  color: #fff;
}

.services .iconbox-orange:hover .icon path {
  fill: #ffa76e;
}

.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon i {
  color: #fff;
}

.services .iconbox-pink:hover .icon path {
  fill: #e80368;
}

.services .iconbox-yellow i {
  color: #ffbb2c;
}

.services .iconbox-yellow:hover .icon i {
  color: #fff;
}

.services .iconbox-yellow:hover .icon path {
  fill: #ffbb2c;
}

.services .iconbox-green i {
  color: #28a745;
}

.services .iconbox-green:hover .icon i {
  color: #fff;
}

.services .iconbox-green:hover .icon path {
  fill: #28a745;
}

.services .iconbox-red i {
  color: #ff5828;
}

.services .iconbox-red:hover .icon i {
  color: #fff;
}

.services .iconbox-red:hover .icon path {
  fill: #ff5828;
}

.services .iconbox-teal i {
  color: #11dbcf;
}

.services .iconbox-teal:hover .icon i {
  color: #fff;
}

.services .iconbox-teal:hover .icon path {
  fill: #11dbcf;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .section-header {
  margin-bottom: 40px;
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  text-align: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: #90c8fc;
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #0563bb;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #0563bb;
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 80%;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: #fff;
}

.contact .info i {
  font-size: 20px;
  color: #0563bb;
  float: left;
  width: 44px;
  height: 44px;
  background: #eef7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #45505b;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: #728394;
}

.contact .info .email,
.contact .info .phone {
  margin-top: 40px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: #0563bb;
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

/* ── Contact form status messages — brand-consistent styling ──────────── */
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message,
.contact .php-email-form .loading {
  display: none;
  font-family: "Open Sans", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 4px solid transparent;
  line-height: 1.5;
  margin-top: 4px;
}

.contact .php-email-form .error-message {
  color: #b3261e;
  background: #fdecea;
  border-left-color: #d93025;
}
.contact .php-email-form .error-message br + br {
  margin-top: 14px;
}

.contact .php-email-form .sent-message {
  color: #0b7a3d;
  background: #e6f7ed;
  border-left-color: #16a34a;
}

.contact .php-email-form .loading {
  color: #173b6c;
  background: #eaf3fc;
  border-left-color: #0563bb;
  display: none;
}
.contact .php-email-form .loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid #0563bb;
  border-top-color: transparent;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
}
@keyframes contactSpin {
  to { transform: rotate(360deg); }
}
/* ── End contact status messages ──────────────────────────────────────── */

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
}

.contact .php-email-form input {
  height: 44px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
}

.contact .php-email-form button[type=submit] {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #0678e3;
}

@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.contact-button {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.contact-button:hover {
  background: #0678e3;
}

/*--------------------------------------------------------------
# Extra
--------------------------------------------------------------*/

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.new-joke-button {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.new-joke-button:hover {
  background: #0678e3;
}

.joke-container {
  font-size: 25px;
  margin-top: 2em;
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.word-container {
  font-size: 20px;
  margin-top: 2em;
  text-align: center;
  padding: 70px 20px 80px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
}

.search-button {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  margin-top: 1em;
  text-align: center;
}

.search-button:hover {
  background: #0678e3;
}

.link-button {
  background: #0563bb;
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  margin-top: 1em;
  text-align: center;
}

.link-button:hover {
  background: #0678e3;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #f7f8f9;
  color: #45505b;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

#footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  font-family: "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 15px 0;
}

#footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
}

#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #0563bb;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: #0678e3;
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  margin: 0 0 5px 0;
}

#footer .copyright a {
  color: #0563bb;
  text-decoration: none;
}

#footer .copyright a:hover {
  text-decoration: underline;
}

#footer .credits {
  font-size: 13px;
}

/*--------------------------------------------------------------
# GLightbox Responsive Fixes - Centered Popup with Internal Scroll
--------------------------------------------------------------*/

/* Lock body scroll when lightbox is open */
body.glightbox-open,
html.glightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Main container - full viewport overlay */
.glightbox-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999990 !important;
}

/* Inner container centering */
.glightbox-container .gcontainer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.glightbox-container .gslider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.glightbox-container .gslide {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
}

.glightbox-container .gslide.current {
  display: flex !important;
}

/* Media wrapper - controls the popup size */
.glightbox-container .gslide-media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 90vw !important;
  height: 90vh !important;
  max-width: 900px !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Iframe fills the media container and scrolls internally */
.glightbox-container .gslide iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}

/* Inner content wrapper */
.glightbox-container .gslide-inner-content,
.glightbox-container .ginner-container {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Close button positioning */
.glightbox-container .gclose {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 50% !important;
}

/* Tablet screens */
@media (max-width: 992px) {
  .glightbox-container .gslide-media {
    width: 95vw !important;
    height: 85vh !important;
    max-width: none !important;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .glightbox-container .gslide-media {
    width: 98vw !important;
    height: 80vh !important;
    border-radius: 4px !important;
  }

  .glightbox-container .gclose {
    top: 10px !important;
    right: 10px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .glightbox-container .gslide-media {
    width: 100vw !important;
    height: 85vh !important;
    border-radius: 0 !important;
  }
}

/*--------------------------------------------------------------
# Ethanol Calculator
--------------------------------------------------------------*/
.ethanol-calculator {
  padding: 60px 0;
}

.calc-card {
  background: #fff;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.1);
  padding: 40px 50px 50px;
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-field label {
  font-size: 14px;
  font-weight: 600;
  color: #45505b;
}

.input-unit-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-unit-wrap:focus-within {
  border-color: #0563bb;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.12);
}

.input-unit-wrap input {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  color: #45505b;
  background: transparent;
}

.input-unit-wrap input::placeholder {
  color: #adb5bd;
  font-size: 13px;
}

.unit {
  padding: 10px 14px;
  background: #f1f4f8;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid #ced4da;
  white-space: nowrap;
}

.reset-button {
  background: transparent;
  border: 2px solid #0563bb;
  padding: 10px 35px;
  color: #0563bb;
  transition: 0.4s;
  border-radius: 50px;
  margin-top: 1em;
  margin-left: 12px;
  font-size: 14px;
  cursor: pointer;
}

.reset-button:hover {
  background: #0563bb;
  color: #fff;
}

.unit-toggle {
  background: #e8f0fb;
  color: #0563bb;
  border: none;
  border-left: 1px solid #ced4da;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.unit-toggle:hover {
  background: #0563bb;
  color: #fff;
}

.unit-toggle::after {
  content: ' ⇄';
  font-size: 11px;
  opacity: 0.7;
}

.result-unit-toggle {
  display: inline-flex;
  border: 1px solid #d0dae8;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}

.unit-tab {
  background: transparent;
  border: none;
  padding: 6px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.unit-tab.active {
  background: #0563bb;
  color: #fff;
}

.unit-tab:not(.active):hover {
  background: #e8f0fb;
  color: #0563bb;
}

.calc-error {
  /* Match the .calc-card / .presets-panel max-width so the error strip
     lines up with the cards and form text below it instead of stretching
     across the full container. Auto margins keep it centered. */
  max-width: 900px;
  margin: 28px auto 0;
  padding: 14px 20px;
  background: #fff3f3;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  color: #dc3545;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Shared form primitives — used by /citation, /calculator,
# /periodic, /downloader, /dictionary, and /thesaurus. Originally
# named cite-* and stuck inside citation.css, which made every
# other page silently depend on a stylesheet they didn't link.
# Moved here so any page that includes style.css gets them free.
--------------------------------------------------------------*/

/* A vertical stack of labeled option rows, separated from the form
   below by a hairline divider. */
.option-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef0f2;
}

/* One row inside .option-rows: a small uppercase label on the left and
   whatever control sits on the right. Wraps to a column on phones. */
.option-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.option-row-label {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  min-width: 92px;
}

/* Grid of icon-over-label tab buttons (e.g. citation source types,
   matrix operations, physics formulas). Default 5-up; pages that need
   more or fewer columns override grid-template-columns. */
.icon-tab-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}
.icon-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: transparent;
  border: 1.5px solid #d0dae8;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.icon-tab i {
  font-size: 22px;
  color: #6c757d;
  transition: color 0.15s;
}
.icon-tab:hover {
  border-color: #0563bb;
  color: #0563bb;
  background: #e8f0fb;
}
.icon-tab:hover i { color: #0563bb; }
.icon-tab.active {
  border-color: #0563bb;
  background: #0563bb;
  color: #fff;
}
.icon-tab.active i { color: #fff; }

/* A pill-toggle (.result-unit-toggle) sitting inline inside an .option-row
   shouldn't carry the standalone bottom margin. */
.option-row .result-unit-toggle { margin-bottom: 0; }

/* Centered button row that pairs .search-button + .reset-button (or any
   action buttons) and strips their default top/left margins so the gap
   here is the only gap. */
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.action-row .search-button,
.action-row .reset-button {
  margin: 0;
}

/* ── Mobile rules for the shared primitives ─────────────────────────────── */
@media (max-width: 768px) {
  .option-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .option-row-label { min-width: 0; }
  .icon-tab-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .icon-tab { padding: 9px 6px; font-size: 11px; }
  .icon-tab i { font-size: 20px; }
  /* Pill toggles inside option rows stretch full-width on mobile so labels
     don't get clipped. */
  .option-row .result-unit-toggle {
    display: flex;
    width: 100%;
  }
  .option-row .result-unit-toggle .unit-tab {
    flex: 1;
    padding: 7px 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .icon-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Below ~480 px, four tabs in a single row become too cramped — wrap to
     a 2 × 2 grid that keeps the same blue-pill aesthetic. */
  .option-row .result-unit-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
  }
  .option-row .result-unit-toggle .unit-tab {
    border-radius: 0;
    padding: 8px 6px;
    font-size: 12px;
  }
}

.calc-results {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid #eef0f2;
  text-align: center;
}

.calc-results h3 {
  font-size: 18px;
  font-weight: 600;
  color: #45505b;
  margin-bottom: 28px;
}

.results-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f8fafd;
  border-radius: 10px;
  padding: 28px 40px;
  min-width: 180px;
  border: 1px solid #e4eaf1;
}

.result-icon {
  font-size: 32px;
  color: #0563bb;
}

.result-icon.ethanol-icon {
  color: #28a745;
}

.result-label {
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 26px;
  font-weight: 700;
  color: #45505b;
}

.result-summary {
  font-size: 14px;
  color: #6c757d;
  margin-top: 8px;
  padding: 0 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .calc-card {
    padding: 28px 20px 36px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .results-grid {
    gap: 20px;
  }

  .result-item {
    padding: 22px 28px;
    min-width: 140px;
  }
}

/* ── Ethanol Presets Panel ──────────────────────────────────────────────────── */
.presets-panel {
  max-width: 900px;
  margin: 24px auto 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.1);
  overflow: hidden;
}

.presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid #eef0f2;
  background: #f8fafd;
}

.presets-title {
  font-size: 15px;
  font-weight: 700;
  color: #45505b;
  display: flex;
  align-items: center;
  gap: 7px;
}

.presets-title i {
  font-size: 18px;
  color: #0563bb;
}

.preset-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-save-row input {
  padding: 7px 13px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 13px;
  color: #45505b;
  width: 180px;
  outline: none;
  transition: border-color 0.2s;
}

.preset-save-row input:focus {
  border-color: #0563bb;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.1);
}

.preset-save-row button {
  padding: 7px 16px;
  background: #0563bb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.preset-save-row button:hover {
  background: #044a8e;
}

.presets-list {
  padding: 12px 0;
  max-height: 320px;
  overflow-y: auto;
}

.presets-empty {
  text-align: center;
  color: #adb5bd;
  font-size: 13px;
  padding: 24px 20px;
  margin: 0;
}

.preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 28px;
  border-bottom: 1px solid #f1f4f8;
  gap: 12px;
  transition: background 0.15s;
}

.preset-item:last-child {
  border-bottom: none;
}

.preset-item:hover {
  background: #f8fafd;
}

.preset-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.preset-name {
  font-size: 14px;
  font-weight: 600;
  color: #45505b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-meta {
  font-size: 12px;
  color: #6c757d;
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.preset-load-btn {
  padding: 5px 14px;
  background: transparent;
  border: 1.5px solid #0563bb;
  border-radius: 20px;
  color: #0563bb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.preset-load-btn:hover {
  background: #0563bb;
  color: #fff;
}

.preset-del-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #ced4da;
  border-radius: 50%;
  color: #adb5bd;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
}

.preset-del-btn:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff3f3;
}

@media (max-width: 768px) {
  .presets-header {
    padding: 14px 16px;
  }

  .preset-save-row input {
    width: 130px;
  }

  .preset-item {
    padding: 10px 16px;
  }
}

@media (max-width: 576px) {
  .presets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .preset-save-row {
    width: 100%;
  }

  .preset-save-row input {
    flex: 1;
    width: auto;
  }
}

/* ── End Ethanol Presets Panel ──────────────────────────────────────────────── */

@media (max-width: 576px) {
  .portfolio .pc-body h4 {
    font-size: 12px;
  }

  .portfolio .pc-body {
    padding: 9px 11px 11px;
  }

  .portfolio .pc-visual {
    padding: 13%;
  }
}
/* ── Fortnite STW Tracker ─────────────────────────────────────────────────── */
.fortnite-tracker {
  padding: 60px 0;
}

/* Status / timer strip */
.stw-status-strip {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stw-timer-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.10);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #eef0f2;
  transition: transform 0.18s, box-shadow 0.18s;
}
.stw-timer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 99, 187, 0.10);
}
.stw-timer-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: #e8f0fb;
  color: #0563bb;
  border-radius: 10px;
  font-size: 22px;
  flex-shrink: 0;
}
.stw-timer-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stw-timer-label {
  font-size: 11px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.stw-timer-value {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #45505b;
  font-variant-numeric: tabular-nums;
}
.stw-refresh-btn {
  margin-top: 4px;
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid #0563bb;
  color: #0563bb;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.stw-refresh-btn:hover { background: #0563bb; color: #fff; }

/* Controls bar */
.stw-controls {
  max-width: 1200px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  box-shadow: 0px 5px 30px rgba(110, 123, 131, 0.06);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) auto auto auto;
  gap: 14px;
  align-items: center;
}
.stw-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafd;
  border: 1px solid #e4eaf1;
  border-radius: 50px;
  padding: 0 12px 0 14px;
  height: 40px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stw-search:focus-within {
  border-color: #0563bb;
  box-shadow: 0 0 0 3px rgba(5, 99, 187, 0.10);
}
.stw-search > i { color: #0563bb; font-size: 18px; }
.stw-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #45505b;
  padding: 0 10px;
  height: 100%;
}
.stw-search input::placeholder { color: #adb5bd; }
.stw-search-clear {
  background: transparent;
  border: none;
  color: #adb5bd;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.stw-search-clear:hover { color: #dc3545; }
.stw-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stw-control-label {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stw-select {
  border: 1px solid #e4eaf1;
  border-radius: 50px;
  background: #f8fafd;
  color: #45505b;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%230563bb'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.stw-select:focus { border-color: #0563bb; }
.stw-view-toggle {
  display: inline-flex;
  border: 1px solid #d0dae8;
  border-radius: 50px;
  overflow: hidden;
}
.stw-view-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, color 0.2s;
}
.stw-view-btn.active { background: #0563bb; color: #fff; }
.stw-view-btn:not(.active):hover { background: #e8f0fb; color: #0563bb; }
.stw-toggle-btn {
  background: transparent;
  border: 1.5px solid #0563bb;
  color: #0563bb;
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s, color 0.2s;
}
.stw-toggle-btn:hover { background: #0563bb; color: #fff; }
.stw-toggle-btn.is-on { background: #0563bb; color: #fff; }
.stw-toggle-btn-ghost { border-color: #ced4da; color: #6c757d; }
.stw-toggle-btn-ghost:hover { background: #6c757d; color: #fff; border-color: #6c757d; }

/* Quick filter chips row */
.stw-quick-chips {
  max-width: 1200px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.stw-quick-chips-label {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stw-chip {
  background: #fff;
  border: 1.5px solid #d0dae8;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #45505b;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.stw-chip:hover { border-color: #0563bb; color: #0563bb; transform: translateY(-1px); }
.stw-chip.is-active { background: #0563bb; border-color: #0563bb; color: #fff; }
.stw-chip-quick { background: #f1f8e9; border-color: #c5e1a5; color: #33691e; }
.stw-chip-quick:hover { border-color: #33691e; color: #33691e; }
.stw-chip-quick.is-active { background: #33691e; border-color: #33691e; color: #fff; }

/* Filters panel (details/summary) */
.stw-filters-panel {
  max-width: 1200px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  box-shadow: 0px 5px 30px rgba(110, 123, 131, 0.06);
  overflow: hidden;
}
.stw-filters-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #45505b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafd;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.stw-filters-summary::-webkit-details-marker { display: none; }
.stw-filters-summary:hover { background: #eef5fc; }
.stw-filters-panel[open] .stw-filters-summary { border-bottom-color: #eef0f2; }
.stw-filters-summary i { color: #0563bb; margin-right: 6px; }
.stw-filters-count {
  font-size: 11px;
  font-weight: 600;
  color: #0563bb;
  background: #e8f0fb;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stw-filters-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 18px;
}
.stw-filter-group { display: flex; flex-direction: column; gap: 8px; }
.stw-filter-title {
  font-size: 12px;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stw-power-range {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.stw-power-range label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #45505b;
  font-weight: 600;
}
.stw-power-range input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.stw-power-range input:focus { border-color: #0563bb; }

/* Section heading */
.stw-section {
  max-width: 1200px;
  margin: 0 auto 32px;
}
.stw-section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid #eef0f2;
  padding-bottom: 10px;
}
.stw-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #45505b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stw-section-title i { color: #0563bb; }
.stw-section-sub {
  font-size: 13px;
  color: #6c757d;
}

/* Grid */
.stw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.stw-grid-shop {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.stw-empty {
  text-align: center;
  color: #adb5bd;
  font-size: 14px;
  padding: 28px 12px;
  font-style: italic;
}

/* Card */
.stw-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  padding: 16px 18px 14px;
  box-shadow: 0px 5px 30px rgba(110, 123, 131, 0.07);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(5, 99, 187, 0.10);
  border-color: #d0dae8;
}
.stw-card.stw-compact { padding: 12px 14px; gap: 8px; }
.stw-card.stw-compact .stw-mods { display: none; }
.stw-card.stw-compact .stw-rewards { gap: 4px; }
.stw-card.stw-compact .stw-card-meta { font-size: 11px; }

.stw-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.stw-card-titlewrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stw-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #45505b;
  margin: 0;
  line-height: 1.25;
}
.stw-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.stw-kind-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 50px;
  color: #fff;
  background: #6c757d;
}
.stw-kind-alert   { background: #f57c00; }
.stw-kind-daily   { background: #0563bb; }
.stw-kind-current { background: #45505b; }
.stw-kind-shop    { background: #45505b; }
.stw-x4-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 50px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe082;
}
.stw-fav-btn {
  background: transparent;
  border: none;
  color: #ced4da;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 2px;
  transition: color 0.18s, transform 0.18s;
}
.stw-fav-btn:hover { color: #f5b301; transform: scale(1.1); }
.stw-fav-btn.is-fav { color: #f5b301; }

.stw-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: #6c757d;
}
.stw-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.stw-card-meta i { color: #0563bb; font-size: 14px; }

.stw-mods { display: flex; flex-wrap: wrap; gap: 5px; }
.stw-mod-badge {
  background: #fff3f3;
  color: #dc3545;
  border: 1px solid #ffd0d4;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

.stw-rewards { display: flex; flex-wrap: wrap; gap: 6px; }
.stw-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: #f8fafd;
  border: 1px solid #e4eaf1;
  color: #45505b;
}
.stw-reward-qty { font-weight: 700; opacity: 0.85; }
.stw-rar-mythic    { background: #fff3e0; border-color: #ffcc80; color: #e65100; }
.stw-rar-legendary { background: #fff8e1; border-color: #ffe082; color: #f57c00; }
.stw-rar-epic      { background: #f3e5f5; border-color: #ce93d8; color: #6a1b9a; }
.stw-rar-rare      { background: #e3f2fd; border-color: #90caf9; color: #0d47a1; }
.stw-rar-uncommon  { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.stw-rar-common    { background: #f8fafd; border-color: #e4eaf1; color: #45505b; }

.stw-card-foot {
  display: flex;
  justify-content: flex-end;
  border-top: 1px dashed #eef0f2;
  padding-top: 10px;
  margin-top: 2px;
}
.stw-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #0563bb;
  background: #e8f0fb;
  padding: 4px 10px;
  border-radius: 50px;
  font-variant-numeric: tabular-nums;
}

/* Data note */
.stw-data-note {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #d0dae8;
}
.stw-data-note-title {
  font-size: 13px;
  font-weight: 700;
  color: #0563bb;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stw-data-note p {
  margin: 0;
  font-size: 13px;
  color: #6c757d;
  line-height: 1.6;
}
.stw-data-note code {
  background: #f1f4f8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #0563bb;
}

/* Responsive */
@media (max-width: 1100px) {
  .stw-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stw-control-group { flex-wrap: wrap; }
}
@media (max-width: 992px) {
  .stw-status-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .stw-status-strip { grid-template-columns: 1fr; }
  .stw-section-title { font-size: 17px; }
  .stw-card { padding: 14px; }
  .stw-card-title { font-size: 14px; }
  .fortnite-tracker { padding: 40px 0; }
}
/* ── End Fortnite STW Tracker ─────────────────────────────────────────────── */

/* ── Portrait image (about page) ──────────────────────────────────────────
   Dedicated style marker so the portrait stands out from the background.
   Smaller, square-rounded, with a brand-blue ring + soft shadow.
   Use by adding class="portrait" to any <img>.
   ──────────────────────────────────────────────────────────────────────── */
.portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px #0563bb,
    0 12px 30px rgba(5, 99, 187, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.08);
  margin: 4px auto 0;
  background: #f5f8fd;
}

/* Center the portrait inside its column on the about page */
.about .col-lg-4 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Mobile (stacked columns): keep portrait modest and centered */
@media (max-width: 991.98px) {
  .about .col-lg-4 {
    margin-bottom: 28px;
  }
  .portrait {
    max-width: 220px;
  }
}
@media (max-width: 575.98px) {
  .portrait {
    max-width: 190px;
  }
}
/* ── End Portrait ──────────────────────────────────────────────────────── */
