:root {
  /* Colors */
  --bg-dark: #1d2533;
  --bg-light: #f7fbff;
  --text-dark: #1d2533;
  --text-light: #ffffff;
  --text-gray: #333333;

  /* Event Accents */
  --accent-real-estate: #5eb2d6;
  --accent-hr: #e2cf45;
  --accent-strategy: #d6335c;

  /* Typography */
  --font-main: "Roboto", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-base: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--text-gray);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

a:active {
  opacity: 0.7;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .mobile-nav a,
  .nav-dropdown-menu a,
  .footer-nav-col a,
  .footer-contact-col a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .event-card-link {
    -webkit-tap-highlight-color: transparent;
  }

  .event-card-link:active .event-card {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
  .hero-arrow,
  .lastyear-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .hero-dot,
  .lastyear-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
  }

  .mobile-menu-btn {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 20px);
}

@media (max-width: 768px) {
  .container {
    padding: 0 clamp(12px, 2.5vw, 16px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 clamp(10px, 2vw, 14px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vw, 12px) clamp(24px, 3vw, 30px);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  will-change: background-color, color, transform;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 2px solid var(--bg-dark);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: transparent;
  color: var(--bg-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--bg-dark);
  color: var(--bg-dark);
}

.btn-outline:hover,
.btn-outline:active {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .btn {
    min-height: 46px;
  }
}

/* Header */
#main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  z-index: 1000;
  padding: clamp(4px, 0.5vw, 8px) 0;
  height: auto;
  min-height: 66px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo a {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
  transition: opacity var(--transition-base);
}

.logo a:hover {
  opacity: 0.85;
}

.logo a img {
  height: clamp(48px, 8vw, 58px);
  width: auto;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 2.5vw, 30px);
}

.nav-links a {
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition-base),
    border-color var(--transition-base);
}

.nav-links a:hover {
  color: var(--accent-real-estate);
  border-bottom-color: var(--accent-real-estate);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-light);
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  will-change: transform, opacity;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  width: 100%;
  height: calc(100vh - 66px);
  background-color: var(--bg-dark);
  flex-direction: column;
  padding: 30px 20px;
  z-index: 999;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: var(--text-light);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  min-height: clamp(450px, 90vh, 800px);
  background: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: clamp(44px, 8vw, 48px);
  height: clamp(44px, 8vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(13, 27, 42, 0.35);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  min-height: 44px;
  min-width: 44px;
}

.hero-arrow:hover {
  background: rgba(13, 27, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-arrow-prev {
  left: 20px;
}
.hero-arrow-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: clamp(8px, 1.5vw, 10px);
  height: clamp(8px, 1.5vw, 10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 12px;
  min-width: 12px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .hero-arrow-prev {
    left: 10px;
  }
  .hero-arrow-next {
    right: 10px;
  }
  .hero-dots {
    bottom: 18px;
  }
}

.event-title-main-section {
  padding: clamp(40px, 5vw, 60px) 0;
  background-color: #fff;
  color: #0b1c2b;
}

.title-details-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(25px, 4vw, 40px);
}

.main-title-col {
  flex: 1.2;
}

.hr-page-main-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.event-info-col {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 30px);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 8px);
}

.info-label {
  font-size: clamp(10px, 1.2vw, 11px);
  text-transform: uppercase;
  color: #777;
  letter-spacing: 1px;
  font-weight: 600;
}

.info-value {
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .title-details-flex {
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
  }
  .hr-page-main-title {
    font-size: clamp(32px, 4vw, 40px);
  }
  .event-info-col {
    grid-template-columns: 1fr;
    gap: clamp(18px, 2vw, 20px);
  }
}

@media (max-width: 768px) {
  .event-title-main-section {
    padding: clamp(40px, 4vw, 50px) 0;
  }

  .title-details-flex {
    gap: clamp(20px, 3vw, 25px);
  }

  .hr-page-main-title {
    font-size: clamp(28px, 3.5vw, 32px);
  }

  .event-info-col {
    gap: clamp(16px, 2vw, 18px);
  }

  .info-label {
    font-size: 10px;
  }

  .info-value {
    font-size: clamp(12px, 1.3vw, 14px);
  }
}

@media (max-width: 480px) {
  .event-title-main-section {
    padding: clamp(30px, 3vw, 40px) 0;
  }

  .hr-page-main-title {
    font-size: clamp(24px, 3vw, 28px);
  }

  .info-value {
    font-size: clamp(12px, 1.2vw, 13px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 37, 51, 0.4);
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-content {
  background-color: var(--text-light);
  padding: clamp(30px, 5vw, 60px);
  max-width: 600px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  animation: slideInLeft 2.5s ease-out forwards;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  margin-left: -40px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--bg-dark);
  line-height: 1.1;
  margin-bottom: clamp(15px, 2vw, 20px);
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
}

.hero-content p {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--text-gray);
  margin-bottom: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .hero-content {
    padding: clamp(30px, 4vw, 40px);
    max-width: 95%;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: clamp(12px, 2vw, 15px);
  }

  .hero-content p {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    margin-bottom: clamp(18px, 2.5vw, 25px);
    letter-spacing: 0.8px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: clamp(350px, 70vh, 500px);
    height: 70vh;
  }

  .hero-content {
    padding: clamp(24px, 3vw, 30px);
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.2;
    margin-bottom: clamp(10px, 1.5vw, 15px);
  }

  .hero-content p {
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    letter-spacing: 0.5px;
  }

  .btn {
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 2.5vw, 25px);
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
  }
}

/* Stats Section */
.stats-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background: linear-gradient(135deg, #e6f0fa 0%, var(--bg-light) 100%);
}

.stats-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--bg-dark);
  margin-bottom: clamp(35px, 5vw, 50px);
  text-align: center;
  letter-spacing: -0.5px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  width: 100%;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 30px);
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 180px;
}

.stat-label {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-gray);
  margin-bottom: clamp(12px, 2vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--bg-dark);
  letter-spacing: -1px;
}

.stat-divider {
  width: 2px;
  background-color: rgba(29, 37, 51, 0.1);
  height: clamp(80px, 12vw, 100px);
  align-self: center;
}

@media (max-width: 768px) {
  .stats-section {
    padding: clamp(40px, 5vw, 60px) 0;
  }

  .stats-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(30px, 4vw, 40px);
  }

  .stats-grid {
    flex-direction: column;
    gap: clamp(30px, 4vw, 40px);
    align-items: center;
  }

  .stat-item {
    min-width: auto;
    width: 100%;
  }

  .stat-label {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin-bottom: clamp(10px, 1.5vw, 12px);
  }

  .stat-number {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
  }

  .stat-divider {
    width: clamp(60px, 10vw, 100px);
    height: 2px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: clamp(35px, 4vw, 50px) 0;
  }

  .stats-header h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.75rem);
    margin-bottom: clamp(25px, 3vw, 35px);
  }

  .stat-label {
    font-size: clamp(0.85rem, 1rem, 0.95rem);
  }

  .stat-number {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .stat-divider {
    width: clamp(50px, 8vw, 60px);
  }
}

/* About Text Section */
.about-text-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: #f4f5f7;
  position: relative;
  overflow: hidden;
}

.about-text-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.about-text-container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-text-body {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: rgba(29, 37, 51, 0.82);
  line-height: 1.75;
  letter-spacing: 0.2px;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .about-text-section {
    padding: clamp(40px, 6vw, 60px) 0;
  }
  .about-text-body {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
  }
}

@media (max-width: 480px) {
  .about-text-section {
    padding: clamp(35px, 5vw, 50px) 0;
  }
  .about-text-body {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.65;
  }
}

/* Events Section */

.events-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--text-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(35px, 5vw, 50px);
  border-bottom: 2px solid var(--bg-dark);
  padding-bottom: clamp(8px, 1.5vw, 10px);
  gap: clamp(15px, 2vw, 30px);
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--bg-dark);
  letter-spacing: -0.5px;
  word-break: break-word;
}

.view-all {
  font-weight: 700;
  color: var(--bg-dark);
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  transition: color var(--transition-base);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.view-all:hover {
  color: var(--accent-real-estate);
}

@media (max-width: 991px) {
  .events-section {
    padding: clamp(45px, 6vw, 60px) 0;
  }

  .section-header {
    margin-bottom: clamp(30px, 4vw, 40px);
    padding-bottom: clamp(6px, 1.2vw, 8px);
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
  }

  .view-all {
    font-size: clamp(0.7rem, 1rem, 0.85rem);
  }
}

@media (max-width: 768px) {
  .events-section {
    padding: clamp(40px, 5vw, 50px) 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 2vw, 15px);
    margin-bottom: clamp(30px, 4vw, 35px);
    border-bottom: 1px solid var(--bg-dark);
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  }

  .view-all {
    font-size: clamp(0.7rem, 0.95rem, 0.8rem);
  }
}

/* New Combined Partners Section */
.estate-partners-combined {
  padding: 80px 0 100px;
  background-color: #fff;
}

.partners-main-row {
  display: flex;
  gap: 80px;
  align-items: stretch;
}

.organizer-block {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
}

.partners-block {
  flex: 1;
  min-width: 0;
}

.partners-label {
  color: #5eb2d6;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 36px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.organizer-logos {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.organizer-logos .logo-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.organizer-logos .logo-item-assoc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.organizer-logos .logo-item-assoc img {
  max-width: 200px;
}

.assoc-caption {
  color: #5eb2d6;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1;
}

