/*
Theme Name: BSG Agency Custom Theme
Theme URI: https://bsgdigital.com/
Author: BSG Digital
Description: Custom high-performance theme converted from Next.js codebase.
Version: 1.0.0
Text Domain: bsg-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

/* ==========================================================================
   1. CSS VARIABLES, RESET & BASE ELEMENTS
   ========================================================================== */
:root {
  --primary: #FFC107;
  --bg-white: #ffffff;
  --bg-light: #f4f4f4;
  --text-black: #111111;
  --text-gray: #555555;
  --footer-bg: #0a0a0a;
  --footer-text: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--bg-white);
  color: var(--text-black);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: var(--text-black);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

p {
  color: var(--text-gray);
  margin-bottom: 15px;
}

/* ==========================================================================
   2. REUSABLE GLOBAL UTILITIES & BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: var(--text-black);
  font-weight: 600;
  border-radius: 5px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.btn:hover {
  background-color: var(--text-black);
  color: var(--primary);
  border-color: var(--text-black);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-black);
  color: var(--text-black);
}

.btn-outline:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.container {
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4-Column Responsive Grid */
.grid-col-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .grid-col-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-col-4 {
    grid-template-columns: 1fr;
  }
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: var(--bg-white);
  border: 2px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}
/* ==========================================
       INFINITE SCROLLING BRAND PARTNERS CAROUSEL
       ========================================== */
    @keyframes bsg-infinite-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); } /* Seamlessly loops exactly halfway */
    }

    .bsg-carousel-container {
        width: 100%;
        overflow: hidden;
        background: var(--bg-light);
        padding: 35px 0;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        display: flex;
        align-items: center;
        position: relative;
    }

    .bsg-carousel-track {
        display: flex;
        width: max-content; /* Auto-calculates full width of duplicated track */
        gap: 60px;
        align-items: center;
        animation: bsg-infinite-scroll 25s linear infinite; /* End_less linear scrolling */
    }

    /* Pause animation when hovered */
    .bsg-carousel-container:hover .bsg-carousel-track {
        animation-play-state: paused;
    }

.bsg-carousel-logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 90px; /* Increased from 45px to 90px (Doubles the logo size!) */
        flex-shrink: 0;
    }

    .bsg-carousel-logo-img {
        height: 999px;
        width: auto;
        max-width: 220px; /* Increased from 150px to 220px to allow wide logos to render fully */
        object-fit: contain;
        filter: grayscale(100%) opacity(0.5); 
        transition: all 0.3s ease;
    }

    .bsg-carousel-logo-img:hover {
        filter: grayscale(0%) opacity(1);
    }
/* ==========================================================================
   3. SITE HEADER & NAVIGATION (DROPDOWNS)
   ========================================================================== */
/* ==========================================================================
   NATIVE WORDPRESS NAVBAR OVERRIDES
   ========================================================================== */

/* 1. Ensure the list items sit in a clean row with spacing */
.nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  list-style: none;
  gap: 20px !important; /* Adds clear margins between your menu items */
  margin: 0;
  padding: 0;
}

/* 2. Target the anchor links inside the menu list directly */
.nav-list li a {
  color: var(--text-black) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent; 
}

/* Hover & Active Highlight States */
.nav-list li a:hover,
.nav-list li.current-menu-item > a,
.nav-list li.active > a {
  color: var(--primary) !important;
  background: transparent !important;
  border-bottom-color: var(--primary) !important;
}

/* 3. Handle Native WordPress Dropdowns (.sub-menu) */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  z-index: 1001;
  border-top: 3px solid var(--primary);
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.nav-list .sub-menu li {
  width: 100% !important;
  display: block !important;
}

/* Open dropdown on hover */
.nav-list .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown link styling */
.nav-list .sub-menu li a {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px;
  color: var(--text-black) !important;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.3s;
  text-align: left;
  border-bottom: none !important;
}

.nav-list .sub-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary) !important;
  padding-left: 25px;
}
   .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-black);
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
}

/* Navigation List (Desktop Style) */
.nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  list-style: none;
  gap: 5px;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  color: var(--text-black);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent; 
}

.nav-link:hover, 
.nav-link.active-nav {
  color: var(--primary) !important;
  background: transparent !important;
  border-bottom-color: var(--primary) !important;
}

/* Dropdown Arrow Indicator */
.arrow-down {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 5px;
  margin-top: -3px;
  transition: transform 0.3s;
}

