/* ============================================
   FOUNDING DAY - NAMESPACED CSS
   All classes prefixed with qq- to avoid conflicts
   with existing SharePoint styles
   ============================================ */

/* CSS Variables - scoped to our container */
.qq-app-container {
  --qq-primary-brand: #1B8354;
  --qq-primary-text: #1F2A37;
  --qq-secondary-text: #6B4E45;
  --qq-neutral-light: #F5EBDA;
  --qq-neutral-bg: #E9DFCF;
  --qq-border-color: #D2D6DB;
  --qq-border-dark: #6B4E45;
  --qq-dot-active: #6B4E45;
  --qq-dot-inactive: #E5E7EB;
  --qq-success-tag: #10b981;
  --qq-info-tag: #3b82f6;
  --qq-neutral-tag: #9ca3af;
  --qq-spacing-xs: 8px;
  --qq-spacing-sm: 12px;
  --qq-spacing-md: 16px;
  --qq-spacing-lg: 24px;
  --qq-spacing-xl: 32px;
  --qq-slide-spacing: 16px;
  --qq-transition-default: 0.3s ease-in-out;
}

/* Reset only within our container */
.qq-app-container,
.qq-app-container *,
.qq-app-container *::before,
.qq-app-container *::after {
  box-sizing: border-box;
}

/* ============================================
   DIGITAL SIGNATURE
   ============================================ */
.qq-digital-signature {
  padding: 8px 16px;
  background-color: #f3f4f6;
  border-bottom: 1px solid var(--qq-border-color);
  display: flex;
  justify-content: flex-end;
}

.qq-digital-signature-link {
  text-decoration: none;
  color: var(--qq-primary-brand);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 4px;
  align-items: center;
}

.qq-digital-signature-extension {
  color: #9ca3af;
  font-size: 12px;
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.qq-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid var(--qq-border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.qq-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.qq-header-logo {
  height: 40px;
  width: auto;
}

.qq-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--qq-primary-text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   DESKTOP HEADER
   ============================================ */
.qq-desktop-header {
  display: none;
  background-color: #fff;
  border-bottom: 1px solid var(--qq-border-color);
  position: sticky;
  top: 0;
  z-index: 40;
}

.qq-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  height: 80px;
  gap: 40px;
}

.qq-nav-logos {
  display: flex;
  flex: 0 0 auto;
}

.qq-nav-logo {
  height: 50px;
  width: auto;
}

.qq-nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex: 1;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.qq-nav-link {
  text-decoration: none;
  color: var(--qq-primary-text);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--qq-transition-default);
}

.qq-nav-link:hover {
  color: var(--qq-primary-brand);
}

.qq-nav-link .qq-arrow {
  font-size: 12px;
}

.qq-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.qq-nav-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--qq-primary-text);
  font-size: 14px;
  transition: color var(--qq-transition-default);
}

.qq-nav-action-btn:hover {
  color: var(--qq-primary-brand);
}

/* ============================================
   MOBILE MENU OVERLAY & PANEL
   ============================================ */
.qq-mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 39;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.qq-mobile-menu-overlay.qq-open {
  display: block;
  opacity: 1;
}

.qq-mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: #fff;
  z-index: 50;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  padding: 20px;
}

.qq-mobile-menu-panel.qq-open {
  right: 0;
}

.qq-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--qq-border-color);
}

.qq-menu-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--qq-primary-text);
  margin: 0;
}

.qq-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--qq-primary-text);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.qq-menu-list li {
  border-bottom: 1px solid var(--qq-border-color);
  padding-bottom: 16px;
}

.qq-menu-list a {
  text-decoration: none;
  color: var(--qq-primary-text);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--qq-transition-default);
}

.qq-menu-list a:hover {
  color: var(--qq-primary-brand);
}

/* ============================================
   HERO SECTION
   ============================================ */
.qq-hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 75vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  overflow: hidden;
  background-color: #2d2d2d;
  transition: background-image 0.8s ease-in-out;
}

.qq-hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 90px 32px 40px 32px;
  z-index: 2;
  box-sizing: border-box;
}

/* Ensure text wrap doesn't add extra margins */
.qq-hero-text-wrap {
  z-index: 2;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 26px;
  padding: 47px;
}

.qq-hero-logo {
  height: 60px;
  width: auto;
  display: block;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

/* Fixed logo always visible on all slides */
.qq-hero-logo-fixed {
  position: absolute;
  top: 160px;
  right: 120px;
  margin: 10px;
  height: 55px;
  width: auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 20;
}


.qq-hero-carousel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-bottom: 90px;
}

.qq-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: rgb(233, 223, 207);


  margin-bottom: 28px;
  line-height: 1.2;
}