.mission-block-estate {
  margin-top: auto;
  padding-top: 48px;
}

.mission-block-estate .partners-label {
  margin-bottom: 12px;
}

.mission-block-estate .mission-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.25;
  margin: 0;
}

.partners-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 56px;
  align-items: center;
}

.partners-grid-new .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.partners-grid-new .logo-item-empty {
  visibility: hidden;
  pointer-events: none;
}

.partners-grid-new .logo-item img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .partners-main-row {
    gap: 48px;
  }
  .organizer-block {
    flex: 0 0 220px;
  }
  .partners-grid-new {
    gap: 36px 32px;
  }
}

@media (max-width: 900px) {
  .partners-main-row {
    flex-direction: column;
    gap: 56px;
  }
  .organizer-block {
    flex: none;
    width: 100%;
    max-width: 320px;
  }
  .mission-block-estate {
    margin-top: 36px;
    padding-top: 0;
  }
  .partners-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }
  .partners-grid-new .logo-item-empty {
    display: none;
  }
}

@media (max-width: 480px) {
  .partners-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .partners-grid-new .logo-item {
    min-height: 70px;
  }
  .partners-grid-new .logo-item img {
    max-height: 70px;
  }
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 30px);
  will-change: contents;
}

/* Responsive events grid */
@media (max-width: 991px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.5vw, 25px);
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.5vw, 20px);
  }
}

.event-column {
  display: flex;
  flex-direction: column;
}

.event-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(12px, 1.5vw, 15px);
  padding: 0 clamp(3px, 1vw, 5px);
}

@media (max-width: 600px) {
  .event-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(6px, 1vw, 8px);
    margin-bottom: clamp(10px, 1.5vw, 12px);
  }
}

.event-title-top {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--bg-dark);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.event-num-top {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Specific colors for numbers */
.event-column:nth-child(1) .event-num-top {
  color: var(--accent-real-estate);
}
.event-column:nth-child(2) .event-num-top {
  color: var(--accent-hr);
}
.event-column:nth-child(3) .event-num-top {
  color: var(--accent-strategy);
}

.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition-base);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.event-card-link:hover {
  transform: translateY(-5px);
}

.event-card {
  background-color: var(--bg-dark);
  position: relative;
  min-height: clamp(340px, 75vw, 480px);
  height: auto;
  display: flex;
  overflow: hidden;
  transition: all var(--transition-base);
  will-change: transform, box-shadow;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card-inner {
  flex: 1;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .event-card {
    min-height: clamp(360px, 80vw, 420px);
  }

  .card-inner {
    padding: clamp(20px, 2.5vw, 25px);
  }

  .logo-text {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
  }

  .tagline {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    right: 8px;
  }

  .detail-value {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
  }
}

@media (max-width: 480px) {
  .event-card {
    min-height: clamp(340px, 75vw, 380px);
  }

  .card-inner {
    padding: clamp(16px, 2vw, 20px);
  }

  .frame-box {
    /* no extra padding — logo-text is absolutely positioned */
  }

  .logo-text {
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
  }

  .tagline {
    font-size: clamp(0.6rem, 1.2vw, 0.7rem);
    right: 8px;
  }


  .year-badge {
    padding: 3px 10px;
    font-size: 0.9rem;
  }

  .card-details {
    gap: 12px;
  }

  .detail-label {
    font-size: 0.75rem;
  }

  .detail-value {
    font-size: 0.95rem;
  }
}

.card-stripes {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  width: 60px;
  z-index: 1;
}

.stripe {
  flex: 1;
  height: 100%;
}

/* Real Estate Stripes */
.re-stripes .s1 {
  background-color: #4f6d86;
}
.re-stripes .s2 {
  background-color: #5a8ba5;
}
.re-stripes .s3 {
  background-color: #68a6ca;
}

/* HR Stripes */
.hr-stripes .s1 {
  background-color: #958a2d;
}
.hr-stripes .s2 {
  background-color: #c6b033;
}
.hr-stripes .s3 {
  background-color: #ead63f;
}

/* Strategy Stripes */
.st-stripes .s1 {
  background-color: #a1234c;
}
.st-stripes .s2 {
  background-color: #c62557;
}
.st-stripes .s3 {
  background-color: #e92c64;
}

/* Card Graphics */
.card-graphics {
  margin-bottom: 30px;
}

.frame-box {
  border: 3px solid;
  border-top: none;   /* top border drawn partially by ::before */
  width: 168px;
  height: 88px;
  padding: 0;
  position: relative;
  margin-bottom: 0;
  margin-top: 30px;
  margin-left: 22px;  /* frame shifted right */
  --cover-bg: var(--bg-dark);
}

/* Partial top border: starts after 'Foru' (around 70px inside the frame) */
.frame-box::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 70px;
  right: -3px;
  height: 3px;
  background-color: var(--frame-color, #fff);
  z-index: 1;
}

.re-frame {
  border-color: var(--accent-real-estate);
  --frame-color: var(--accent-real-estate);
}
.hr-frame {
  border-color: var(--accent-hr);
  --frame-color: var(--accent-hr);
}
.st-frame {
  border-color: var(--accent-strategy);
  --frame-color: var(--accent-strategy);
}

/* 'Forum' hangs outside via text-indent, 'west' stays inside */
.logo-text {
  position: absolute;
  top: -30px;
  left: 10px;         /* 'west' starts 10px inside the left border */
  text-indent: -16px; /* Shifted Forum further right (was -24px) */
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -1px;
  z-index: 4;
  width: 170px;
}

/* tagline sits inside the frame, bottom-right */
.tagline {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: var(--text-light);
  font-size: 0.7rem;
  text-align: right;
  font-family: monospace;
  font-weight: 700;
  line-height: 1.1;
  background-color: transparent;
  padding: 0;
  z-index: 2;
  max-width: 90px;
}

/* year badge flows directly below frame-box */
.year-badge {
  position: relative;
  display: inline-block;
  margin-top: 0;
  margin-left: 30px;
  z-index: 3;
  padding: 5px 14px;
  color: var(--text-light);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.card-graphics {
  position: relative;
}

.re-badge {
  background-color: var(--accent-real-estate);
}
.hr-badge {
  background-color: var(--accent-hr);
}
.st-badge {
  background-color: var(--accent-strategy);
}

/* Card Details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.8rem;
  font-family: monospace;
}

.detail-value {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.re-text {
  color: var(--accent-real-estate);
}
.hr-text {
  color: var(--accent-hr);
}
.st-text {
  color: var(--accent-strategy);
}

/* Partners Section */
.partners-logos-section {
  padding: clamp(50px, 8vw, 100px) 0;
  background-color: var(--text-light);
  text-align: center;
}

.partners-logos-section .container {
  max-width: 1600px;
}

.partners-subheading {
  color: var(--text-gray);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  margin-bottom: clamp(4px, 0.8vw, 5px);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.partners-heading {
  color: var(--bg-dark);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: clamp(35px, 5vw, 50px);
  letter-spacing: -0.5px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  will-change: contents;
}

.partner-logo {
  background-color: transparent;
  height: clamp(100px, 20vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vw, 20px);
  border-radius: var(--radius-base);
  transition: all var(--transition-base);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.partner-logo:hover {
  background-color: rgba(29, 37, 51, 0.02);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 85%;
  max-height: clamp(50px, 12vw, 90px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: all var(--transition-base);
  will-change: transform;
}

.partner-logo:hover img {
  filter: brightness(1.1);
}

@media (max-width: 991px) {
  .partners-logos-section {
    padding: clamp(50px, 6vw, 70px) 0;
  }

  .partners-subheading {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
  }

  .partners-heading {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: clamp(30px, 4vw, 40px);
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(10px, 1.5vw, 15px);
  }

  .partner-logo {
    height: clamp(90px, 18vw, 130px);
    padding: clamp(10px, 1.3vw, 15px);
  }

  .partner-logo img {
    max-height: clamp(45px, 10vw, 70px);
  }
}

@media (max-width: 768px) {
  .partners-logos-section {
    padding: clamp(40px, 5vw, 60px) 0;
  }

  .partners-heading {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    margin-bottom: clamp(25px, 3vw, 35px);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 1.5vw, 12px);
  }

  .partner-logo {
    height: clamp(85px, 15vw, 110px);
    padding: clamp(10px, 1.2vw, 12px);
  }

  .partner-logo img {
    max-height: clamp(40px, 9vw, 60px);
  }
}

@media (max-width: 480px) {
  .partners-logos-section {
    padding: clamp(35px, 4vw, 50px) 0;
  }

  .partners-subheading {
    font-size: clamp(0.85rem, 1.1vw, 0.9rem);
  }

  .partners-heading {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(20px, 2.5vw, 30px);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1.2vw, 10px);
  }

  .partner-logo {
    height: clamp(80px, 14vw, 100px);
    padding: clamp(8px, 1vw, 10px);
  }

  .partner-logo img {
    max-height: clamp(35px, 8vw, 50px);
    max-width: 90%;
  }
}

/* Partnership / Form Section */
.partnership-section {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.partnership-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(25px, 3vw, 30px);
  gap: clamp(15px, 2vw, 20px);
  flex-wrap: wrap;
}

.partnership-section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.5px;
}

.partnership-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.partnership-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 0 clamp(30px, 3vw, 40px);
}

.partnership-form {
  display: flex;
  flex-direction: column;
  gap: clamp(25px, 3vw, 30px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(25px, 3vw, 30px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 8px);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: clamp(0.8rem, 1.1vw, 0.85rem);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  padding: clamp(6px, 1vw, 8px) 0;
  outline: none;
  font-family: var(--font-main);
  width: 100%;
  transition: border-color var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: clamp(50px, 8vw, 60px);
}

.phone-input {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  gap: 8px;
}

.phone-flag {
  font-size: clamp(0.85rem, 1.2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  padding: clamp(6px, 1vw, 8px) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 10px;
}

.phone-input input {
  border: none;
  flex: 1;
}

.btn-submit {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  padding: clamp(12px, 1.5vw, 14px) clamp(40px, 5vw, 50px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  align-self: flex-start;
  border-radius: var(--radius-base);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
  will-change: background-color, color, border-color;
}

.btn-submit:hover,
.btn-submit:focus {
  background-color: var(--text-light);
  color: var(--bg-dark);
  border-color: var(--text-light);
}

.btn-submit:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .partnership-section {
    padding: clamp(40px, 6vw, 60px) 0;
  }

  .partnership-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  }

  .partnership-header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.5vw, 10px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: clamp(20px, 2.5vw, 25px);
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .btn-submit {
    width: 100%;
    padding: clamp(12px, 1.5vw, 14px) clamp(25px, 3vw, 30px);
  }
}

@media (max-width: 480px) {
  .partnership-section {
    padding: clamp(35px, 5vw, 50px) 0;
  }

  .partnership-section h2 {
    font-size: clamp(1.6rem, 3vw, 1.8rem);
  }

  .partnership-sub {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }

  .form-group label {
    font-size: clamp(0.75rem, 1rem, 0.8rem);
  }

  .form-group input,
  .form-group textarea {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  }

  .phone-flag {
    font-size: clamp(0.8rem, 1rem, 0.85rem);
  }
}

/* Footer */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.footer-top {
  padding: clamp(40px, 6vw, 60px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 40px);
  align-items: start;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 15px);
}

.footer-nav-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition-base);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-nav-col a:hover {
  color: var(--text-light);
}

