/* TEMPLATE: CORE STYLES - Optimized Version */

/* ============================================ */
/* CSS CUSTOM PROPERTIES & GLOBAL CONFIGURATION */
/* ============================================ */
:root {
  --primary-color: #e20074;
  --primary-dark: #c4005f;
  --text-color: #717171;
  --bg-white: #ffffff;
  --max-width: 1200px;
  --transition-base: 0.3s ease;
  --border-radius: 8px;
  --shadow-light: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 24px rgba(226,0,116,0.28);
}

/* ============================================ */
/* BASE STYLES & RESETS                         */
/* ============================================ */
* { box-sizing: border-box; }

html {
  opacity: 1;
  transition: opacity 1000ms ease;
}

html.js-loading { opacity: 1; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #504f4f;
  background-color: var(--bg-white);
  visibility: visible;
  font-size: clamp(16px, 2.5vw, 18px);
}

/* ============================================ */
/* UTILITY CLASSES                              */
/* ============================================ */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.browser_width {
  width: 100%;
  max-width: 100%;
}

.verticalspacer {
  min-height: 0px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #e20074;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* ============================================ */
/* PAGE LOADING ANIMATION                       */
/* ============================================ */
#page-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-white);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(226, 0, 116, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================ */
/* HEADER                                       */
/* ============================================ */
#header {
  min-height: 119px;
  position: relative;
  background: var(--bg-white);
  z-index: 140;
  box-shadow: var(--shadow-light), 0 1.5px 0 #e0e0e0;
}

.header-container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  z-index: 146;
  width: 283px;
  position: relative;
  margin: 33px 0;
}

.logo img {
  z-index: 147;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

/* Desktop Navigation */
.desktop-nav {
  position: relative;
  z-index: 148;
  flex-grow: 1;
  text-align: left;
  padding-right: 40px;
}

.nav-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.nav-item {
  margin-right: 0;
  position: relative;
}

.nav-item a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.3s ease;
  display: block;
  border-radius: 4px;
  position: relative;
}

.nav-item a:hover,
.nav-item.active a {
  color: #e20074;
  background-color: rgba(226, 0, 116, 0.08);
}

.nav-item a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(226, 0, 116, 0.15);
}

.nav-item.active a {
  color: #e20074 !important;
  background-color: rgba(226, 0, 116, 0.12) !important;
  font-weight: 700;
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: #e20074;
  border-radius: 1px;
}

.nav-item .contact-button {
  background-color: #e20074;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
}

.nav-item .contact-button:hover {
  background-color: #c4005f;
  color: white;
}

.nav-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #bdbdbd 100%);
  margin: 0 32px;
  align-self: center;
  box-shadow: 0 0 2px rgba(0,0,0,0.10);
}

/* Navigation Loading State */
.nav-item.loading a {
  opacity: 0.6;
  pointer-events: none;
}

.nav-item.loading a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e20074;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Navigation Accessibility Improvements */
.nav-item a:focus { /* Desktop nav focus */
  outline: 2px solid #e20074;
  outline-offset: 2px;
}