/* Desktop Dropdown Menus (Forces vertical column stacking) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  z-index: 1001;
  border-top: 3px solid var(--primary);
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

.dropdown-menu li {
  width: 100% !important;
  display: block !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item.dropdown:hover .arrow-down {
  border-left-color: var(--primary);
  border-bottom-color: var(--primary);
  transform: rotate(135deg);
  margin-top: 3px;
}

.dropdown-item {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px;
  color: var(--text-black);
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.3s;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 25px;
}

/* Mobile Toggler */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-black);
  transition: 0.3s;
}

/* ==========================================================================
   4. MAIN SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 80px 5% 20px;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 50px;
}

.footer-brand h2 {
  font-size: 2.2rem;
  color: #ffffff;
  text-align: left;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-brand p {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 350px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #222;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  transition: 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.social-icons a:hover svg {
  fill: var(--text-black);
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: var(--footer-text);
  transition: 0.3s;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-newsletter h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-newsletter p {
  color: var(--footer-text);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-radius: 5px;
  overflow: hidden;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 15px;
  background: #222;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.newsletter-form button {
  padding: 15px 25px;
  background: var(--primary);
  color: var(--text-black);
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  width: auto;
}

.newsletter-form button:hover {
  background: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom-links a {
  color: #777;
  margin-left: 20px;
  transition: 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   5. COMPONENT SECTION & PAGE TEMPLATE LAYOUTS
   ========================================================================== */

/* --- A. Home Page Layouts --- */
.flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 50px;
}

.flex-half {
  width: 50%;
}

.flex-half img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 10px 10px 0px var(--primary);
}

.preview-section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.preview-section.bg-yellow {
  background: var(--primary);
  padding: 60px 5%;
  margin: 0 -5%;
}

.preview-section.bg-yellow h2,
.preview-section.bg-yellow p {
  color: var(--text-black);
}

.badge-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 5%;
  background: var(--bg-light);
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.badge-item {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.trust-section {
  padding: 80px 5%;
  background: var(--bg-white);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.trust-card {
  padding: 40px 30px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  text-align: left;
  transition: 0.3s;
}

.trust-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  position: relative;
}

.promo-banner {
  background: var(--text-black);
  color: var(--bg-white);
  padding: 80px 5%;
  text-align: center;
}

.promo-container {
  max-width: 600px;
  margin: 0 auto;
}

.promo-container h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.promo-container p {
  color: #ccc;
  margin-bottom: 30px;
}

.promo-form {
  display: flex;
  gap: 15px;
}

.promo-form input {
  background: #222;
  border: 1px solid #333;
  color: #fff;
  flex: 1;
}

/* Ecosystem / Partners Grid */
.ecosystem-section {
  padding: 50px 5%;
  background: var(--bg-light);
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
}

.ecosystem-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ecosystem-item {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-black);
  letter-spacing: 1px;
}

/* Timeline / Evolution Section */
.evolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.evolution-card {
  padding: 30px;
  background: var(--bg-light);
  border-radius: 8px;
  position: relative;
}

.evolution-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Pricing Grid */
.pricing-section {
  padding: 80px 5%;
  background: var(--bg-light);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
  border-color: var(--text-black);
  border-width: 2px;
  position: relative;
}

.popular-tag {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--text-black);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-black);
  margin: 15px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 400;
}

.features-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-gray);
  padding-left: 15px;
  position: relative;
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}