.footer-center-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 15px);
}

.footer-logo {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

.footer-logo img {
  height: clamp(72px, 10vw, 84px);
  width: auto;
  display: inline-block;
}

.footer-slogan {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  line-height: 1.6;
  font-style: italic;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 10px);
  align-items: flex-end;
}

.footer-contact-col h4 {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: clamp(3px, 0.5vw, 5px);
}

.footer-contact-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  transition: color var(--transition-base);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-contact-col a:hover {
  color: var(--text-light);
}

.footer-social {
  margin-top: clamp(8px, 1vw, 10px);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  transition: color var(--transition-base);
  min-height: 44px;
}

.social-link:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding: clamp(12px, 1.5vw, 15px) 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 2vw, 15px);
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Estate Page Styles */
.page-estate .main-header {
  background-color: #0d1b2a;
  position: relative;
}

/* Estate Page Hero Banner - Refined Horizontal Layout */
.estate-hero-new {
  width: 100%;
  background: #0d1b2a;
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.estate-hero-new .frame-box {
  --cover-bg: #0d1b2a;
}

.estate-hero-container {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  gap: clamp(40px, 6vw, 80px);
  min-height: 230px;
}



.estate-hero-left {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vw, 20px);
  margin-left: clamp(-10px, -1.5vw, -20px);
  align-self: center;
  padding: clamp(30px, 4vw, 50px) 0;
}

/* Mazda logo + info wrapper (HR hero) */
.estate-hero-right-wrap {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  flex: 1;
}

.mazda-logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mazda-hero-logo {
  width: clamp(100px, 12vw, 160px);
  height: auto;
  object-fit: contain;
}

.estate-hero-info {
  display: flex;
  gap: clamp(30px, 4vw, 40px);
  flex: 1;
  flex-wrap: wrap;
  align-self: center;
  padding: clamp(30px, 4vw, 50px) 0;
}

.estate-hero-info .info-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 8px);
}

.estate-hero-info .info-label {
  font-size: clamp(0.7rem, 1rem, 0.8rem);
  color: var(--accent-real-estate);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.estate-hero-info .info-value {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.estate-hero-stripes {
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
  width: 160px;
  margin-left: auto;
}

.estate-hero-stripes .stripe {
  flex: 1;
}

.estate-hero-stripes .s1 {
  background: #2a4a6b;
  opacity: 0.8;
}
.estate-hero-stripes .s2 {
  background: #4a7fa5;
  opacity: 0.8;
}
.estate-hero-stripes .s3 {
  background: #6baed6;
}

@media (max-width: 1100px) {
  .estate-hero-container {
    gap: clamp(30px, 4vw, 40px);
  }
}

@media (max-width: 991px) {
  .estate-hero-new {
    padding: clamp(40px, 5vw, 50px) 0;
  }

  .estate-hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding-right: clamp(20px, 3vw, 40px);
    gap: clamp(25px, 3vw, 30px);
  }

  .estate-hero-left {
    margin-left: 0;
  }

  .estate-hero-info {
    flex-wrap: wrap;
    gap: clamp(25px, 3vw, 40px);
  }

  .estate-hero-stripes {
    display: none;
  }
}

@media (max-width: 768px) {
  .estate-hero-new {
    padding: clamp(30px, 4vw, 40px) 0;
  }

  .estate-hero-info {
    flex-direction: column;
    gap: clamp(18px, 2.5vw, 20px);
  }

  .estate-hero-info .info-label {
    font-size: clamp(0.7rem, 0.9rem, 0.75rem);
  }

  .estate-hero-info .info-value {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
  }
}

@media (max-width: 480px) {
  .estate-hero-new {
    padding: clamp(25px, 3vw, 30px) 0;
  }

  .estate-hero-left {
    gap: clamp(12px, 1.5vw, 15px);
  }

  .estate-hero-info .info-value {
    font-size: clamp(0.95rem, 1.2vw, 1rem);
  }
}

/* Estate Moving Banner */
.estate-moving-banner {
  background-color: var(--accent-real-estate);
  color: #0d1b2a;
}

.estate-moving-banner .dot {
  background: #0d1b2a;
}

@media (max-width: 991px) {
  .estate-page-main-title {
    font-size: 36px;
  }
}

.estate-partners-section {
  padding: 80px 0;
}

.partners-row {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
}

.container-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.partners-unified-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #f5f5f5; /* Light grey backdrop for grid lines */
  gap: 1.5px; /* Thinner border-like gaps */
  border: 1.5px solid #f5f5f5;
  margin-top: 30px;
}

.grid-label {
  font-size: 1.1rem;
  color: #4c91ff;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.8;
  align-self: end;
}

.org-label {
  grid-column: 1;
}

.part-label {
  grid-column: 2 / 6;
}

.grid-cell {
  aspect-ratio: 16 / 9;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Real Estate Page Specific Overrides for Partners */
.page-estate .estate-partners-section .container {
  max-width: 1600px;
}

.page-estate .partners-unified-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  row-gap: 30px;
  background-color: #f5f5f5;
  border: 1.5px solid #f5f5f5;
}

.page-estate .grid-label {
  color: #facc15; /* Yellow matching HR style */
}

.page-estate .org-label {
  grid-column: 1;
}

.page-estate .part-label {
  grid-column: 2 / 5;
  padding-left: 30px; /* Aligns with the double gap of logos */
}

/* Double gap between column 1 (Organizer) and column 2 (Partners) */
.page-estate .grid-cell:nth-of-type(4n + 1) {
  padding-right: 30px;
}

.page-estate .grid-cell {
  height: 320px;
  padding: 15px;
  background-color: #fff;
}

.page-estate .logo-img {
  max-width: 95%;
  max-height: 95%;
  filter: none;
  opacity: 1;
}

/* HR Page Specific Overrides for Partners */
.page-hr .partners-section .container {
  max-width: 0px;
}

.page-hr .partners-unified-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  row-gap: 30px;
  background-color: #f5f5f5;
  border: 1.5px solid #f5f5f5;
}

/* HR partners block (Rescaled down by 1.5x) */
.page-hr .partners-main-row {
  gap: 80px; /* Reduced gap to allow logos to grow */
}

.page-hr .organizer-block {
  flex: 0 0 380px; /* Enough space for the organizer logos inside */
}

.page-hr .partners-grid-new {
  gap: 60px 40px; /* Reduced internal gaps to let logos expand */
}

.page-hr .partners-grid-new .logo-item img {
  max-height: 186px; /* Decreased max-height by 1.5x from 280px */
}

.page-hr .org-label {
  grid-column: 1;
}

.page-hr .part-label {
  grid-column: 2 / 5;
  padding-left: 30px; /* Aligns with the double gap of logos */
}

/* Double gap between column 1 (Organizer) and column 2 (Partners) */
.page-hr .grid-cell:nth-of-type(4n + 1) {
  padding-right: 30px;
  /* This makes the gap between Col 1 and Col 2 effectively 60px (30px gap + 30px padding) */
}

.page-hr .grid-cell {
  height: 320px;
  padding: 15px;
  background-color: #fff;
}

.page-hr .logo-img {
  max-width: 95%;
  max-height: 95%;
  filter: none;
  opacity: 1;
}