/* ============================================ */
/* MOBILE NAVIGATION                            */
/* ============================================ */
.mobile-menu-button {
  display: none; /* Hidden by default, shown in media query */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #e20074;
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(226,0,116,0.18);
  position: fixed; /* Position will be further defined in responsive */
  bottom: 40px;
  right: 20px;
  z-index: 4000;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

.mobile-menu-button:hover {
  box-shadow: 0 8px 24px rgba(226,0,116,0.28);
  transform: scale(1.10);
}

.mobile-menu-button i {
  color: #fff;
  line-height: 1;
}

.mobile-menu {
  display: none; /* Hidden by default, shown by JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu-content {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  max-width: 350px;
  height: auto;
  max-height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  padding: 30px;
  overflow-y: auto;
  transform: translateY(40px) scale(0.98);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  border-radius: 18px;
  margin-bottom: 15%;
}

.mobile-menu.open .mobile-menu-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-menu-logo {
  text-align: center;
  margin-bottom: 30px;
}

.mobile-logo {
  max-width: 200px;
  height: auto;
}

.mobile-menu-heading {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #717171;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 10px;
}

.mobile-nav-items {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-item a {
  text-decoration: none;
  color: #717171;
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 600;
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s ease;
}

.mobile-nav-item a:hover,
.mobile-nav-item.active a,
.mobile-nav-item a:active,
.mobile-nav-item a:focus {
  color: #e20074;
  font-weight: 700;
  padding-left: 3px;
  background: rgba(226, 0, 116, 0.08);
  border-radius: 4px;
  outline: 2px solid #e20074; /* Focus style for mobile */
  outline-offset: 2px;
}

.mobile-menu-contact {
  margin-top: 30px;
}

.mobile-menu-contact p {
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.5;
  color: #717171;
  margin: 0 0 10px;
}

.mobile-menu-contact a {
  color: #717171;
  text-decoration: none;
}

.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-close-btn i {
  color: #717171;
}

/* ============================================ */
/* HERO SECTION                                 */
/* ============================================ */
#hero {
  position: relative;
  z-index: 2;
  width: 100vw;
  min-height: 600px;
  overflow: visible;
  margin: 0;
  margin-bottom: 60px;
  padding: 0;
  padding-bottom: 100px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 50%;
  right: 0;
  width: 100vw;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

/* Image Slider */
.hero-slideshow-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  overflow: visible;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slider-controls-container {
  position: relative;
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  width: 100%;
  min-height: 60px;
  margin-top: clamp(15px, 3vw, 25px);
  padding: 0 20px;
}

.slider-control {
  width: clamp(38px, 8vw, 50px);
  height: clamp(38px, 8vw, 50px);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: transform 0.2s ease;
  font-size: clamp(14px, 3vw, 18px);
  flex-shrink: 0;
}

.slider-control:active {
  transform: scale(0.95);
}

.slide-indicator {
  display: none;
}

/* Hero Content */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 10;
}

#page-title {
  max-width: 650px;
}
#page-title-text {
  display: inline-block;
  color: white;
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.3;
  margin: 0;
  background-color: #e2007565;
  padding: 10px 15px;
  border-radius: 8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#page-subtitle-text {
  display: inline-block;
  color: white;
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.3;
  margin: 0;
  background-color: #003ec485;
  padding: 10px 15px;
  border-radius: 8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles for Hero & Slider */