/* --- B. About Us Page Layouts --- */
.about-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.about-text {
  width: 50%;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-image {
  width: 50%;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: -15px -15px 0px var(--primary);
}

.stats-banner {
  background-color: var(--text-black);
  color: var(--bg-white);
  padding: 60px 5%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
  margin-bottom: 80px;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-item p {
  color: #ccc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: 0.3s;
}

.value-card:hover {
  border-bottom-color: var(--primary);
  transform: translateY(-5px);
  background: var(--bg-white);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}


/* --- C. Contact Page Layouts --- */
.contact-wrapper {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  width: 40%;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 5px;
}

.contact-info p {
  margin-bottom: 0;
}

.contact-info .highlight {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  display: block;
  margin-top: 5px;
}

.contact-form-container {
  width: 60%;
  background: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
  border-top: 5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-white);
  transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}


/* --- D. Employ / Team Page Layouts --- */
.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.team-card {
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 5px solid var(--primary);
}

.team-info {
  padding: 25px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.skill-tag {
  background: var(--text-black);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}


/* --- E. Portfolio Page Layouts --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.portfolio-card {
  background: var(--bg-white);
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.img-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.portfolio-card:hover .img-container img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--text-black);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 10;
}

.portfolio-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.portfolio-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.metrics {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-bottom: 20px;
}

.metric-item {
  text-align: center;
  width: 45%;
}

.metric-item span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-black);
}

.metric-item small {
  color: var(--text-gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}


/* --- F. Feedback Page Layouts --- */
.rating-banner {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary);
}

.rating-banner h3 {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 5px;
}

.stars {
  color: var(--primary);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  font-family: serif;
  color: var(--bg-light);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 25px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  color: #444;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client-details h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

.client-details p {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}


/* --- G. Authentication (Login & Signup) --- */
.auth-card {
  background: var(--bg-white);
  max-width: 450px;
  width: 100%;
  padding: 50px 40px;
  border-radius: 10px;
  border-top: 5px solid var(--text-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.auth-card.signup-card {
  max-width: 500px;
  border-top-color: var(--primary);
}

.auth-card h2 {
  font-weight: 800;
  color: var(--text-black);
  font-size: 2rem;
  margin-bottom: 5px;
  text-align: center;
}

.auth-card p {
  color: var(--text-gray);
  margin-bottom: 25px;
  text-align: center;
  font-size: 0.95rem;
}

.flex-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 800;
  transition: 0.3s;
}

.auth-footer a:hover {
  color: var(--text-black);
}

/* Google Sign-in Button */
.btn-google {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background-color: #fff;
  color: #333;
  font-weight: 600;
  border-radius: 5px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn-google:hover {
  background-color: #f8f8f8;
  border-color: #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eee;
}

.divider:not(:empty)::before {
  margin-right: .5em;
}

.divider:not(:empty)::after {
  margin-left: .5em;
}

/* ==========================================================================
   6. ADMIN DASHBOARD PORTAL STYLES
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-light);
}

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.content-area {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Dashboard Sidebar */
.dash-sidebar {
  width: 260px;
  background-color: var(--bg-white);
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.dash-logo {
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
  color: var(--text-black);
}

.dash-logo span {
  color: var(--primary);
}

.dash-nav {
  flex-grow: 1;
  padding: 0 15px;
  overflow-y: auto; 
}

.dash-nav-title {
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 15px 0 10px 15px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  transition: 0.3s;
}

.dash-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.dash-nav-item:hover,
.dash-nav-item.active {
  background-color: var(--text-black);
  color: var(--primary);
}

.dash-sidebar-footer {
  padding: 20px 15px 45px !important; 
  border-top: 1px solid #e0e0e0;
  margin-top: auto; 
  background: var(--bg-white);
}

/* Dashboard Topbar */
.dash-topbar {
  height: 70px;
  min-height: 70px;
  background-color: var(--bg-white);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  padding: 8px 15px;
  border-radius: 8px;
  width: 300px;
  border: 1px solid #e0e0e0;
}

.search-bar input {
  border: none;
  padding: 0;
  background: transparent;
  margin-left: 10px;
  width: 100%;
  box-shadow: none;
  outline: none;
}

.search-bar svg {
  width: 18px;
  fill: #aaa;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  cursor: pointer;
  fill: var(--text-gray);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
}

.icon-btn:hover {
  background: var(--primary);
  color: var(--text-black);
  fill: var(--text-black);
  border-color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info h4 {
  font-size: 0.9rem;
  margin-bottom: -2px;
}

.user-info p {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0;
}

.mobile-dash-toggle {
  display: none;
  cursor: pointer;
}

/* Dashboard Content UI */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.stat-card.dark {
  background: var(--text-black);
  color: var(--bg-white);
  border: none;
}

.stat-card.dark .stat-value {
  color: var(--primary);
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.stat-card.dark .stat-title {
  color: #ccc;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #28a745;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-gray);
  border-bottom: 2px solid #e0e0e0;
  text-transform: uppercase;
}

.data-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
}

.status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.status.completed {
  background: #d4edda;
  color: #155724;
}

.status.running {
  background: #fff3cd;
  color: #856404;
}

/* Dashboard Forms */
.form-panel {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  max-width: 800px;
}

.dash-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-form-group {
  flex: 1;
}

.dash-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-gray);
}

.dash-form-group input,
.dash-form-group select,
.dash-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg-light);
  transition: 0.3s;
}

.dash-form-group input:focus,
.dash-form-group select:focus,
.dash-form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* ==========================================================================
   7. RE-ORGANIZED COMPREHENSIVE RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* --- A. Tablet Screen Adaptations (950px - 1024px) --- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
}

@media (max-width: 950px) {
  /* Navigation & Site Header Mobile Mode */
  .menu-toggle {
    display: flex;
  }
  
  .nav-list {
    display: none !important;
    flex-direction: column !important;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .nav-list.active {
    display: flex !important;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    border-radius: 0;
    width: 100%;
    padding: 15px 30px;
    justify-content: space-between;
  }
  
  /* Mobile Dropdowns (Accordion Style) */
  .dropdown-menu {
    position: relative;
    box-shadow: none;
    border-top: none;
    background: var(--bg-light);
    opacity: 1;
    visibility: visible;
    display: none !important; /* Controlled by mobile Javascript toggle */
    transform: none;
    padding-left: 20px;
    min-width: 100%;
  }
  
  .nav-item.dropdown.open-dropdown .dropdown-menu {
    display: flex !important; 
  }

  .nav-item.dropdown.open-dropdown .arrow-down {
    transform: rotate(135deg);
    margin-top: 3px;
  }
  
  /* Mobile Hamburger Toggle Animation classes */
  .menu-toggle.toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.toggle .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Page Grid / Flex Containers to Single Column */
  .flex-container {
    flex-direction: column;
  }

  .flex-half {
    width: 100%;
    text-align: center;
  }

  /* Admin Dashboard Mobile Adjustments */
  .dash-sidebar {
    position: fixed;
    height: 100vh;
    transform: translateX(-100%);
  }

  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .dash-form-group {
    margin-bottom: 20px;
  }
}

/* --- B. Medium Screens (900px) --- */
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    width: 100%;
  }

  .about-image img {
    box-shadow: 0px 15px 0px var(--primary);
  }

  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info, .contact-form-container {
    width: 100%;
  }

  .contact-info {
    text-align: center;
    margin-bottom: 30px;
  }

  .auth-card {
    padding: 40px 20px;
  }

  .trust-grid, .evolution-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .promo-form {
    flex-direction: column;
  }
}