.text-logo {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: #444;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .partners-unified-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .org-label,
  .part-label {
    grid-column: span 3;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .partners-unified-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .org-label,
  .part-label {
    grid-column: span 2;
  }
}

.estate-intro-text {
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 40px auto 100px;
  text-align: center;
  color: #444;
}

.estate-other-events {
  padding: 100px 0;
  background-color: #f8fafc;
}

.other-events-flex {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.other-events-flex .event-column {
  flex: 0 1 400px;
  max-width: 450px;
}

@media (max-width: 768px) {
  .other-events-flex {
    gap: 40px;
  }
}

/* Event Program Section */
.event-program {
  padding: 100px 0;
  background-color: #f8fafc;
}

.program-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 2px;
  color: #1d2533;
  font-weight: 700;
}

.program-list {
  max-width: 850px;
  margin: 0 auto;
}

/* Desktop - Card Style */
.program-item {
  background: white;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.program-line {
  display: none;
}

.program-dot {
  display: none;
}

.program-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 12px;
  display: block;
}

.program-topic-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d2533;
  margin-bottom: 16px;
  line-height: 1.4;
}

.program-content {
  width: 100%;
}

.program-subtopic {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.program-subtopic:first-of-type {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.program-subtopic-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.5;
}

.program-speaker {
  font-size: 0.9rem;
  color: #1d2533;
  margin-bottom: 4px;
  margin-top: 8px;
}

.program-speaker strong {
  font-weight: 700;
}

.program-position {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
}

.program-break {
  opacity: 0.7;
  background: #f1f5f9;
}

.program-end .program-topic-title {
  margin-bottom: 0;
}

/* Tablet & Mobile - Timeline Style */
@media (max-width: 768px) {
  .event-program {
    padding: 60px 0;
  }

  .program-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
  }

  .program-list {
    max-width: 100%;
  }

  /* Timeline Layout */
  .program-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: none;
    position: relative;
  }

  .program-time {
    flex-shrink: 0;
    width: 70px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
    text-align: right;
    padding-top: 2px;
  }

  /* Vertical Line with Dot */
  .program-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 20px;
    flex-shrink: 0;
  }

  .program-line::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: #cbd5e1;
  }

  .program-dot {
    display: block;
    width: 10px;
    height: 10px;
    background: #facc15;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border: 2px solid #f8fafc;
  }

  .program-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 20px;
  }

  .program-topic-title {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1d2533;
    line-height: 1.3;
  }

  .program-subtopic {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }

  .program-subtopic:first-of-type {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
  }

  .program-subtopic-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .program-speaker {
    font-size: 0.85rem;
    margin-top: 6px;
    margin-bottom: 3px;
  }

  .program-position {
    font-size: 0.8rem;
    color: #64748b;
  }

  .program-break {
    opacity: 0.7;
  }

  .program-break .program-dot {
    background: #94a3b8;
  }

  /* Last item - no extended line */
  .program-item:last-child .program-line::after {
    display: none;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .event-program {
    padding: 50px 0;
  }

  .program-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }

  .program-item {
    gap: 10px;
    margin-bottom: 25px;
  }

  .program-time {
    width: 60px;
    font-size: 0.7rem;
  }

  .program-line {
    width: 18px;
  }

  .program-dot {
    width: 9px;
    height: 9px;
  }

  .program-topic-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .program-subtopic {
    margin-top: 10px;
    padding-top: 10px;
  }

  .program-subtopic-title {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .program-speaker {
    font-size: 0.82rem;
    margin-top: 5px;
  }

  .program-position {
    font-size: 0.78rem;
  }
}

/* HR Page Branding */
.page-hr {
  --hr-accent: #facc15;
  --hr-dark: #1e293b;
}

