/*
Theme Name: Vilva Child
Theme URI: https://www.daaraysembene-upnso.com
Description: Child theme for Vilva with custom header and carousel
Author: Daaray Sembène UPNSO
Author URI: https://www.daaraysembene-upnso.com
Template: vilva
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vilva-child
*/

/* ========================================
   Import distinctive typography
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ========================================
   Custom Color Variables
   ======================================== */
:root {
  --ds-light-blue: #79D0F2;
  --ds-yellow: #F2CF1D;
  --ds-dark-red: #8C3718;
  --ds-orange: #F27141;
  --ds-black: #0D0D0D;
  --ds-header-bg: #1a4a6e;
  --ds-cream: #FAF8F5;
}

/* ========================================
   Global Typography
   ======================================== */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ========================================
   Custom Header - Refined
   ======================================== */
.site-header.style-one {
  background: var(--ds-header-bg);
  border-bottom: none;
}

.ds-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--ds-header-bg);
  position: relative;
  z-index: 100;
}

.ds-top-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--ds-dark-red) 15%, 
    var(--ds-orange) 50%, 
    var(--ds-dark-red) 85%, 
    transparent 100%);
  opacity: 0.6;
}

.ds-logo-area .site-title a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: white !important;
  text-decoration: none;
  letter-spacing: -0.02em;
  position: relative;
}

.ds-logo-area img {
  max-height: 45px;
  width: auto;
}

.ds-nav-area ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.ds-nav-area a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.ds-nav-area a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ds-yellow);
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.ds-nav-area a:hover {
  color: var(--ds-yellow) !important;
}

.ds-nav-area a:hover::before {
  width: 100%;
}

/* Hide original header sections */
.header-t,
.header-mid,
.header-bottom {
  display: none !important;
}

/* ========================================
   Hero Carousel - Cinematic Editorial
   ======================================== */
.ds-hero-carousel {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 450px;
  max-height: 650px;
  overflow: hidden;
  background: var(--ds-header-bg);
}

.ds-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.ds-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ds-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.05);
  transition: transform 8s ease-out, filter 1.2s ease;
}

.ds-carousel-slide.active img {
  transform: scale(1);
}

/* Cinematic overlay with gradient */
.ds-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(to bottom, 
      rgba(13, 13, 13, 0.3) 0%, 
      rgba(13, 13, 13, 0.1) 40%, 
      rgba(13, 13, 13, 0.7) 80%,
      rgba(13, 13, 13, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 12%;
  padding-bottom: 100px;
}

.ds-slide-content {
  color: white;
  max-width: 720px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: 0.3s;
}

.ds-carousel-slide.active .ds-slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* Refined badge */
.ds-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ds-yellow);
}

.ds-slide-badge::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ds-yellow);
}

.ds-slide-badge::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ds-yellow);
}

/* Cinematic title */
.ds-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 24px;
  color: white;
  letter-spacing: -0.02em;
}

.ds-slide-title em {
  font-style: italic;
  color: var(--ds-light-blue);
}

/* Refined subtitle */
.ds-slide-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  letter-spacing: -0.01em;
}

/* Sophisticated CTA button */
.ds-slide-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: white;
  padding: 18px 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
}

.ds-slide-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ds-yellow);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.ds-slide-button:hover {
  border-color: var(--ds-yellow);
  color: var(--ds-black);
}

.ds-slide-button:hover::before {
  transform: translateX(0);
}

.ds-slide-button::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s ease;
}

.ds-slide-button:hover::after {
  transform: translateX(4px);
}

/* Refined navigation arrows */
.ds-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-carousel-nav:hover {
  background: var(--ds-yellow);
  border-color: var(--ds-yellow);
  color: var(--ds-black);
  transform: translateY(-50%) scale(1.1);
}

.ds-carousel-prev {
  left: 40px;
}

.ds-carousel-next {
  right: 40px;
}

/* Editorial progress indicator */
.ds-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.ds-carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ds-orange), var(--ds-yellow));
  width: 0%;
  transition: width 5s linear;
}

/* Slide counter */
.ds-slide-counter {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  z-index: 10;
}

.ds-slide-counter span {
  color: var(--ds-yellow);
}

/* Decorative corner elements */
.ds-carousel-slide::before,
.ds-carousel-slide::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 5;
  transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ds-carousel-slide::before {
  top: 40px;
  left: 40px;
  border-right: none;
  border-bottom: none;
}

.ds-carousel-slide::after {
  bottom: 40px;
  right: 40px;
  border-left: none;
  border-top: none;
}

.ds-carousel-slide.active::before,
.ds-carousel-slide.active::after {
  width: 200px;
  height: 200px;
  opacity: 0.6;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .ds-top-header {
    padding: 15px 24px;
  }
  
  .ds-nav-area ul {
    gap: 24px;
  }
  
  .ds-slide-overlay {
    padding: 0 8%;
    padding-bottom: 80px;
  }
  
  .ds-carousel-nav {
    width: 48px;
    height: 48px;
  }
  
  .ds-carousel-prev {
    left: 24px;
  }
  
  .ds-carousel-next {
    right: 24px;
  }
}