/* --- C. Mobile Screens (600px) --- */
@media (max-width: 600px) {
  /* Footer elements alignment */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-bottom-links a {
    margin: 0 10px;
  }

  .footer-brand h2 {
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links, .footer-newsletter {
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
  }

  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
  }

  .newsletter-form button {
    border-radius: 5px;
    width: 100%;
  }

  /* Contact Form Adjustments */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }
}
/* ==========================================================================
   NATIVE WORDPRESS DROPDOWN UI ALIGNMENT & ARROW INDICATORS
   ========================================================================== */

/* 1. Ensure the parent list items are set to relative positioning 
   (This forces the absolute sub-menu to align perfectly beneath it) */
.nav-list li {
  position: relative !important;
}
/* 2. Add the dynamic dropdown arrow to any top-level item with sub-menus */
.nav-list > .menu-item-has-children > a {
  padding-right: 28px !important; /* Adds padding to make space for the arrow */
  position: relative;
}

/* Draw the arrow using CSS borders */
.nav-list > .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(-45deg);
  transition: transform 0.3s, border-color 0.3s;
}

/* 3. Rotates the arrow on hover and changes color */
.nav-list > .menu-item-has-children:hover > a::after {
  transform: translateY(-35%) rotate(135deg);
  border-left-color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 4. Align the sub-menu container perfectly under the active link */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  list-style: none;
  padding: 10px 0;
  z-index: 1001;
  border-top: 3px solid var(--primary);
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

/* Show the dropdown menu on hover */
.nav-list .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Format nested dropdown list links */
.nav-list .sub-menu li a {
  display: block !important;
  width: 100% !important;
  padding: 12px 20px !important;
  color: var(--text-black) !important;
  font-weight: 500;
  font-size: 0.85rem;
  transition: 0.3s;
  text-align: left;
  border-bottom: none !important;
}

.nav-list .sub-menu li a:hover {
  background: var(--bg-light);
  color: var(--primary) !important;
  padding-left: 25px !important;
}