/*
Theme Name: Jinko SSE
Template: jinko
Description: Jinko theme customized with SSE brand colors
Version: 1.0
Author: SSE
*/

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* Override Jinko theme colors with SSE brand */
  --theme-color-1: #1C4B42 !important;
  --theme-color-2: #B4E717 !important;
  --theme-color-3: #0F2B26 !important;
  --theme-color-4: #1C4B42 !important;
  --theme-color-5: #0F2B26 !important;

  /* Core overrides */
  --body-background: #F6F5F2 !important;
  --header-background: #0F2B26 !important;
  --header-color: #ffffff !important;
  --header-elements-background: #1C4B42 !important;
  --header-elements-color: #ffffff !important;
  --toggle-icon-color: #ffffff !important;
  --footer-background: #0F2B26 !important;
  --header-border-color: transparent !important;
  --footer-border-color: transparent !important;
}

/* =============================================
   CUSTOM HEADER / NAVBAR (sse.to inspired)
   ============================================= */
.sse-custom-header {
  background: #1C4B42 !important;
  padding: 0 !important;
  border: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: auto !important;
  overflow: visible !important;
}
.sse-custom-header .sse-navbar,
.sse-custom-header .sse-navbar-inner {
  overflow: visible !important;
}
.sse-custom-header .site-header-inner,
.sse-custom-header .header-section,
.sse-custom-header .mobile-header,
.sse-custom-header .site-branding {
  display: none !important;
}
.sse-navbar {
  width: 100%;
  background: #1C4B42;
}
.sse-navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.sse-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.sse-nav-logo img {
  width: 140px;
  height: auto;
}

/* Nav menu */
.sse-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sse-nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Manrope', 'Work Sans', sans-serif;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.sse-nav-item > a:hover {
  color: #B4E717 !important;
}
.sse-nav-active > a {
  color: #B4E717 !important;
}
.sse-nav-caret {
  transition: transform 0.2s ease;
}
.sse-has-dropdown:hover .sse-nav-caret {
  transform: rotate(180deg);
}

/* Dropdown */
.sse-has-dropdown {
  position: relative;
}
.sse-dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 10px;
  min-width: 300px;
  z-index: 9999;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateY(8px);
}
.sse-has-dropdown:hover .sse-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.sse-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease;
  color: #333 !important;
}
.sse-dropdown-item:hover {
  background: rgba(28,75,66,0.06);
}
.sse-dropdown-item svg {
  flex-shrink: 0;
  color: #1C4B42;
  stroke: #1C4B42;
}
.sse-dropdown-item:hover svg {
  color: #B4E717;
  stroke: #1C4B42;
}
.sse-dd-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  font-family: 'Work Sans', sans-serif;
  text-align: left;
}
.sse-dd-desc {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-top: 1px;
  text-align: left;
}
.sse-dropdown {
  text-align: left;
}
.sse-dropdown-item div {
  text-align: left;
}
.sse-dropdown-item:hover .sse-dd-title {
  color: #1C4B42;
}

/* Phone button */
.sse-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sse-nav-phone:hover {
  background: #B4E717;
  border-color: #B4E717;
  color: #0F2B26 !important;
}
.sse-nav-phone svg {
  flex-shrink: 0;
}

/* Hamburger */
.sse-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.sse-hamburger:hover {
  border-color: rgba(255,255,255,0.4) !important;
}
.sse-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sse-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.sse-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.sse-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.sse-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.sse-nav-overlay.active {
  display: block;
}

/* --- Force our navbar visible on all screens (override parent theme hiding) --- */
.sse-custom-header .sse-navbar {
  display: block !important;
}
.sse-custom-header .mobile-header {
  display: none !important;
}