.page-hr .hero-event {
  background: linear-gradient(135deg, var(--hr-dark) 0%, #334155 100%);
}

.page-hr .event-title {
  color: var(--hr-accent);
}

.page-hr .info-label {
  color: var(--hr-accent);
  opacity: 0.9;
}

.hr-banner {
  background-color: var(--hr-accent);
  color: var(--hr-dark);
}

.page-hr .program-dot {
  background-color: var(--hr-accent);
}

/* General Event Page Utilities */
.hr-hero-new {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 480;
  background: url("https://static.wixstatic.com/media/f8f6c4_2a4b8564c3c046328e32274bb32675c4~mv2.jpg")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-event {
  padding: 100px 0 60px;
  color: white;
  text-align: center;
}

.event-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.moving-banner {
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.banner-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.banner-content .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 40px;
  vertical-align: middle;
}

.partners-section {
  padding: 80px 0;
  background-color: white;
}

.event-program {
  padding: 100px 0;
  background-color: #f8fafc;
}

.event-intro-text {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
}

.other-events-section {
  padding: 100px 0;
  background-color: white;
  border-top: 1px solid #e2e8f0;
}

/* Footer Adjustments */
.footer-small {
  padding-top: 30px !important;
}

.footer-small .footer-top {
  padding-bottom: 20px !important;
}

.footer-small .footer-logo {
  font-size: 1.1rem !important;
}

.footer-small .footer-slogan {
  font-size: 0.8rem !important;
  margin-top: 5px;
}

.footer-small .footer-nav-col a {
  font-size: 0.85rem;
}

.footer-small .footer-contact-col a {
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* Performance: GPU acceleration for animations */
.hero-dot.is-active,
.event-card:hover,
.partner-logo:hover,
.event-card-link:hover {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Optimize large content containers */
.events-grid,
.partners-grid,
.partners-grid-new {
  will-change: contents;
  contain: layout style paint;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .stats-grid {
    flex-direction: column;
    gap: 40px;
  }

  .stat-divider {
    width: 100px;
    height: 2px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding: 40px 30px;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero {
    height: 65vh;
    min-height: 450px;
  }

  .events-grid {
    gap: 20px;
  }

  .event-header-top {
    padding: 0 3px;
  }

  .event-title-top {
    font-size: 1rem;
  }

  .event-num-top {
    font-size: 1rem;
  }
}

/* Strategy Banner Hero Styles */
.strategy-banner-hero {
  background: #1d2533;
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.banner-container {
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
  min-height: 250px;
}

.banner-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-right: 80px;
}

.frame-logo {
  border: 3px solid #d6335c;
  padding: 15px 25px;
  position: relative;
  max-width: 250px;
}

.logo-inner {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 0.9;
}

.logo-subtitle {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin-top: 5px;
  letter-spacing: 1px;
}

.year-box {
  background: #d6335c;
  color: #fff;
  padding: 8px 15px;
  font-weight: 900;
  width: fit-content;
  font-size: 1.2rem;
}

.banner-info {
  display: flex;
  gap: 25px;
  flex: 1;
}

.info-group .info-label {
  display: block;
  color: #d6335c;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-group .info-value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.banner-stripes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  width: 150px;
}

.banner-stripes .stripe {
  width: 33.33%;
  height: 100%;
}

.banner-stripes .s1 {
  background: #641126;
  opacity: 0.8;
}
.banner-stripes .s2 {
  background: #a41f3e;
  opacity: 0.8;
}
.banner-stripes .s3 {
  background: #d6335c;
}

@media (max-width: 992px) {
  .banner-container {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
    padding: 50px 0;
  }

  .banner-left {
    margin-right: 0;
    margin-bottom: 40px;
  }

  .banner-info {
    flex-direction: column;
    gap: 30px;
  }

  .banner-stripes {
    display: none;
  }
}

@media (max-width: 768px) {
  .banner-container {
    padding: 40px 0;
    min-height: auto;
  }

  .banner-left {
    margin-bottom: 30px;
  }

  .frame-logo {
    padding: 12px 20px;
    max-width: 220px;
  }

  .logo-inner {
    font-size: 1.9rem;
  }

  .logo-subtitle {
    font-size: 0.9rem;
  }

  .year-box {
    padding: 6px 12px;
    font-size: 1.1rem;
  }

  .banner-info {
    gap: 25px;
  }

  .info-group .info-label {
    font-size: 0.75rem;
  }

  .info-group .info-value {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .banner-container {
    padding: 30px 0;
  }

  .frame-logo {
    padding: 10px 18px;
    max-width: 200px;
  }

  .logo-inner {
    font-size: 1.7rem;
  }

  .year-box {
    font-size: 1rem;
  }

  .banner-info {
    gap: 20px;
  }

  .info-group .info-value {
    font-size: 1.05rem;
  }
}

.strategy-intro {
  padding: 100px 0;
  background: #f7fbff;
}

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #1d2533;
}

.intro-text {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.intro-text p {
  margin-bottom: 20px;
}
/* Strategy page: 4-column structured colorful logos - MAXIMIZED */
.page-strategy-wix .partners-section .container {
  max-width: 1500px; /* Stretch container to make logos as big as possible */
}

.page-strategy-wix .strategy-mission-row {
  gap: 30px; /* Less gap = more space for grid */
}

.page-strategy-wix .mission-partners-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  background-color: transparent;
  border: none;
}

.page-strategy-wix .mission-partners-grid .grid-cell {
  background-color: transparent;
  aspect-ratio: 4 / 3;
  padding: 10px;
}

.page-strategy-wix .partners-unified-grid,
.page-strategy-wix .strategy-extra-grid {
  background-color: transparent;
  border: none;
  gap: 24px 20px;
}

.page-strategy-wix .partners-unified-grid .grid-cell,
.page-strategy-wix .strategy-extra-grid .grid-cell,
.page-strategy-wix .organizer-cell {
  background-color: transparent;
}

.page-strategy-wix .logo-img {
  filter: none;
  opacity: 1;
  max-width: 100%; /* Fill cell */
  max-height: 100%;
}

.page-strategy-wix .logo-img:hover {
  filter: none;
  opacity: 0.8;
}

.page-strategy-wix .mission-label {
  color: #9e2a4a;
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* Strategy Mission Row */
.strategy-mission-row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 60px;
  padding-top: 40px;
}

.mission-block {
  min-width: 220px;
}

.mission-label {
  font-size: 0.85rem;
  color: #9e2a4a;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
}

.mission-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1d2533;
  line-height: 1.3;
}

.mission-partners-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .strategy-mission-row {
    flex-direction: column;
    gap: 30px;
  }
  .mission-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-text {
    font-size: 1.2rem;
  }
}

.strategy-program {
  padding: 100px 0;
  background: #fff;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  font-weight: 900;
}

.timeline {
  border-top: 1px solid #ddd;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.timeline-item .time {
  font-size: 1rem;
  font-weight: 900;
  color: #5eb2d6;
  padding-left: 10px;
  background-color: var(--bg-dark);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  margin-left: 8px;
}

.timeline-item .content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #1d2533;
}

.timeline-item.highlight .time {
  color: #e2cf45;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }
  .hero-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-nav-col {
    align-items: center;
  }

  .footer-contact-col {
    align-items: center;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding: 40px 0;
  }

  .footer-top-container {
    gap: 30px;
  }

  .footer-nav-col a {
    font-size: 0.85rem;
  }

  .footer-logo img {
    height: 72px;
  }

  .footer-slogan {
    font-size: 0.85rem;
  }

  .footer-contact-col h4 {
    font-size: 0.85rem;
  }

  .footer-contact-col a {
    font-size: 0.9rem;
  }

  .footer-bottom p,
  .footer-bottom a {
    font-size: 0.8rem;
  }
}

/* HR Custom Hero Banner (1-to-1 Match) */
/* ══════════════════════════════════════
   HR HERO BANNER — redesigned
   ══════════════════════════════════════ */
.hr-hero-banner {
  width: 100%;
  background-color: #1d2533;
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hr-hero-container {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  gap: clamp(30px, 4vw, 55px);
  min-height: 220px;
}

/* ── Forum West brand block (Left) ── */
.hr-hero-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 30px 0;
}

.hr-hero-brand .hero-logo-wrap {
  margin: 0;
}

/* ── Info Items (Desktop: Horizontal Row) ── */
.hr-hero-info {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 45px);
  flex: 1;
  flex-wrap: wrap;
  padding: 30px 0;
}

.hr-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-detail-label {
  font-size: clamp(0.75rem, 1vw, 0.82rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #facc15;
  line-height: 1.2;
}

.hr-detail-value {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ── Mazda location partner logo ── */
.hr-partner-item {
  min-width: 90px;
}

.hr-mazda-wrap {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.hr-mazda-logo {
  display: block;
  width: clamp(75px, 8vw, 105px);
  height: auto;
  object-fit: contain;
}

/* ── Color stripes (Desktop Right) ── */
.hr-hero-stripes {
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
  width: 140px;
  margin-left: auto;
}

.hr-stripe {
  flex: 1;
}

.hr-s1 { background: #a38c2a; }
.hr-s2 { background: #c0a632; }
.hr-s3 { background: #dfbd37; }
.hr-s4 { background: #facc15; }

/* ── Responsive: Mobile & Tablet (matches mockup) ── */
@media (max-width: 991px) {
  .hr-hero-banner {
    padding: clamp(25px, 4vw, 40px) 0;
  }

  .hr-hero-container {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    gap: clamp(20px, 4vw, 36px);
  }

  .hr-hero-stripes {
    display: none !important;
  }

  .hr-hero-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
  }

  .hr-hero-brand {
    padding: 0;
    align-self: flex-start;
  }

  .hr-mazda-logo {
    width: clamp(75px, 12vw, 95px);
  }
}

@media (max-width: 480px) {
  .hr-hero-banner {
    padding: 20px 0;
  }
  .hr-hero-container {
    padding: 0 14px;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hr-hero-brand {
    transform: none;
    margin-right: 0;
  }
  .hr-hero-info {
    width: 100%;
  }
  .hr-detail-label {
    font-size: 0.72rem;
    letter-spacing: 0.8px;
  }
  .hr-detail-value {
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .hr-mazda-logo {
    width: 75px;
  }
}

@media (max-width: 350px) {
  .hr-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hr-hero-brand {
    transform: none;
    margin-right: 0;
  }
}
/* HR Unified Partners Layout */
.hr-partners-grid-unified {
  display: grid;
  gap: 24px 20px;
  background-color: transparent;
  border: none;
  width: 100%;
}

.hr-partners-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hr-partners-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.hr-grid-cell {
  background-color: transparent;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.hr-grid-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hr-mission-segment {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  padding: 40px 0;
}

.hr-mission-left {
  flex: 0 0 320px;
}

.hr-mission-right {
  flex: 1;
}

@media (max-width: 1024px) {
  .hr-partners-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hr-mission-segment {
    flex-direction: column;
    gap: 30px;
  }
  .hr-mission-left {
    flex: none;
  }
}

@media (max-width: 768px) {
  .hr-partners-grid-4,
  .hr-partners-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   DROPDOWN NAV MENU
   ============================================= */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.nav-dropdown-btn:hover {
  color: #a0aabf;
}

.nav-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.25s, opacity 0.25s ease;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-dark);
  border-top: 2px solid var(--accent-strategy);
  min-width: 220px;
  z-index: 2000;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Місток, щоб не втрачати hover при переході від кнопки до меню */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s 0s, opacity 0.2s ease;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* Mobile nav section label */
.mobile-nav-section-label {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.mobile-nav-sub {
  padding-left: 24px !important;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* =============================================
   "ЯК БУЛО МИНУЛОГО РОКУ" — Gallery Slider
   ============================================= */
.lastyear-section {
  padding: 100px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.lastyear-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.lastyear-sub {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 48px;
  font-style: italic;
}

.lastyear-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1d2533;
  user-select: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.lastyear-slides {
  position: absolute;
  inset: 0;
}

.lastyear-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.lastyear-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.lastyear-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lastyear-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1d2533 0%, #2d3a4f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lastyear-placeholder span {
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lastyear-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(13, 27, 42, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
  border-radius: 2px;
}

.lastyear-arrow:hover {
  background: rgba(13, 27, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.9);
}

.lastyear-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.lastyear-arrow-prev {
  left: 16px;
}
.lastyear-arrow-next {
  right: 16px;
}

.lastyear-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 90%;
}

.lastyear-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  min-width: 10px;
}

.lastyear-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .lastyear-section {
    padding: 60px 0;
  }

  .lastyear-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .lastyear-sub {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .lastyear-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .lastyear-arrow-prev {
    left: 10px;
  }
  .lastyear-arrow-next {
    right: 10px;
  }

  .lastyear-dots {
    bottom: 12px;
    gap: 8px;
  }

  .lastyear-dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 480px) {
  .lastyear-section {
    padding: 50px 0;
  }

  .lastyear-title {
    font-size: 1.5rem;
  }

  .lastyear-carousel {
    border-radius: 2px;
  }

  .lastyear-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lastyear-arrow-prev {
    left: 6px;
  }
  .lastyear-arrow-next {
    right: 6px;
  }

  .lastyear-dots {
    bottom: 10px;
    gap: 6px;
    max-width: 85%;
  }

  .lastyear-dot {
    width: 8px;
    height: 8px;
  }
}
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lastyear-title {
    font-size: 1.5rem;
  }
  .lastyear-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .section-header h2,
  .stats-header h2,
  .partners-heading {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Horizontal scroll prevention */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-carousel,
.lastyear-carousel {
  max-width: 100%;
}

/* Better text readability on mobile */
@media (max-width: 768px) {
  p,
  li,
  .detail-value,
  .info-value {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* =========================================================
   FORUM WEST — RESPONSIVE SYSTEM v5
   Mobile / tablet / desktop / touch / accessibility
   ========================================================= */

:root {
  --container-max: 1200px;
  --container-pad: clamp(14px, 3vw, 32px);
  --section-y: clamp(52px, 7vw, 100px);
  --radius-sm: 4px;
  --header-h: 66px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.container {
  width: min(100% - (2 * var(--container-pad)), var(--container-max));
  padding-left: 0;
  padding-right: 0;
}

#main-header {
  height: var(--header-h);
  min-height: var(--header-h);
  padding-top: max(4px, env(safe-area-inset-top));
  padding-bottom: 4px;
}

#main-header .container {
  min-width: 0;
}

.logo {
  min-width: 0;
}

.logo a {
  min-width: 0;
}

.logo a img {
  width: auto;
  height: clamp(42px, 5vw, 58px);
  max-width: min(230px, 52vw);
}

.nav-links {
  min-width: 0;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-links > a,
.nav-dropdown-btn {
  white-space: nowrap;
}

.mobile-menu-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 27px;
}

.mobile-nav {
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  padding: 18px var(--container-pad) max(24px, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav a {
  min-height: 52px;
  padding: 14px 12px;
}

.mobile-nav-section-label {
  padding-top: 20px;
}

/* Fluid typography: avoids abrupt jumps between breakpoints */
.hero-content h1,
.hr-page-main-title,
.section-title,
.partners-heading,
.partnership-section h2,
.lastyear-title {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

.section-title {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.08;
}

.stats-header h2,
.partners-heading {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.hero {
  height: min(900px, 90svh);
  min-height: 520px;
}

.hero-content {
  width: min(100%, 850px);
  padding: clamp(26px, 5vw, 60px);
}

.hero-content p {
  font-size: clamp(0.92rem, 1.8vw, 1.2rem);
}

.hero-arrow,
.lastyear-arrow {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.hero-slide img,
.lastyear-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Never let decorative card geometry create viewport overflow */
.event-card,
.card-inner,
.frame-box,
.tagline {
  max-width: 100%;
}

.tagline {
  white-space: normal;
  overflow-wrap: anywhere;
}

.events-grid {
  align-items: stretch;
}

.event-card-link {
  height: 100%;
}

.event-card {
  min-height: clamp(380px, 48vw, 480px);
  height: 100%;
}

.card-inner {
  min-width: 0;
}

.detail-value {
  overflow-wrap: anywhere;
}

.stats-grid {
  align-items: stretch;
}

.stat-number {
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1;
}

.stats-section,
.events-section,
.partnership-section,
.partners-logos-section,
.lastyear-section,
.estate-program,
.event-program,
.strategy-intro,
.strategy-program,
.other-events-section,
.estate-other-events {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Forms: eliminate iOS zoom and make controls comfortable */
.form-group input,
.form-group textarea,
.btn-submit {
  min-height: 48px;
}

.form-group input,
.form-group textarea {
  font-size: 16px;
}

.partnership-form {
  min-width: 0;
}

.phone-input {
  min-height: 48px;
}

/* Partner grids */
.partners-grid,
.partners-grid-new,
.hr-partners-grid-4,
.hr-partners-grid-5,
.mission-partners-grid,
.partners-unified-grid {
  min-width: 0;
}

.partner-logo,
.grid-cell,
.hr-grid-cell {
  min-width: 0;
}

.partner-logo img,
.logo-img,
.hr-grid-cell img,
.partners-grid-new .logo-item img {
  max-width: 100%;
}

/* Event-page hero banners */
.estate-hero-new,
.strategy-banner-hero {
  width: 100%;
}

.estate-hero-container,
.banner-container {
  width: min(100% - (2 * var(--container-pad)), var(--container-max));
  margin-inline: auto;
  min-width: 0;
}

.estate-hero-info,
.banner-info {
  min-width: 0;
}

.estate-hero-info .info-value,
.banner-info .info-value,
.info-value {
  overflow-wrap: anywhere;
}

/* Program/timeline */
.program-list,
.timeline {
  width: 100%;
  min-width: 0;
}

.timeline-item .content {
  min-width: 0;
}

.timeline-item .content h3 {
  overflow-wrap: anywhere;
}

/* Gallery */
.lastyear-carousel {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  contain: layout paint;
}

.lastyear-dots {
  padding-inline: 4px;
}

.lastyear-dot,
.hero-dot {
  flex: 0 0 auto;
}

.footer-top-container,
.footer-bottom-container {
  min-width: 0;
}

.footer-contact-col a,
.footer-nav-col a,
.footer-bottom a {
  overflow-wrap: anywhere;
}

/* Tablets: preserve generous desktop composition without squeezing */
@media (max-width: 1100px) {
  .partners-main-row {
    gap: 36px;
  }

  .page-hr .partners-main-row {
    gap: 36px;
  }

  .page-hr .organizer-block {
    flex-basis: 300px;
  }

  .page-hr .partners-grid-new {
    gap: 38px 28px;
  }

  .page-hr .partners-grid-new .logo-item img {
    max-height: 150px;
  }

  .estate-hero-container {
    gap: 32px;
  }

  .banner-left {
    margin-right: 40px;
  }

  .banner-info {
    gap: 20px;
  }
}

/* 2-column tablet layouts */
@media (max-width: 900px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links > a,
  .nav-dropdown-btn {
    font-size: 0.78rem;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partners-main-row {
    flex-direction: column;
  }

  .organizer-block,
  .page-hr .organizer-block {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .partners-grid-new,
  .page-hr .partners-grid-new {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .page-hr .partners-grid-new .logo-item img {
    max-height: 130px;
  }

  .estate-hero-container,
  .banner-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .estate-hero-left,
  .banner-left {
    margin-left: 0;
    margin-right: 0;
  }

  .estate-hero-info,
  .banner-info {
    width: 100%;
    flex-wrap: wrap;
  }

  .estate-hero-stripes,
  .banner-stripes {
    display: none;
  }

  .partners-unified-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .org-label,
  .part-label {
    grid-column: 1 / -1;
  }

  .page-estate .partners-unified-grid,
  .page-hr .partners-unified-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-estate .grid-cell,
  .page-hr .grid-cell {
    height: auto;
    min-height: 220px;
  }

  .strategy-mission-row {
    gap: 32px;
  }

  .mission-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones and portrait tablets */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --container-pad: 16px;
  }

  #main-header {
    height: var(--header-h);
    min-height: var(--header-h);
  }

  #main-header .logo a img {
    height: 46px;
    max-width: 190px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    height: 72svh;
    min-height: 480px;
  }

  .hero-container {
    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: clamp(24px, 7vw, 40px) clamp(20px, 6vw, 30px);
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-arrow {
    width: 46px;
    height: 46px;
  }

  .hero-arrow-prev {
    left: 10px;
  }
  .hero-arrow-next {
    right: 10px;
  }

  .hero-dots {
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .hero-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
  }

  .stats-section,
  .events-section,
  .partners-logos-section,
  .partnership-section,
  .lastyear-section,
  .estate-program,
  .event-program,
  .strategy-intro,
  .strategy-program,
  .other-events-section,
  .estate-other-events {
    padding-block: var(--section-y);
  }

  .stats-grid {
    flex-direction: column;
    gap: 30px;
  }

  .stat-item {
    width: 100%;
  }

  .stat-divider {
    width: min(100px, 25%);
    height: 2px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .event-card {
    min-height: 400px;
  }

  .event-card-link:hover {
    transform: none;
  }

  .event-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card-inner {
    padding: 22px;
  }

  .card-stripes {
    width: 44px;
  }

  .frame-box {
    max-width: calc(100% - 50px);
  }

  .tagline {
    right: clamp(-64px, -14vw, -48px);
    font-size: 0.72rem;
  }

  .event-title-main-section {
    padding-block: 48px;
  }

  .title-details-flex,
  .partnership-header,
  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hr-page-main-title {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .event-info-col {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .partnership-section h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .btn-submit {
    width: 100%;
    min-height: 52px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .partner-logo {
    height: 110px;
    padding: 10px;
  }

  .partners-main-row {
    gap: 34px;
  }

  .partners-grid-new,
  .page-hr .partners-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .partners-grid-new .logo-item {
    min-height: 76px;
  }

  .page-hr .partners-grid-new .logo-item img {
    max-height: 90px;
  }

  .partners-unified-grid,
  .page-estate .partners-unified-grid,
  .page-hr .partners-unified-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .page-estate .grid-cell,
  .page-hr .grid-cell {
    min-height: 150px;
    padding: 12px;
  }

  .grid-cell {
    aspect-ratio: 4 / 3;
    padding: 12px;
  }

  .strategy-mission-row {
    flex-direction: column;
    gap: 26px;
    margin-top: 36px;
    padding-top: 28px;
  }

  .mission-partners-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .intro-content h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .timeline-item .time {
    font-size: 1rem;
    font-weight: 900;
    color: #5eb2d6;
    padding-left: 10px;
    background-color: var(--bg-dark);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    margin-left: 8px;
  }

  .footer-top {
    padding-block: 48px;
  }

  .footer-top-container {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .footer-nav-col,
  .footer-contact-col {
    align-items: center;
  }

  .footer-bottom-container {
    gap: 12px;
    text-align: center;
    align-items: center;
  }

  .footer-bottom {
    padding-block: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .lastyear-carousel {
    aspect-ratio: 4 / 3;
  }

  .lastyear-arrow {
    width: 44px;
    height: 44px;
  }

  /* Estate event banner */
  .estate-hero-new {
    padding-block: 42px;
  }

  .estate-hero-container {
    gap: 28px;
  }

  .estate-hero-left {
    gap: 14px;
  }

  .estate-hero-info {
    flex-direction: column;
    gap: 18px;
  }

  .estate-hero-info .info-value {
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  /* HR banner: remove legacy desktop offsets */
  .page-hr .estate-hero-new,
  .hr-hero-new {
    height: auto !important;
    min-height: 0;
    padding: 12px 10px 481px !important;
    overflow: hidden;
  }

  .page-hr .estate-hero-container {
    height: auto !important;
    gap: 28px !important;
    padding: 0;
    margin-inline: auto;
  }

  .page-hr .estate-hero-new .estate-hero-left {
    margin-top: 0 !important;
    width: 100%;
  }

  .page-hr .estate-hero-new .estate-hero-info {
    margin-top: 0 !important;
    gap: 18px;
  }

  /* Removed conflicting .frame-box mobile overrides to allow fixed-size logo to render correctly on mobile */

  /* Strategy banner */
  .banner-container {
    padding-block: 40px;
  }

  .banner-left {
    width: 100%;
    margin: 0 0 26px;
  }

  .banner-info {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .frame-logo {
    width: min(250px, 82vw);
  }

  .banner-info .info-value {
    font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  }

  .strategy-program {
    padding-block: var(--section-y);
  }

  .section-title {
    margin-bottom: 38px;
  }

  .program-item {
    gap: 12px;
    margin-bottom: 34px;
  }

  .program-time {
    width: 52px;
    font-size: 0.78rem;
    flex: 0 0 52px;
  }

  .hr-partners-grid-4,
  .hr-partners-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-grid-cell {
    aspect-ratio: 4 / 3;
    padding: 8px;
  }

  .hr-mission-segment {
    flex-direction: column;
    gap: 24px;
    padding-block: 28px;
  }

  .hr-mission-left {
    flex: none;
    width: 100%;
  }

  .hr-section-label {
    font-size: 1.35rem !important;
    margin-bottom: 22px !important;
  }

  .hr-mission-label {
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --container-pad: 14px;
  }

  #main-header .logo a img {
    height: 42px;
    max-width: 170px;
  }

  .mobile-menu-btn {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hero {
    height: 68svh;
    min-height: 450px;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.35rem);
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-arrow-prev {
    left: 8px;
  }
  .hero-arrow-next {
    right: 8px;
  }

  .hero-dots {
    gap: 6px;
  }

  .hero-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
  }

  .event-card {
    min-height: 370px;
  }

  .card-inner {
    padding: 19px;
  }

  .card-stripes {
    width: 38px;
  }

  .frame-box {
    padding: 11px 14px;
    border-width: 2px;
  }

  .logo-text {
    font-size: 1.55rem;
  }

  .year-badge {
    margin-left: 12px;
    padding: 4px 9px;
    font-size: 0.88rem;
  }

  .tagline {
    right: -58px;
    bottom: 12px;
    font-size: 0.64rem;
  }

  .event-info-col {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    gap: 8px;
  }

  .partner-logo {
    height: 96px;
    padding: 8px;
  }

  .partners-grid-new,
  .page-hr .partners-grid-new {
    gap: 24px 14px;
  }

  .partners-grid-new .logo-item {
    min-height: 64px;
  }

  .page-estate .grid-cell,
  .page-hr .grid-cell {
    min-height: 125px;
    padding: 9px;
  }

  .mission-partners-grid {
    gap: 12px;
  }

  .lastyear-section {
    padding-block: 48px;
  }

  .lastyear-title {
    font-size: clamp(1.45rem, 7.5vw, 1.8rem);
  }

  .lastyear-sub {
    font-size: 0.85rem;
  }

  .lastyear-carousel {
    aspect-ratio: 4 / 3;
    border-radius: 3px;
  }

  .lastyear-arrow {
    width: 40px;
    height: 40px;
  }

  .lastyear-arrow-prev {
    left: 6px;
  }
  .lastyear-arrow-next {
    right: 6px;
  }

  .lastyear-dots {
    bottom: 9px;
    gap: 5px;
  }

  .lastyear-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
  }

  .program-list::before {
    left: 55px;
  }

  .program-time {
    width: 47px;
    flex-basis: 47px;
  }

  .footer-top-container {
    gap: 28px;
  }

  .footer-logo img {
    height: 68px;
  }
}

/* Very narrow devices */
@media (max-width: 360px) {
  :root {
    --container-pad: 12px;
  }

  .mobile-nav a {
    padding-inline: 8px;
  }

  .hero-content {
    padding: 20px 17px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .event-card {
    min-height: 350px;
  }

  .card-inner {
    padding: 17px;
  }

  .detail-value {
    font-size: 0.88rem;
  }

  .partners-grid-new,
  .page-hr .partners-grid-new {
    gap: 20px 10px;
  }

  .page-estate .grid-cell,
  .page-hr .grid-cell {
    min-height: 110px;
  }

  .program-list::before {
    display: none;
  }

  .program-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .program-time {
    width: auto;
    text-align: left;
  }
}

/* Landscape phones: avoid oversized hero / menu */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    height: 100svh;
    min-height: 360px;
  }

  .hero-content {
    padding: 20px 24px;
  }

  .mobile-nav {
    padding-top: 10px;
  }

  .mobile-nav a {
    min-height: 44px;
    padding-block: 8px;
  }
}

/* Touch devices: disable hover-only lifts and increase hit areas */
@media (hover: none) and (pointer: coarse) {
  .event-card-link:hover,
  .event-card:hover {
    transform: none;
    box-shadow: none;
  }

  .partner-logo:hover img,
  .page-strategy-wix .logo-img:hover {
    transform: none;
    opacity: 1;
  }

  .hero-arrow,
  .lastyear-arrow {
    width: 48px;
    height: 48px;
  }

  .hero-dot,
  .lastyear-dot {
    min-width: 12px;
    min-height: 12px;
  }
}

/* Reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .banner-content {
    animation: none !important;
  }
}

/* Better viewport behavior when the mobile drawer is open */
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* HR inline-style replacements */
.hr-unified-partners {
  padding: var(--section-y) 0;
  background-color: #fff;
}

.hr-section-label {
  color: #facc15;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.hr-mission-label {
  color: #facc15;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Missing/underdefined layouts completed for responsive consistency */
:root {
  --primary-color: var(--bg-dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.intro-text {
  width: min(100%, 800px);
}

.partners-thanks-section {
  padding: var(--section-y) 0;
  background: #f8fafc;
}

.thanks-header {
  margin-bottom: clamp(28px, 4vw, 50px);
}

.thanks-sub {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 1rem;
}

.thanks-title {
  margin: 0;
  color: var(--bg-dark);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.text-logo-italic {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  color: #444;
  text-align: center;
}

.hr-unified-partners .partners-label {
  color: #facc15;
}

.hr-unified-partners .hr-mission-label {
  margin-top: 10px;
}

/* ══ HR Partners unified layout (matches photo mockup) ══ */
.hr-partners-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.hr-partners-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hr-organizer-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.hr-organizer-logo-wrap img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hr-partners-right-col {
  display: flex;
  flex-direction: column;
}

.hr-partners-grid-unified {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 24px);
  align-items: center;
  margin-top: 16px;
}

.hr-partners-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hr-grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.hr-grid-cell img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .hr-partners-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hr-partners-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .hr-partners-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hr-organizer-logo-wrap img {
    max-width: 160px;
  }
}

@media (max-width: 767px) {
  .intro-grid {
    gap: 22px;
  }

  .intro-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .partners-thanks-section {
    padding-block: var(--section-y);
  }
}

/* Final responsive corrections
   Keep all mobile layouts inside the viewport and let content define height. */
@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --container-pad: 16px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    min-width: 0;
  }

  .container,
  .container-wide {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--container-pad);
  }

  #main-header {
    height: var(--header-h);
    min-height: var(--header-h);
    padding-block: 0;
  }

  #main-header .header-container {
    min-width: 0;
  }

  #main-header .logo,
  #main-header .logo a {
    min-width: 0;
  }

  #main-header .logo a img {
    width: auto;
    max-width: min(190px, 58vw);
    height: 46px;
  }

  .mobile-menu-btn {
    display: flex;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .mobile-nav {
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    min-height: 0;
    padding: 16px var(--container-pad) max(24px, env(safe-area-inset-bottom));
  }

  .mobile-nav a {
    min-height: 48px;
    padding: 12px 16px;
  }

  .mobile-nav-section-label {
    padding-top: 18px;
  }

  .hero {
    height: min(720px, 72svh);
    min-height: 460px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: clamp(24px, 7vw, 40px) clamp(20px, 6vw, 30px);
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .hero-arrow-prev {
    left: 8px;
  }

  .hero-arrow-next {
    right: 8px;
  }

  .stats-grid,
  .events-grid,
  .other-events-flex {
    width: 100%;
    min-width: 0;
  }

  .event-card {
    min-height: 0;
    height: auto;
  }

  .card-inner {
    min-width: 0;
    padding: clamp(18px, 5vw, 24px);
  }

  .card-graphics,
  .card-details,
  .detail-group {
    min-width: 0;
  }

  .detail-value,
  .event-title-top,
  .program-content h3,
  .timeline-item .content h3 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .frame-box {
    width: min(220px, calc(100% - 42px));
    max-width: calc(100% - 42px);
  }

  .tagline {
    max-width: 45vw;
    right: max(-58px, -14vw);
  }

  .estate-hero-new,
  .strategy-banner-hero {
    height: auto !important;
    min-height: 0;
    padding: 36px 0 !important;
  }

  .estate-hero-container,
  .banner-container {
    width: 100%;
    min-width: 0;
    padding-block: 0 !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .estate-hero-left,
  .banner-left {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .estate-hero-info,
  .banner-info {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
    margin: 0 !important;
  }

  .estate-hero-info .info-group,
  .banner-info .info-group {
    min-width: 0;
  }

  .estate-hero-info .info-value,
  .banner-info .info-value {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
    overflow-wrap: anywhere;
  }

  .estate-hero-stripes,
  .banner-stripes {
    display: none !important;
  }

  .page-hr .estate-hero-new,
  .hr-hero-new {
    padding: 36px 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
  }

  .page-hr .estate-hero-container {
    height: auto !important;
    gap: 28px !important;
  }

  .page-hr .estate-hero-new .estate-hero-left {
    width: 100%;
    margin: 0 !important;
  }

  /* Removed conflicting .frame-box mobile overrides */

  .estate-intro-text,
  .event-intro-text {
    width: 100%;
    max-width: 100%;
    margin-block: 32px 56px;
    padding-inline: var(--container-pad);
    font-size: 1rem;
    text-align: left;
  }

  .estate-partners-combined,
  .hr-unified-partners,
  .partners-thanks-section,
  .strategy-intro,
  .strategy-program,
  .estate-program,
  .lastyear-section,
  .estate-other-events {
    padding-block: 56px;
  }

  .partners-main-row,
  .hr-mission-segment,
  .strategy-mission-row {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 32px;
  }

  .organizer-block,
  .partners-block,
  .hr-mission-left,
  .hr-mission-right,
  .mission-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
  }

  .partners-grid-new,
  .hr-partners-grid-4,
  .hr-partners-grid-5,
  .mission-partners-grid,
  .partners-unified-grid,
  .partners-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .page-strategy-wix .mission-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid-new .logo-item,
  .hr-grid-cell,
  .grid-cell,
  .partner-logo {
    min-width: 0;
    min-height: 104px;
    padding: 10px;
  }

  .partners-grid-new .logo-item img,
  .hr-grid-cell img,
  .grid-cell img,
  .partner-logo img {
    max-width: 100%;
    max-height: 86px;
  }

  .program-list {
    max-width: 100%;
  }

  .program-item {
    display: grid;
    grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 36px;
  }

  .program-time {
    width: auto;
    min-width: 0;
    text-align: right;
    font-size: 0.78rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }

  .section-title,
  .program-title,
  .lastyear-title,
  .thanks-title {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .lastyear-carousel {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .lastyear-arrow {
    width: 44px;
    height: 44px;
  }

  .footer-top-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-nav-col,
  .footer-contact-col {
    align-items: center;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  :root {
    --container-pad: 12px;
  }

  .mobile-nav {
    padding-inline: var(--container-pad);
  }

  .event-card .card-inner {
    padding: 16px;
  }

  .partners-grid-new,
  .hr-partners-grid-4,
  .hr-partners-grid-5,
  .mission-partners-grid,
  .partners-unified-grid,
  .partners-grid {
    gap: 16px 8px;
  }

  .page-strategy-wix .mission-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .program-list::before {
    left: 60px;
  }
}
/* Wix Style Timeline for Strategic Session */
.wix-program {
  background-color: #ebedef;
  color: #1a2332;
  padding: 60px 0;
}
.wix-program .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.wix-timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.wix-timeline-item {
  display: flex;
  position: relative;
}
.wix-time {
  width: 180px;
  flex-shrink: 0;
  padding-right: 20px;
  font-size: 1rem;
  color: #4a5568;
  padding-top: 2px;
  text-align: left;
}
.wix-content {
  flex-grow: 1;
  border-left: 1px solid #cbd5e1;
  padding-left: 40px;
  padding-bottom: 50px;
  position: relative;
}
.wix-content-last {
  border-left: 1px solid transparent; /* Hide line after last item */
}
.wix-content::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 8px;
  width: 7px;
  height: 7px;
  background-color: #1a2332;
  border-radius: 50%;
}
.wix-block {
  margin-bottom: 30px;
}
.wix-block:last-child {
  margin-bottom: 0;
}
.wix-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 8px;
}
.wix-block p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}
.wix-block p strong {
  color: #1a2332;
  font-weight: 700;
}
@media (max-width: 768px) {
  .wix-timeline-item {
    flex-direction: column;
  }
  .wix-time {
    width: 100%;
    padding-right: 0;
    padding-bottom: 15px;
  }
  .wix-content {
    border-left: 2px solid #cbd5e1;
  }
}
.wix-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: #1a2332;
  text-transform: uppercase;
  margin-bottom: 60px;
  text-align: left;
}
@media (max-width: 768px) {
  .wix-title {
    margin-bottom: 40px;
    font-size: 1.8rem;
  }
}


/* Override hero content to force 3 lines */
.hero-content {
  width: min(100%, 650px) !important;
}
.hero-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(1.1rem, 6vw, 1.4rem) !important;
  }
}
/* =========================================
   GLOBAL MOBILE OPTIMIZATION OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  /* 1. Global Spacing & Typography */
  section {
    padding: 45px 0 !important;
  }
  .section-title, .wix-title, .program-title, .thanks-title, .lastyear-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    margin-bottom: 30px !important;
    text-align: center !important;
  }

  /* 2. Heros (Subpages) */
  .estate-hero-new, .strategy-banner-hero, .hr-hero-banner {
    padding: 50px 0 !important;
  }
  .hero-title, .hr-page-main-title {
    font-size: clamp(2rem, 7vw, 2.6rem) !important;
    text-align: center !important;
  }
  .hero-info-row, .hero-info-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }
  .hero-label-group {
    align-items: center !important;
    text-align: center !important;
  }

  /* 3. Event Cards (Main Page & Other Events) */
  .events-grid, .other-events-flex {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .event-card {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  /* 4. Wix Program Timeline */
  .wix-timeline-item {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .wix-time {
    width: 100% !important;
    padding-right: 0 !important;
    padding-bottom: 5px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-align: left !important;
  }
  .wix-content {
    padding-left: 20px !important;
    border-left: 2px solid #cbd5e1 !important;
    padding-bottom: 35px !important;
  }
  .wix-content::before {
    left: -5.5px !important;
    top: 3px !important;
    width: 9px !important;
    height: 9px !important;
  }
  .wix-block h3 {
    font-size: 1.15rem !important;
  }

  /* 5. Partners Grid */
  .partners-unified-grid, .partners-grid-new, .strategy-extra-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .grid-cell {
    min-height: 90px !important;
    padding: 15px !important;
  }

  /* 6. Footer */
  .footer-top-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 40px !important;
  }
  .footer-nav-col, .footer-contact-col {
    align-items: center !important;
  }
  
  /* 7. Gallery */
  .lastyear-carousel {
    aspect-ratio: 1 / 1 !important;
  }
}
/* =========================================
   LOGO / FRAME-BOX HARD RESET (MOBILE OVERRIDES FIX)
   ========================================= */
.frame-box, 
.page-estate .frame-box, 
.page-hr .frame-box, 
.page-strategy-wix .frame-box,
.event-card .frame-box,
.hero-graphics .frame-box,
.card-graphics .frame-box {
  width: 168px !important;
  max-width: 168px !important;
  height: 88px !important;
  max-height: 88px !important;
  padding: 0 !important;
  border-width: 3px !important;
  border-top-width: 0 !important;
  border-style: solid !important;
  box-sizing: border-box !important;
}

.frame-box::before {
  left: 70px !important;
  right: -3px !important;
  height: 3px !important;
  top: -3px !important;
}

.logo-text {
  font-size: 1.85rem !important;
  top: -30px !important;
  left: 10px !important;
  text-indent: -16px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tagline {
  font-size: 0.7rem !important;
  right: 8px !important;
  bottom: 8px !important;
  white-space: pre-wrap !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right !important;
}

.year-badge, .re-badge, .st-badge, .hr-badge {
  padding: 6px 14px !important;
  font-size: 1.1rem !important;
  margin-left: 45px !important;
}





/* =========================================
   TIMELINE COLORS PER PAGE
   ========================================= */
.page-estate .wix-time { color: var(--accent-real-estate) !important; }
.page-hr .wix-time { color: var(--accent-hr) !important; }
.page-strategy-wix .wix-time { color: var(--accent-strategy) !important; }

/* ==========================================================
   UNIVERSAL PARTNERS LOGO STANDARDIZATION (REQUESTED BY USER)
   ========================================================== */
.partner-logo img,
.hr-grid-cell img,
.partners-grid-new .logo-item img,
.grid-cell img.logo-img,
.grid-cell img {
    max-height: 80px !important; height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

.partners-grid,
.hr-partners-grid-unified,
.partners-grid-new,
.mission-partners-grid,
.partners-unified-grid {
display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: center !important;
    justify-items: center !important;
    width: 100% !important;
}

.partner-logo,
.hr-grid-cell,
.partners-grid-new .logo-item,
.grid-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    width: 100% !important;
    height: 100px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
}

@media (max-width: 992px) {
    .partners-grid,
    .hr-partners-grid-unified,
    .partners-grid-new,
    .mission-partners-grid,
    .partners-unified-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .partners-grid,
    .hr-partners-grid-unified,
    .partners-grid-new,
    .mission-partners-grid,
    .partners-unified-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .partner-logo img,
    .hr-grid-cell img,
    .partners-grid-new .logo-item img,
    .grid-cell img.logo-img,
    .grid-cell img {
        height: 60px !important;
    }
    .partner-logo,
    .hr-grid-cell,
    .partners-grid-new .logo-item,
    .grid-cell {
        max-height: 80px !important; height: auto !important;
    }
}

/* Keep the HR mission statement close to the partner grid after duplicate logos are removed. */
.hr-unified-partners .hr-mission-segment + .hr-mission-segment {
    margin-top: 0;
    padding-top: 16px;
}

@media (max-width: 768px) {
    .hr-unified-partners .hr-mission-segment + .hr-mission-segment {
        padding-top: 12px;
    }
}

@media (min-width: 1025px) {
    .hr-unified-partners .container-wide {
        position: relative;
    }

    .hr-unified-partners .hr-mission-segment + .hr-mission-segment {
        position: absolute;
        top: 220px;
        left: 0;
        width: 320px;
        margin: 0;
        padding-top: 0;
    }
}


/* Strategy page specific overrides for the shared HR partners layout */
.page-strategy-wix .hr-section-label,
.page-strategy-wix .hr-mission-label {
    color: var(--accent-strategy);
}