@media (min-width: 1200px) { /* Desktop Large */
  .hero-slideshow-container {
    max-width: 80%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

@media (min-width: 961px) and (max-width: 1199px) { /* Desktop Medium */
  .hero-slideshow-container {
    max-width: 90%;
    max-height: 94%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
}

@media (min-width: 769px) and (max-width: 960px) { /* Tablet */
  .hero-slideshow-container {
    max-width: 96%;
    max-height: 96%;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  }
}

@media (min-width: 481px) and (max-width: 768px) { /* Mobile Large */
  .hero-slideshow-container {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0;
    box-shadow: none;
  }
  .slider-controls-container {
    margin-top: clamp(10px, 2vw, 15px);
    padding: 0 15px;
  }
}

@media (max-width: 480px) { /* Mobile Small */
  .hero-slideshow-container {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0;
    box-shadow: none;
  }
  .slider-controls-container {
    margin-top: clamp(8px, 1.5vw, 12px);
    padding: 0 10px;
  }
}

/* ============================================ */
/* MAIN CONTENT AREA                            */
/* ============================================ */
#content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.main-content {
  margin-bottom: 60px;
}

/* Headings */
.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(22px, 4.5vw, 28px);
  color: hsla(212, 100%, 44%, 0.925);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 0.3em;
}

.section-heading h2::after {
  content: "";
  display: block;
  height: 3px;
  background: #717171;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.section-heading h2 hr { /* This hr seems to be an alternative underline style */
  border: none;
  height: 3px;
  background-color: #717171;
  margin: 10px 0 0 0;
  width: 50%;
}

.subsection-heading { /* Consolidated from .subsection-heading and .sub-heading */
  font-size: clamp(18px, 3.5vw, 22px);
  color: #005c99;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 4px solid #e20074;
  padding-left: 12px;
  background: linear-gradient(90deg, #e2007412 0%, #fff 100%);
  border-radius: 4px;
  display: block;
}

.section-heading-footer h2 { /* Used in footer context */
  font-size: clamp(14px, 2.8vw, 16px);
  color: #e20074;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 0;
}

/* Special styling for partners sections (headings) */
#partners-section .section-heading h2,
#merit-partners-section .section-heading h2 {
  font-size: clamp(14px, 2.8vw, 16px);
  color: #e20074;
}

/* Content Elements */
.content-paragraph {
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.6;
  margin-bottom: 20px;
  color: #504f4f;
}

.feature-list {
  list-style-type: disc;
  padding-left: 25px;
  font-size: clamp(14px, 2.2vw, 16px);
  color: #717171;
  margin-bottom: 18px;
}

.feature-list li {
  margin-bottom: 15px;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li i {
  margin-right: 8px;
  margin-top: 2px;
  width: 16px;
  text-align: center;
  color: #e20074;
  flex-shrink: 0;
}

.feature-sublist {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 10px;
}

.feature-sublist li {
  font-size: clamp(13px, 2.1vw, 15px);
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}

.link-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.link-list li {
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.6;
  margin-bottom: 12px;
  color: #504f4f;
  position: relative;
  padding-left: 20px;
}

.link-list li::before {
  content: "📖";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}

.link-list li a {
  color: #e20074;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-list li a:hover {
  color: #c4005f;
  text-decoration: underline;
}

.link-list li em {
  font-style: italic;
  font-weight: 500;
}

.link-list li i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  color: #e20074;
}

.subsection-category {
  background: #faf7fa;
  border-left: 2px solid #e20074;
  border-radius: 6px;
  padding: 18px 18px 12px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(226,0,116,0.04);
}

/* ============================================ */
/* PARTNERS SECTION                             */
/* ============================================ */
#partners-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;
  position: relative;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.partner-logo {
  display: block;
  transition: opacity 0.3s ease;
  text-align: center;
}

.partner-logo:hover {
  opacity: 0.8;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* Specific max-widths for each partner logo */
.partner-logo[href="https://wood.carpol.pl/"] img { max-width: 200px; }
.partner-logo[href="https://klaromed.pl"] img { max-width: 200px; }
.partner-logo[href="https://besa24.pl"] img { max-width: 100px; }
.partner-logo[href="https://consido.pl"] img { max-width: 185px; }
.partner-logo[href="https://dcd-lab.pl"] img { max-width: 155px; }
.partner-logo[href="https://daito.com.pl"] img { max-width: 135px; }
.partner-logo[href="https://denios.pl"] img { max-width: 160px; }
.partner-logo[href="https://www.atwork.pl/"] img { max-width: 150px; }
.partner-logo[href="http://polandscape.pl"] img { max-width: 115px; }

/* ============================================ */
/* MERIT PARTNERS SECTION                       */
/* ============================================ */
#merit-partners-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 40px;
}

.merit-partners {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.merit-partner {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
}

.merit-partner a {
  display: block;
  max-width: 200px;
  flex-shrink: 0;
}

.merit-partner img {
  max-width: 100%;
  height: auto;
}

.merit-partner p {
  line-height: 1.5;
  font-size: 15px;
  color: #504f4f;
  margin: 0;
  flex-grow: 1;
}

/* ============================================ */
/* AVATAR STYLES - Unified System               */
/* ============================================ */
/* Avatar Containers */
.presenter-avatars-section,
.presenter-avatars {
  margin: 40px 0;
}

/* Grid layout for larger screens (>960px) */
@media (min-width: 961px) {
  .presenter-avatars-section,
  .presenter-avatars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: center;
    justify-items: center; /* Center items horizontally in their grid cells */
  }
  /* Center the grid itself if there are fewer than 3 items */
  .presenter-avatars-section:has(> :nth-child(1):nth-last-child(1)),
  .presenter-avatars-section:has(> :nth-child(2):nth-last-child(1)),
  .presenter-avatars:has(> :nth-child(1):nth-last-child(1)),
  .presenter-avatars:has(> :nth-child(2):nth-last-child(1)) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
  }
}