/* --- Header Responsive: Tablet/Mobile --- */
@media (max-width: 960px) {
  .sse-navbar-inner {
    height: 58px;
    padding: 0 20px;
  }
  .sse-nav-logo img {
    width: 120px;
  }
  .sse-nav-phone {
    display: none;
  }
  .sse-hamburger {
    display: flex;
  }
  .sse-nav-menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0F2B26;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    overflow-y: auto;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
  }
  .sse-nav-menu.open {
    display: flex;
  }
  .sse-nav-item > a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .sse-has-dropdown {
    position: static;
  }
  .sse-dropdown {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0;
    min-width: 0;
    display: none;
  }
  .sse-has-dropdown.open .sse-dropdown {
    display: block;
  }
  .sse-dropdown-item {
    padding: 10px 24px 10px 40px;
    color: rgba(255,255,255,0.7) !important;
  }
  .sse-dropdown-item:hover {
    background: rgba(255,255,255,0.06);
  }
  .sse-dd-title {
    color: #fff;
  }
  .sse-dd-desc {
    color: rgba(255,255,255,0.45);
  }
  .sse-dropdown-item svg {
    stroke: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.6);
  }
  .sse-dropdown-item:hover .sse-dd-title {
    color: #B4E717;
  }
}
.site-description,
.footer-copyright,
.footer-bottom,
.footer-bottom .footer-copyright {
  color: rgba(255,255,255,0.6) !important;
}

/* Footer base - handled by .sse-custom-footer in footer section below */

/* Font overrides */
body,
.entry-title,
.post-title,
h1, h2, h3, h4, h5, h6,
.widget-title {
  font-family: 'Work Sans', sans-serif !important;
}

.site-title,
.main-navigation,
.nav-links,
.widget-title {
  font-family: 'Manrope', sans-serif !important;
}