@media (max-width: 768px) {
  .ds-top-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .ds-nav-area ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .ds-hero-carousel {
    height: 70vh;
    min-height: 500px;
  }
  
  .ds-slide-overlay {
    padding: 0 24px;
    padding-bottom: 60px;
  }
  
  .ds-slide-title {
    font-size: 32px;
  }
  
  .ds-slide-text {
    font-size: 15px;
  }
  
  .ds-slide-button {
    padding: 14px 28px;
    font-size: 12px;
  }
  
  .ds-carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  
  .ds-carousel-slide::before,
  .ds-carousel-slide::after {
    display: none;
  }
  
  .ds-slide-counter {
    bottom: 24px;
    right: 24px;
    font-size: 11px;
  }
}

/* ========================================
   Animation keyframes
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide Vilva theme sections */
.site-main > section:first-of-type,
.item-wrap.owl-carousel,
.featured-section,
.recent-posts,
#featured-posts {
    display: none !important;
}


/* Fix logo stretching */
.ds-logo-area img,
.ds-logo-area .custom-logo-link {
  max-height: 50px !important;
  width: auto !important;
  object-fit: contain !important;
}


/* Logo text styling */
.ds-logo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
}

.ds-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ds-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--ds-yellow);
  letter-spacing: 0.15em;
  line-height: 1.3;
}


.ds-logo-area img,
.ds-logo-area .custom-logo-link {
  display: inline-block !important;
  vertical-align: middle !important;
  max-height: 50px !important;
  width: auto !important;
}

.ds-logo-area .custom-logo-link {
  display: inline-flex !important;
}


.ds-logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-logo-area .custom-logo-link {
  display: inline-block !important;
}


/* ========================================
   Sidebar Widget Styling - Clean & Simple
   ======================================== */

/* Widget container */
.widget-area .widget {
  margin-bottom: 32px;
  padding: 0;
  background: transparent;
}

/* Widget title - elegant underlined */
.widget-area .widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ds-black);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ds-dark-red);
  letter-spacing: -0.01em;
}

/* Recent posts list */
.widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_recent_entries li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

.widget_recent_entries li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Article links */
.widget_recent_entries a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ds-black);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.widget_recent_entries a:hover {
  color: var(--ds-dark-red);
}

/* Categories widget */
.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_categories li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
}

.widget_categories li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget_categories a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ds-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget_categories a:hover {
  color: var(--ds-orange);
}

.widget_categories .count {
  font-size: 12px;
  color: rgba(13, 13, 13, 0.4);
  margin-left: 4px;
}

/* Sidebar section styling */
#secondary {
  padding-top: 0;
}


/* ========================================
   Sidebar Widget Styling - More Specific
   ======================================== */

/* Widget container */
.site-content .widget-area .widget {
  margin-bottom: 32px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Widget title */
.site-content .widget-area .widget-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0D0D0D !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #8C3718 !important;
  letter-spacing: -0.01em !important;
  position: relative !important;
}

.site-content .widget-area .widget-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 40px !important;
  height: 2px !important;
  background: #F2CF1D !important;
}

/* Recent posts list */
.site-content .widget_recent_entries ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-content .widget_recent_entries li {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1) !important;
}

.site-content .widget_recent_entries li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Article links */
.site-content .widget_recent_entries a {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #0D0D0D !important;
  text-decoration: none !important;
  display: block !important;
  transition: color 0.3s ease !important;
}

.site-content .widget_recent_entries a:hover {
  color: #8C3718 !important;
}

/* Categories widget */
.site-content .widget_categories ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-content .widget_categories li {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08) !important;
}

.site-content .widget_categories li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.site-content .widget_categories a {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #0D0D0D !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.site-content .widget_categories a:hover {
  color: #F27141 !important;
}

.site-content .widget_categories .count {
  font-size: 12px !important;
  color: rgba(13, 13, 13, 0.4) !important;
  margin-left: 4px !important;
}


/* Even more specific - targeting widget IDs */
#secondary .widget_recent_entries .widget-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0D0D0D !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #8C3718 !important;
}

#secondary .widget_categories .widget-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0D0D0D !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #8C3718 !important;
}

#secondary .widget_recent_entries ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#secondary .widget_recent_entries li {
  margin-bottom: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(13, 13, 13, 0.1) !important;
}

#secondary .widget_recent_entries a {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #0D0D0D !important;
  text-decoration: none !important;
  display: block !important;
  transition: color 0.3s ease !important;
}

#secondary .widget_recent_entries a:hover {
  color: #8C3718 !important;
}

#secondary .widget_categories ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#secondary .widget_categories li {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08) !important;
}

#secondary .widget_categories a {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #0D0D0D !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

#secondary .widget_categories a:hover {
  color: #F27141 !important;
}


/* ========================================
   Footer - Match Topbar Color
   ======================================== */

.site-footer {
  background: var(--ds-header-bg) !important;
}

.site-footer .footer-b {
  background: var(--ds-header-bg) !important;
}

/* Footer text colors for readability on dark background */
.site-footer,
.site-footer a,
.site-footer .widget-title,
.site-footer .copyright {
  color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer a:hover {
  color: var(--ds-yellow) !important;
}

/* Footer widget titles */
.site-footer .widget-title {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}


/* ========================================
   Sections Card Styling
   ======================================== */

.ds-section-card:hover {
  border-color: #8C3718 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(13, 13, 13, 0.1) !important;
}

.ds-section-card a:hover {
  color: #8C3718 !important;
}