.qq-hero-description-main {
  font-size: 15px;
  color: rgb(255, 255, 255);
  line-height: 1.8;
  max-width: 550px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Bottom caption container - fixed at bottom */
.qq-hero-bottom-caption-container {
  position: absolute;
  bottom: 70px;
  left: auto;
  /* right: 32px; */
  z-index: 10;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  max-width: 280px;
  display: none;
}

.qq-hero-bottom-title {
  font-size: 30px;
  font-weight: 700;
  color: white;
  text-align: right;
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.qq-hero-bottom-description {
  font-size: 15px;
  color: white;
  text-align: right;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


/* ============================================
   CAROUSEL DOTS
   ============================================ */


.qq-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 100;
  background: #f2f2f21f;
  padding: 8px 16px;
  border-radius: 20px;
}

.qq-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(-dot-inactive);
  cursor: pointer;
  transition: background-color var(--qq-transition-default);
}

.qq-dot.qq-active {
  background-color: var(--dot-active);
}

/* ============================================
   EHSAN ICON
   ============================================ */
.qq-ehsan-icon-link {
  text-decoration: none;
  display: inline-block;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.qq-ehsan-icon-link:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.qq-ehsan-icon-link:active {
  transform: scale(0.95);
}

.qq-ehsan-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #1B8F5A 0%, #0f6a3f 100%);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(27, 143, 90, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qq-ehsan-circle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.qq-ehsan-circle::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 0;
}

.qq-ehsan-circle:hover {
  background: linear-gradient(145deg, #1f9f64 0%, #157a4a 100%);
  box-shadow: 0 8px 22px rgba(27, 143, 90, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FOUNDING DAY PLATFORM BUTTON
   ============================================ */
.qq-founding-day-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.qq-founding-day-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

.qq-founding-day-btn:active {
  transform: scale(0.98);
}

.qq-founding-day-text {
  font-size: 14px;
  font-weight: 600;
  color: #1F2A37;
  white-space: nowrap;
}

.qq-founding-day-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.qq-ehsan-icon-img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border-radius: 0;
  filter: brightness(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.qq-footer {
  background-color: var(--qq-neutral-bg);
  padding: 0;
  position: relative;
}

.qq-footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.qq-footer-content {
  position: relative;
  z-index: 1;
  padding: 40px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.qq-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.qq-footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qq-footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--qq-primary-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--qq-border-dark);
  margin: 0;
}

.qq-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.qq-footer-link {
  text-decoration: none;
  color: var(--qq-secondary-text);
  font-size: 14px;
  transition: color var(--qq-transition-default);
}

.qq-footer-link:hover {
  color: var(--qq-primary-brand);
  text-decoration: underline;
}

.qq-social-column {
  flex-direction: column;
  gap: 12px;
}

.qq-social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qq-social-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--qq-border-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--qq-transition-default);
  text-decoration: none;
}

.qq-social-icon:hover {
  background-color: var(--qq-border-dark);
  color: #fff;
}

.qq-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--qq-border-dark);
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.qq-footer-text {
  font-size: 12px;
  color: var(--qq-secondary-text);
  margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (min-width: 900px) {
  .qq-mobile-header {
    display: none;
  }

  .qq-desktop-header {
    display: block;
  }

  .qq-hero-section {
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    padding: 60px 40px;
  }

  .qq-footer-content {
    padding: 60px 80px;
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .qq-hero-section {
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    padding: 80px 80px;
  }

  .qq-nav-menu {
    justify-content: center;
    gap: 40px;
  }

  .qq-footer-content {
    padding: 60px 80px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .qq-hero-section {
    height: 65vh;
    min-height: 400px;
  }

  .qq-hero-content {
    padding: 70px 16px 40px 16px;
  }

  .qq-hero-bottom-caption-container {
    right: 16px;
  }

  .qq-hero-logo-fixed {
    top: 70px;
    right: 16px;
    height: 40px;
  }

  .qq-founding-day-btn {
    bottom: 30px;
    left: 20px;
    padding: 8px 12px 8px 16px;
  }

  .qq-founding-day-text {
    font-size: 12px;
  }

  .qq-founding-day-logo {
    width: 30px;
    height: 30px;
  }

  .qq-hero-bottom-caption-container {
    bottom: 60px;
    left: auto;
    right: 16px;
    padding: 10px 16px;
    max-width: 240px;
  }

  .qq-hero-bottom-title {
    font-size: 16px;
  }

  .qq-hero-bottom-description {
    font-size: 11px;
  }

  /* 
  .qq-carousel-dots {
    bottom: 12px;
    padding: 6px 12px;
  } */

  .qq-ehsan-icon-link {
    bottom: 30px;
    right: 20px;
  }

  .qq-ehsan-circle {
    width: 50px;
    height: 50px;
  }

  .qq-ehsan-icon-img {
    width: 32px;
    height: 32px;
  }

  .qq-nav-header {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .qq-hero-section {
    height: 60vh;
    min-height: 350px;
  }

  .qq-hero-content {
    padding: 60px 12px 40px 12px;
  }

  .qq-hero-bottom-caption-container {
    right: 12px;
  }

  .qq-hero-logo-fixed {
    top: 60px;
    right: 12px;
    height: 35px;
  }

  .qq-hero-bottom-caption-container {
    bottom: 55px;
    left: auto;
    right: 12px;
    padding: 8px 12px;
    max-width: 200px;
  }

  .qq-hero-bottom-title {
    font-size: 14px;
  }

  .qq-hero-bottom-description {
    font-size: 10px;
  }

  /* .qq-carousel-dots {
    bottom: 10px;
    padding: 5px 10px;
    gap: 8px;
  } */

  .qq-dot {
    width: 10px;
    height: 10px;
  }

  .qq-ehsan-icon-link {
    bottom: 20px;
    right: 15px;
  }

  .qq-ehsan-circle {
    width: 45px;
    height: 45px;
  }

  .qq-ehsan-icon-img {
    width: 28px;
    height: 28px;
  }

  .qq-founding-day-btn {
    bottom: 20px;
    left: 15px;
    padding: 6px 10px 6px 12px;
    gap: 8px;
  }

  .qq-founding-day-text {
    font-size: 11px;
  }

  .qq-founding-day-logo {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

  .qq-mobile-header,
  .qq-desktop-header,
  .qq-footer {
    display: none;
  }
}