/* Accent color links */
a { color: #1C4B42; }
a:hover { color: #B4E717; }

/* Post titles */
.entry-title a,
.post-title a {
  color: #1a1a2e !important;
}
.entry-title a:hover,
.post-title a:hover {
  color: #1C4B42 !important;
}

/* Category/tag badges */
.cat-links a,
.tag-links a,
.post-category a,
.category-label {
  background: rgba(28,75,66,0.08) !important;
  color: #1C4B42 !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
.more-link,
.read-more {
  background: #1C4B42 !important;
  color: #fff !important;
  border-color: #1C4B42 !important;
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
.more-link:hover,
.read-more:hover {
  background: #B4E717 !important;
  color: #1C4B42 !important;
  border-color: #B4E717 !important;
}


/* Sidebar widget titles */
.widget-title,
.widgettitle {
  color: #1C4B42 !important;
  border-bottom-color: #B4E717 !important;
}

/* Single post headings */
/* Table styling — match content width + responsive */
.entry-content table {
  border-collapse: collapse;
  margin: 20px auto;
  font-size: 14px;
  max-width: var(--content-max-width, 46rem);
  width: 100%;
}
.entry-content table th {
  background: #1C4B42;
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}
.entry-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
@media (max-width: 600px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .entry-content table th,
  .entry-content table td {
    padding: 8px;
    white-space: nowrap;
  }
}
.entry-content th,
.entry-content td {
  padding: 10px 12px !important;
  text-align: left;
  vertical-align: top;
}
.entry-content th {
  background: #1C4B42 !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
}
.entry-content td {
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 768px) {
  .entry-content table {
    font-size: 12px !important;
  }
  .entry-content th,
  .entry-content td {
    padding: 8px 6px !important;
  }
}

/* Hide featured image on single post header */
.single .tfm-featured-media,
.single .post-thumbnail-wrapper,
.single .entry-header .post-thumbnail {
  display: none !important;
}

/* Featured image on blog listing */
.post-grid .thumbnail-wrapper {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

/* Hide excerpt on blog listing - show titles only */
.post-grid .entry-content.excerpt,
.post-grid .read-more,
.post-grid .more-link {
  display: none !important;
}

/* Hide featured posts section */
.tfm-featured-posts,
.featured-posts,
.featured-area {
  display: none !important;
}

/* Fix screen reader text visibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px) !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Code blocks — match content width */
.entry-content pre,
.entry-content code,
.entry-content .enlighter {
  max-width: var(--content-max-width, 46rem);
  margin-left: auto;
  margin-right: auto;
}

.single .entry-content h2 {
  color: #1C4B42;
  border-bottom: 2px solid #B4E717;
  padding-bottom: 8px;
}
.single .entry-content h3 {
  color: #1a1a2e;
}

/* Pagination */
.pagination .current,
.page-numbers.current {
  background: #1C4B42 !important;
  color: #fff !important;
  border-color: #1C4B42 !important;
}
.pagination .nav-links a,
a.page-numbers,
.nav-links .next,
.nav-links .prev {
  background: #1C4B42 !important;
  color: #fff !important;
  border-color: #1C4B42 !important;
}
.pagination .nav-links a:hover,
a.page-numbers:hover,
.nav-links .next:hover,
.nav-links .prev:hover {
  background: #B4E717 !important;
  color: #1C4B42 !important;
  border-color: #B4E717 !important;
}
.nav-links .next span,
.nav-links .prev span {
  color: inherit !important;
}

/* Selection color */
::selection {
  background: #B4E717;
  color: #1C4B42;
}



/* Hide comments everywhere */
.comments-link,
.comment-count,
.entry-meta-comment-count,
.entry-meta .comments-link,
.post-meta .comments-link,
#comments,
.comments-area,
.comment-respond,
.no-comments,
.comments-title {
  display: none !important;
}

/* Hide dark mode toggle, search icon, and back-to-top */
.toggle-color-mode,
.toggle-search,
.toggle-menu,
#toggle-search-sidebar,
.backtotop,
.goto-top {
  display: none !important;
}
/* Remove toggle space from header */
.has-toggle-color-mode .toggle-color-mode,
.has-toggle-search .toggle-search {
  display: none !important;
}

/* Force light mode always */
body, body[data-color-mode="dark"], body.tfm-dark-mode {
  --body-background: #F6F5F2 !important;
  --body-font-color: #44464b !important;
  --header-background: #0F2B26 !important;
  --header-color: #ffffff !important;
  --post-background: #ffffff !important;
  color-scheme: light !important;
}

/* Scrollbar accent */
::-webkit-scrollbar-thumb {
  background: #1C4B42;
}

/* Post meta */
.entry-meta,
.post-meta {
  color: #6b7280;
}
.entry-meta a,
.post-meta a {
  color: #1C4B42;
}

/* =============================================
   AUTHOR BIO BOX
   ============================================= */
.author-bio {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #1C4B42;
  border-radius: 6px;
  padding: 28px;
  margin: 40px 0;
}
.author-bio .author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.author-bio .author-avatar {
  flex-shrink: 0;
}
.author-bio .author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid #e8e7e3;
}
.author-bio .author-description {
  flex: 1;
}
.author-bio .author-bio-name {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}
.author-bio .author-bio-name a {
  color: #1a1a2e !important;
  text-decoration: none;
}
.author-bio .author-bio-name a:hover {
  color: #1C4B42 !important;
}
.author-bio .entry-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1C4B42;
  font-weight: 600;
  margin-bottom: 2px;
}
.author-bio .author-description p {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin: 8px 0 0;
}
/* Author role badge */
.sse-author-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1C4B42;
  background: rgba(28,75,66,0.08);
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 2px;
}
/* Author post count */
.sse-author-posts {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}
.sse-author-posts a {
  color: #1C4B42;
  font-weight: 600;
  text-decoration: none;
}
.sse-author-posts a:hover {
  color: #B4E717;
}
/* Reading time */
.sse-reading-time {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  font-weight: 500;
}
@media (max-width: 600px) {
  .author-bio .author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =============================================
   SIDEBAR STYLING
   ============================================= */
.aside-sidebar {
  padding-top: 10px;
}
.aside-sidebar .widget {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid #e8e7e3;
}
.aside-sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1C4B42 !important;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #B4E717 !important;
}

/* Search widget */
.aside-sidebar .widget_search {
  padding: 18px;
  background: #1C4B42;
  border-color: #1C4B42;
}
.aside-sidebar .widget_search .widget-title {
  color: #fff !important;
  border-bottom-color: #B4E717 !important;
}
.aside-sidebar .widget_search .search-field,
.aside-sidebar .widget_search input[type="search"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
}
.aside-sidebar .widget_search .search-field::placeholder {
  color: rgba(255,255,255,0.5);
}
.aside-sidebar .widget_search .search-field:focus {
  border-color: #B4E717;
  outline: none;
  background: rgba(255,255,255,0.15);
}
.aside-sidebar .widget_search input[type="submit"],
.aside-sidebar .widget_search .search-submit {
  background: #B4E717 !important;
  color: #1C4B42 !important;
  border: none !important;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
  width: 100%;
}
.aside-sidebar .widget_search input[type="submit"]:hover {
  background: #a3d014 !important;
}

/* Recent posts widget */
.aside-sidebar .widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-sidebar .widget_recent_entries li {
  padding: 10px 0;
  border-bottom: 1px solid #f0efec;
  line-height: 1.45;
}
.aside-sidebar .widget_recent_entries li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.aside-sidebar .widget_recent_entries a {
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: block;
}
.aside-sidebar .widget_recent_entries a:hover {
  color: #1C4B42;
}
.aside-sidebar .widget_recent_entries .post-date {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 2px;
}

/* Categories widget */
.aside-sidebar .widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-sidebar .widget_categories li {
  margin-bottom: 6px;
}
.aside-sidebar .widget_categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f8f6;
  border-radius: 5px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.aside-sidebar .widget_categories a:hover {
  background: rgba(28,75,66,0.08);
  color: #1C4B42;
}
.aside-sidebar .widget_categories li > a::after {
  content: attr(title);
}

/* Archive dropdown */
.aside-sidebar .widget_archive select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0dfdb;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

/* =============================================
   AD PLACEHOLDERS (generic)
   ============================================= */
.sse-ad-placeholder {
  min-height: 250px;
  background: #f0efec;
  border: 2px dashed #d0cfcb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.sse-ad-after-content {
  min-height: 90px;
  max-width: 728px;
  margin: 35px auto;
}

/* Inline ads between paragraphs */
.sse-inline-ad {
  margin: 30px 0;
  text-align: center;
}
.sse-inline-ad-inner {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
  background: #f0efec;
  border-top: 1px solid #e0dfdb;
  border-bottom: 1px solid #e0dfdb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
@media (max-width: 768px) {
  .sse-inline-ad-inner {
    min-height: 70px;
  }
}

/* =============================================
   BACKUP AD (sidebar promo)
   ============================================= */
/* Animations */
@keyframes sse-fade-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sse-pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes sse-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes sse-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -8px); }
}
@keyframes sse-float-reverse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 6px); }
}
@keyframes sse-stars-glow {
  0%, 100% { opacity: 0.8; text-shadow: 0 0 4px rgba(245,197,24,0.2); }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(245,197,24,0.5); }
}

