/* ==========================================================================
   IIPM Modern Theme - Master Stylesheet
   Instytut Innowacji Przemysłu Mleczarskiego Sp. z o.o.
   ========================================================================== */

:root {
  --primary-900: #07172C;
  --primary-800: #0B2545;
  --primary-700: #13315C;
  --primary-600: #134074;
  --primary-500: #1D5897;
  
  --accent-600: #0077B6;
  --accent-500: #0096C7;
  --accent-400: #48CAE4;
  --accent-50:  #E0F2FE;

  --success-600: #16A34A;
  --success-50:  #DCFCE7;

  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1300px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 105px; /* Offset for sticky header */
  -webkit-font-smoothing: antialiased;
}

/* Smooth anchor target scrolling */
section[id], div[id] {
  scroll-margin-top: 105px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-500);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-900);
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-900);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--slate-300);
  color: var(--slate-700);
}

.btn-outline-dark:hover {
  border-color: var(--primary-700);
  color: var(--primary-700);
  background-color: var(--white);
}

/* ==========================================================================
   Header & Top Utility Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.top-bar {
  background-color: var(--primary-900);
  color: var(--slate-300);
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--slate-300);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar a:hover {
  color: var(--accent-400);
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.25);
}

.lang-btn.active {
  background-color: var(--accent-500);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

/* Main Navigation Bar */
.main-nav-bar {
  padding: 0.75rem 0;
  background-color: var(--white);
}

.main-nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Title & Balanced Spacing */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-right: 2.25rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 50px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  white-space: nowrap;
}

/* Nav Menu: No Wrapping for "O Instytucie" or items */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.75rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  transition: var(--transition);
  white-space: nowrap; /* Prevents "O Instytucie" splitting into two rows */
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-600);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  color: var(--slate-400);
  flex-shrink: 0;
}

.has-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-600);
}

/* Navigation Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  white-space: normal;
}

.dropdown-menu a:hover {
  background-color: var(--slate-50);
  color: var(--accent-600);
  border-left-color: var(--accent-500);
  padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--primary-900);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
  color: var(--white);
  padding: 4.5rem 0 5.5rem 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-400);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--slate-200);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Badges Grid Section */
.badges-section {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 3rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.badge-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: var(--transition);
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-400);
}

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-50);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.badge-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.badge-info p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* ==========================================================================
   News Carousel Section
   ========================================================================== */
.news-carousel-wrapper {
  position: relative;
  margin-top: 1rem;
}

.news-carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.news-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.news-carousel-track::-webkit-scrollbar-track {
  background: var(--slate-100);
  border-radius: var(--radius-full);
}

.news-carousel-track::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: var(--radius-full);
}

.news-carousel-track .news-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 320px;
  scroll-snap-align: start;
}

.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-sm);
  color: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-nav-btn:hover {
  background: var(--primary-800);
  color: var(--white);
  border-color: var(--primary-800);
  transform: scale(1.05);
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--accent-50);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.division-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-500);
}

.division-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.division-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.division-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* News Cards */
.news-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

.news-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--slate-100);
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.news-category-badge {
  background-color: var(--accent-50);
  color: var(--accent-600);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Entry Content (Images & Typography in Posts) */
.entry-content {
  color: var(--slate-800);
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem auto;
  display: block;
  box-shadow: var(--shadow-sm);
}

.entry-content figure {
  margin: 2rem 0;
  text-align: center;
}

.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

/* Management / Person Card */
.person-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.person-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-500);
}

.person-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--accent-50);
  flex-shrink: 0;
}

.person-role {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.person-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.person-contact {
  font-size: 0.85rem;
  color: var(--slate-600);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.person-contact a {
  color: var(--slate-700);
}

.person-contact a:hover {
  color: var(--accent-600);
}

/* Reference Materials Table */
.data-table-wrapper {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: var(--primary-800);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.95rem;
  color: var(--slate-700);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: var(--slate-50);
}

/* Partners Logo Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.partner-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-2px);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
}

.partner-item img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(80%);
  opacity: 0.85;
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Cards */
.contact-location-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-location-card:hover {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
}

.location-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.location-detail {
  font-size: 0.9rem;
  color: var(--slate-600);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-800);
  background-color: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-900);
  color: var(--slate-300);
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--slate-300);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--accent-400);
  transform: translateX(3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--slate-400);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .brand-wrapper {
    margin-right: 1.5rem;
  }
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.885rem;
  }
  .news-carousel-track .news-card {
    flex: 0 0 calc(50% - 0.75rem);
    min-width: 290px;
  }
}

@media (max-width: 900px) {
  .top-bar-left, .top-bar-right {
    justify-content: center;
    width: 100%;
  }
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  .brand-wrapper {
    margin-right: 0;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--slate-200);
    gap: 0.75rem;
  }
  .nav-menu.is-active {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    background-color: var(--slate-50);
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .person-card {
    flex-direction: column;
    text-align: center;
  }
  .news-carousel-track .news-card {
    flex: 0 0 85%;
    min-width: 260px;
  }
}
