/* === Responsive Styles === */
@media (max-width: 1024px) {
  .container {
    padding: 30px 20px;
  }

  .committee-grid,
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .side-menu {
    width: 100%;
    height: 100vh;
    padding: 40px 20px;
  }

  /* Hero - NOTE: include both .hero-section (if used) and .hero (your HTML) */
  .hero-section,
  .hero {
    /* Increased top padding to move H1/P lines lower on small screens */
    padding: 56px 20px 20px;
    padding-top: 100px;
    text-align: center;
    
  }

  .hero h1,
  .hero-section h1 {
    margin-top: 0;
    margin-bottom: 12px;
    /* keep readable size on tablet/mobile */
    font-size: 24px;
    line-height: 1.2;
  }

  .hero p,
  .hero-section p {
    margin-top: 10px;
    margin-bottom: 0;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;           /* tugmalar orasidagi masofa */
    margin-top: 18px;    /* kichik bo'shliq H1/P va tugmalar orasida */
    padding-top: 0;
  }

  .btn-solid,
  .btn-link {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

  /* Stat Cards */
  .stat-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  /* Zoom Block */
  .zoom-block {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .right-col img {
    width: 100%;
    height: auto;
  }

  /* Committee & Speakers */
  .committee-grid,
  .speakers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 0 10px;
  }

  .footer-col {
    min-width: 100%;
  }



  .footer-logo {
    width: auto;
    height: auto;
  }
}

@media (max-width: 500px) {

/* .logos1{
  width: auto;
  border: 5px solid black;
} */

  /* hide some logos on very small screens */
  .logos a:nth-child(2) { display: none; }
  .logos a:nth-child(3) { display: none; }

  .btn-solid,
  .btn-link {
    font-size: 15px;
    padding: 12px;
  }

  .hero-buttons {
    width: 70%;
    gap: 10px;
    margin-top: 14px;
  }

  /* push hero content a bit lower on very small screens */
  .hero-section,
  .hero {
    position: static; /* default */
    padding-top: 140px; /* kerak bo'lsa 150px qilib ko'ring */
    text-align: center;
    z-index: 1; /* logolardan past bo‘lib qolmasligi uchun */
  }

  .hero h1,
  .hero-section h1 {
    padding-top: 100px;
    position: static;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px; /* yanada o'qilishi qulayroq kattalik */
    line-height: 1.15;
    /* z-index: 1; */
  }

  .hero p,
  .hero-section p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 14px;
  }

  .stat-card h3 {
    font-size: 18px;
  }

  .committee-grid,
  .speakers-grid {
    gap: 20px;
  }

  

  .footer-container {
    gap: 20px;
  }

  /* === Flattened / corrected nested rules from original file for mobile === */
  .committee {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .committee .committee-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto;
    width: 100%;
    height: auto;
  }
  .committee .member {
    width: 100%;
    height: auto;
    margin: 5px 5px;
    padding: 16px;
  }
  .committee .member .content img {
    width: 90%;
    padding: 0;
    margin: 0;
  }

  .speakers-section {
    width: 100%;
  }
  .speakers-section .speakers-grid {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto;
    padding: 0;
    margin: 0;
  }
  .speakers-section .speaker-card {
    width: 100%;
    height: 100%;
  }

  .zoom-block {
    width: 100%;
    height: auto;
  }
  .zoom-block .right-col {
    display: grid;
    grid-template-columns: auto;
    width: 80%;
    height: 100%;
    padding: 0;
    margin: 0;
  }
  .zoom-block .right-col img {
    padding: 10px;
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .layout {
    width: 100% !important;
    height: auto;
  }
  .layout .big-card {
    width: 100%;
  }
  .layout .big-card .payment-section {
    display: grid;
    grid-template-columns: auto;
    width: 100%;
  }
  .layout .big-card .payment-section .payment-card {
    width: 100%;
  }

  #cookie-banner {
    width: 100%;
    border: 5px solid black;
  }

  .member-info {
    font-size: 13px;
  }
}

/* === Global Responsive Reset === */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* === Section Title === */
section h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

@media (max-width: 768px) {
  section h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* === Committee Section === */
.committee {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
}

.member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
}

.member strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
}

.member-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.member-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.member-info {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  padding: 0 10px;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  .committee-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .member-image img {
    max-width: 220px;
  }

  .member-info {
    font-size: 14px;
  }

  .member strong {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .member-info {
    font-size: 13px;
  }

  .committee-grid {
    gap: 20px;
  }

  .member {
    padding: 16px;
  }
}

/* === Additional helpers for spacing & hero adjustments === */

/* Ensure buttons inside hero have no extra margins */
.hero-buttons .btn,
.hero-buttons a,
.hero-buttons button {
  margin: 0;
  box-sizing: border-box;
}

/* A small utility stack (if you want uniform vertical spacing elsewhere) */
.stack { --space: 12px; }
.stack > * + * { margin-top: var(--space); }

/* If you need to target the caption under images (as previously discussed) */
.publication-block {
  text-align: center;
}
.publication-block img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.publication-block .caption {
  margin-top: 8px;
  font-weight: 600;
}


/* End of file */