.sse-backup-ad {
  background: linear-gradient(145deg, #0F2B26 0%, #1C4B42 100%);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Floating background bubbles */
.sse-backup-ad::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  background: rgba(180,231,23,0.08);
  border-radius: 50%;
  animation: sse-float 6s ease-in-out infinite;
}
.sse-backup-ad::after {
  content: '';
  position: absolute;
  bottom: -35px;
  left: -35px;
  width: 95px;
  height: 95px;
  background: rgba(180,231,23,0.06);
  border-radius: 50%;
  animation: sse-float-reverse 8s ease-in-out infinite;
}
/* Badge - gentle pulse */
.sse-ad-badge {
  display: inline-block;
  background: rgba(180,231,23,0.15);
  color: #B4E717;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  animation: sse-pulse-soft 3s ease-in-out infinite;
}
/* Hook - static */
.sse-ad-hook {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  font-family: 'Manrope', 'Work Sans', sans-serif;
}
/* Sub - static */
.sse-ad-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
/* Features slider - one at a time, slide in from right, pause, slide out left */
/* 3 items x (0.4s in + 2s hold + 0.4s out) = 8.4s total cycle */
@keyframes sse-slide-rotate {
  0%        { transform: translateX(100%) translateY(-50%); opacity: 0; }
  4.8%      { transform: translateX(0) translateY(-50%);    opacity: 1; }
  28.6%     { transform: translateX(0) translateY(-50%);    opacity: 1; }
  33.3%     { transform: translateX(-100%) translateY(-50%); opacity: 0; }
  33.4%, 100% { transform: translateX(100%) translateY(-50%); opacity: 0; }
}
.sse-ad-slider {
  position: relative;
  height: 48px;
  margin-top: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  z-index: 1;
}
.sse-ad-feat {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
  opacity: 0;
  font-family: 'Manrope', 'Work Sans', sans-serif;
  animation: sse-slide-rotate 8.4s ease-in-out infinite;
}
.sse-ad-feat:nth-child(2) { animation-delay: 2.8s; }
.sse-ad-feat:nth-child(3) { animation-delay: 5.6s; }
/* Price - fade in */
.sse-ad-price {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  animation: sse-fade-slide-up 0.5s ease-out 0.6s both;
}
.sse-ad-price strong {
  color: #B4E717;
  font-size: 22px;
  font-weight: 800;
}
/* CTA - glass shine sweep on hover */
.sse-ad-cta {
  display: block;
  background: #B4E717 !important;
  color: #0F2B26 !important;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
.sse-ad-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  transition: left 0.5s ease;
}
.sse-ad-cta:hover::before {
  left: 100%;
}
.sse-ad-cta:hover {
  background: #c8f535 !important;
}
/* Stars - subtle glow */
.sse-ad-trust {
  margin-top: 14px;
  position: relative;
  z-index: 1;
  animation: sse-fade-slide-up 0.5s ease-out 0.75s both;
}
.sse-ad-stars {
  color: #f5c518;
  font-size: 14px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 2px;
  animation: sse-stars-glow 3s ease-in-out infinite;
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .sse-backup-ad *, .sse-backup-ad::before, .sse-backup-ad::after {
    animation: none !important;
  }
}
.sse-ad-reviews {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
/* Remove widget card styling for the ad widget */
.aside-sidebar .widget_custom_html {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* FTP Storage ad */
.sse-ftp-ad {
  background: linear-gradient(135deg, #0a1628 0%, #162d50 100%);
  border-radius: 12px;
  padding: 22px 24px;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sse-ftp-ad::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 110px;
  height: 110px;
  background: rgba(56,189,248,0.06);
  border-radius: 50%;
}
.sse-ftp-ad::after {
  display: none;
}
.sse-ftp-ad .sse-ad-badge {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
}
/* FTP ad - top row: badge + speed pill */
.sse-ftp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.sse-ftp-top .sse-ad-badge {
  margin-bottom: 0;
}
.sse-ftp-speed-pill {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Manrope', 'Work Sans', sans-serif;
  letter-spacing: 0.03em;
}
/* FTP hook */
.sse-ftp-hook {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  font-family: 'Manrope', 'Work Sans', sans-serif;
}
/* FTP subtitle */
.sse-ftp-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
}
/* FTP bottom row - price + CTA side by side */
.sse-ftp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.sse-ftp-bottom .sse-ad-price {
  margin-bottom: 0;
  font-size: 13px;
}
.sse-ftp-bottom .sse-ad-cta {
  padding: 10px 20px;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* FTP ad button & price */
.sse-ftp-ad .sse-ad-price strong {
  color: #38bdf8;
}
.sse-ftp-ad .sse-ad-cta {
  background: #38bdf8 !important;
  color: #0a1628 !important;
}
.sse-ftp-ad .sse-ad-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  transition: left 0.5s ease;
}
.sse-ftp-ad .sse-ad-cta:hover::before {
  left: 100%;
}
.sse-ftp-ad .sse-ad-cta:hover {
  background: #5dcefb !important;
}
/* Loop sidebar between posts - remove card styling */
.loop-sidebar.sidebar {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.loop-sidebar-inner {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.loop-sidebar .widget {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Sidebar ad has smaller min-height */
.aside-sidebar .sse-ad-placeholder {
  min-height: 250px;
}

/* =============================================
   ARTICLE LIST / ARCHIVE IMPROVEMENTS
   ============================================= */

/* Category labels on post cards */
.post-grid .cat-links {
  margin-bottom: 8px;
}
.post-grid .cat-links a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 3px;
}

/* Improve readability on single posts */
.single .entry-content {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}
.single .entry-content p {
  margin-bottom: 1.4em;
}

/* Archive page header */
.archive-header,
.page-header {
  background: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  border-left: 4px solid #B4E717;
  margin-bottom: 25px;
}
.archive-title,
.page-title {
  color: #1C4B42;
  font-weight: 700;
}
.archive-description,
.taxonomy-description {
  color: #555;
  font-size: 15px;
  margin-top: 5px;
}

/* Author archive page */
.author .archive-header {
  border-left-color: #1C4B42;
}

/* =============================================
   CUSTOM FOOTER (sse.to inspired)
   ============================================= */
.sse-custom-footer {
  background: #0F2B26 !important;
  color: rgba(255,255,255,0.7);
  padding: 0 !important;
  border-top: none !important;
  margin-top: 60px !important;
}
.sse-custom-footer * {
  box-sizing: border-box;
}
.sse-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* --- Footer Grid (4 columns) --- */
.sse-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 50px 0 35px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sse-footer-heading {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.01em;
}
.sse-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sse-footer-links li {
  margin-bottom: 0;
}
.sse-footer-links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.sse-footer-links a:hover {
  color: #B4E717 !important;
  padding-left: 4px;
}

/* --- Description Section --- */
.sse-footer-desc {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sse-footer-about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.sse-footer-availability {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sse-footer-avail-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
}
.sse-footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sse-footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  background: rgba(255,255,255,0.05);
}
.sse-footer-contact-link:hover {
  background: rgba(255,255,255,0.12);
  color: #B4E717 !important;
}
.sse-footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.sse-footer-contact-link:hover svg {
  opacity: 1;
}
.sse-footer-about-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.55) !important;
  margin: 0;
  max-width: 900px;
}

/* --- Legal Links --- */
.sse-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sse-footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sse-footer-legal a:hover {
  color: #B4E717 !important;
}
.sse-footer-legal-sep {
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}

/* --- Copyright & Social --- */
.sse-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 25px;
}
.sse-footer-copyright {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.5) !important;
  margin: 0;
}
.sse-footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sse-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.sse-footer-social a:hover {
  color: #B4E717 !important;
  background: rgba(255,255,255,0.08);
}

/* --- Hide parent theme footer elements we don't need --- */
.sse-custom-footer .site-footer-inner,
.sse-custom-footer .footer-widget-area,
.sse-custom-footer .footer-bottom,
.sse-custom-footer .footer-copyright {
  display: none !important;
}

/* --- Footer Responsive: Tablet --- */
@media (max-width: 1024px) {
  .sse-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
    padding: 40px 0 30px;
  }
}

/* --- Footer Responsive: Mobile --- */
@media (max-width: 640px) {
  .sse-footer-inner {
    padding: 0 20px;
  }
  .sse-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding: 32px 0 24px;
  }
  .sse-footer-heading {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .sse-footer-links a {
    font-size: 13px;
    padding: 6px 0;
  }
  .sse-footer-about-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .sse-footer-contact {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sse-footer-contact-link {
    font-size: 13px;
    padding: 7px 12px;
  }
  .sse-footer-about-text {
    font-size: 13px;
    line-height: 1.7;
  }
  .sse-footer-legal {
    gap: 4px 8px;
    padding: 16px 0;
  }
  .sse-footer-legal a {
    font-size: 12px;
  }
  .sse-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px 0 22px;
  }
  .sse-footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
  .sse-footer-copyright {
    font-size: 13px;
  }
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .aside-sidebar .widget {
    padding: 16px;
    margin-bottom: 15px;
  }
  .author-bio {
    padding: 20px;
    margin: 25px 0;
  }
  .single .entry-content {
    font-size: 16px;
  }
}