/* Flex layout for smaller screens (<=960px) */
@media (max-width: 960px) {
  .presenter-avatars-section,
  .presenter-avatars {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* Avatar Cards - Unified styling for both structures */
.presenter-avatar-card,
.avatar-card {
  border: 1px solid #EDEDED;
  border-radius: var(--border-radius);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
  min-width: 200px;
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid-specific adjustments for larger screens */
@media (min-width: 961px) {
  .presenter-avatar-card,
  .avatar-card {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

/* Flex-specific adjustments for smaller screens */
@media (max-width: 960px) {
  .presenter-avatar-card,
  .avatar-card {
    flex: 1;
  }
}

/* Specific adjustments for presenter-avatar-card structure */
.presenter-avatar-card {
  padding-bottom: 20px;
}

.avatar-card {
  padding: 20px;
}

/* Hover Effects */
.presenter-avatar-card:hover,
.avatar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background-color: #F0F7FD;
}

/* Avatar Images - Unified styling */
.avatar-image,
.avatar-card .avatar-image {
  width: 150px;
  height: 150px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f0f0f0;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  margin: 0 auto 20px auto;
  flex-shrink: 0;
}

/* Avatar Container (for presenter-avatar-card structure) */
.avatar-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.avatar-container .avatar-image {
  margin: 0; /* Override default margin for this structure */
}

/* Avatar Info Section */
.avatar-info {
  text-align: center;
  padding: 0 20px;
  color: #073F4D;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

/* Avatar Text Styling - Unified */
.presenter-name,
.avatar-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #073F4D;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
}

.presenter-title,
.avatar-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
  word-wrap: break-word;
  hyphens: auto;
}

/* Avatar Links - Unified and Simplified */
.avatar-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color var(--transition-base);
  margin-top: auto;
  padding-top: 10px;
  display: block;
}

/* For the presenter-avatar-card structure */
.presenter-avatar-card .avatar-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.presenter-avatar-card .avatar-link:hover {
  color: inherit;
}

/* For the avatar-card structure */
.avatar-card .avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-card .avatar-link:hover {
  color: #073F4D;
}

/* Simple arrow without complex animation */
.avatar-link i {
  margin-left: 5px;
  font-size: 12px;
}

/* More Link Section (simplified without problematic arrow) */
.avatar-more {
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  padding-top: 10px;
}

/* Responsive Avatar Styles */
@media (max-width: 600px) {
  .presenter-avatars-section,
  .presenter-avatars {
    flex-direction: column;
    align-items: center;
  }
  .presenter-avatar-card,
  .avatar-card {
    max-width: 100%;
    width: 100%;
    min-width: 280px;
  }
  .avatar-image,
  .avatar-card .avatar-image {
    width: 120px;
    height: 120px;
  }
  .avatar-info {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .presenter-avatars-section,
  .presenter-avatars {
    gap: 20px;
    margin: 30px 0;
  }
  .presenter-avatar-card,
  .avatar-card {
    min-width: 250px;
  }
  .avatar-image,
  .avatar-card .avatar-image {
    width: 100px;
    height: 100px;
  }
}

/* ============================================ */
/* YOUTUBE LINK                                 */
/* ============================================ */
.youtube-link {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.youtube-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white !important;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: clamp(16px, 2.5vw, 18px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

.youtube-link a i {
  color: white !important;
  font-size: 18px;
}

.youtube-link a:hover {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.35);
}

.youtube-link a:hover i {
  color: white !important;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
#site-footer {
  background-color: transparent;
  color: #717171;
  padding: 20px;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.footer-info {
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-info p {
  margin: 5px 0;
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.6;
  color: #717171;
}

.footer-info a {
  color: #717171;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: #e20074;
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.social-links a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #e20074;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #c4005f;
}

.copyright {
  font-size: clamp(12px, 2vw, 14px);
  opacity: 0.8;
  margin-top: 20px;
  color: #717171;
}

/* ============================================ */
/* RESPONSIVE STYLES - GENERAL & OVERRIDES      */
/* ============================================ */

/* Header adjustments for medium desktops (tablet-like layout for nav) */
@media (min-width: 961px) and (max-width: 1280px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .logo {
    margin: 24px auto 0 auto;
    display: block;
  }
  .desktop-nav {
    width: 100%;
    text-align: center;
    padding-right: 0;
    margin-top: 12px;
  }
  .nav-items {
    justify-content: center;
  }
  .nav-divider {
    display: none; /* Explicitly hide */
  }
}

/* Tablet and Mobile General Overrides */
@media (max-width: 960px) {
  /* Navigation Hiding/Showing */
  .desktop-nav { display: none; }
  .nav-divider { display: none; }
  .mobile-menu-button { display: flex; } /* Show mobile button */

  /* Header Structure */
  #header { min-height: 80px; }
  .logo { width: 220px; margin: 18px auto; }
  .logo img { max-width: 220px; }
  .header-container {
    padding: 10px 20px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  /* #navigation-container rule was present, target might exist in HTML */
  #navigation-container {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 2;
  }

  /* Mobile Menu Button Position */
  .mobile-menu-button {
    position: fixed;
    bottom: 20px;
    right: 15px;
    z-index: 200000;
  }

  /* Hero Adjustments */
  .hero-background { background-position: center center; }
  #hero { min-height: 400px; padding-bottom: 60px; margin-bottom: 40px; }
  .hero-content { padding: 40px 20px; }

  /* Partners Grid */
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* Content Padding/Margins - Applied as a group in original */
  .main-content,
  .section-heading,
  .feature-list,
  .content-paragraph,
  .footer-info,
  .social-links,
  .copyright,
  .merit-partner p {
    margin-left: 20px;
    margin-right: 20px;
  }

  #content-container,
  #partners-section,
  #merit-partners-section {
    padding: 10px; /* Reduced padding for these containers */
  }

  /* Merit Partner Layout */
  .merit-partner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 0%; /* explicit reset */
  }
  .merit-partner a { margin: 0; margin-left: 0; text-align: left; }
  .merit-partner img { display: block; margin-left: 0; text-align: left; }

  /* Footer Alignment */
  #site-footer { text-align: left; }
  .social-links { justify-content: flex-start; }

  /* Nav Active State Adjustment */
  .nav-item.active a::after { display: none; } /* Hide desktop active underline */
}

/* Further adjustments for smaller tablets/large phones */
@media (max-width: 768px) {
  #header { min-height: 70px; }
  .logo { width: 200px; margin: 15px auto; }
  .logo img { max-width: 200px; }

  #hero { min-height: 350px; padding-bottom: 50px; margin-bottom: 30px; }
  .hero-content { padding: 30px 20px; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .merit-partners { gap: 30px; }
  .social-links a { width: 36px; height: 36px; font-size: 18px; }
}

/* Small Mobile Phones */
@media (max-width: 550px) {
  html, body { overflow-x: hidden; } /* Prevent horizontal scroll */

  #header { min-height: 60px; }
  .logo { width: 180px; margin: 12px auto; }
  .logo img { max-width: 180px; }

  #hero { min-height: 50vh; padding-bottom: 40px; margin-bottom: 20px; }
  .hero-content { padding: 20px; }

  .partners-grid { grid-template-columns: repeat(1, 1fr); gap: 25px; }
  .partner-logo img { max-width: 90%; max-height: 60px; }

  .merit-partner { width: 100%; }
  .social-links a { width: 32px; height: 32px; font-size: 16px; }
}

/* SPACER - Original comment preserved, no rules associated */
/* Original RESPONSIVE STYLES comment block - styles now integrated or in general block above */ 