:root {
  /* Primary Colors */
  --primary-color: #5a5aff;
  --primary-gradient-start: #2e7bff;
  --primary-gradient-end: #7a3cff;
  /* Text Colors */
  --text-dark: #111;
  --text-body: #333;
  /* Background */
  --bg-light: #ffffff;
  --bg-gradient: linear-gradient(180deg, #ebf0f6 0%, #eceff8 100%);
  /* Shadow */
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  /* Font Sizes */
  --heading-size: 40px;
  --paragraph-size: 18px;
  /* Spacing */
  --gap-large: 50px;
  --gap-medium: 30px;
  --gap-small: 12px;
  /* Border Radius */
  --border-radius: 6px;
  --image-radius: 12px;
}

body {
  margin: 0;
  /* font-family: 'Arial', sans-serif; */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.ai-day-section {
  padding: 0px 20px;
  background: var(--bg-gradient);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 130px;
  gap: var(--gap-large);
  /* background-color: #ebf0f6; */
}

.content {
  flex: 1.5;
  content: 1;
  background-image: url("images/logos/new/002.png");
  background-size: cover;
}

.logos {
  margin-top: 20px;
  display: none;
  /* display: flex; */
  align-items: center;
  gap: var(--gap-medium);
}

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

.heading {
  font-size: 48px;
  ;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--gap-medium);
  line-height: 1.4;
}

.heading span {
  color: var(--primary-color);
  display: block;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: var(--gap-medium);
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--gap-small);
  font-size: var(--paragraph-size);
  color: var(--text-body);
}

.event-item div {
  margin-right: 30px;
}

.event-item i {
  font-size: 20px;
  color: var(--primary-color);
}

.event-item span {
  font-weight: 600;
}

.btn-apply {
  padding: 12px 30px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-apply:hover {
  background: linear-gradient(to right, #1e5fe0, #682bf5);
}

.image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ai-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--image-radius);
  box-shadow: var(--box-shadow);
}

.hero-form-wrapper {
  flex: 1;
  order: 2;
  display: flex;
  justify-content: center;
}

.hero-registration-form {
  /* margin-top: 200px; */
  height: 650px;
  background: #fff;
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hero-form-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.hero-registration-form input[type="text"],
.hero-registration-form input[type="tel"],
.hero-registration-form input[type="email"] {
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease;
}

.hero-registration-form input:focus {
  border-color: var(--primary-color);
}

.hero-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 5px;
}

.hero-form-check input {
  margin-top: 3px;
}

.hero-btn-register {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-btn-register:hover {
  background: linear-gradient(to right, #1e5fe0, #682bf5);
}

/* Media Queries */

@media (max-width: 1024px) {
  .container {
    gap: var(--gap-medium);
  }

  .heading {
    font-size: 36px;
  }

  .ai-image {
    max-width: 400px;
  }

  .ai-day-section {
    padding: 1px 20px 80px;
    /* a bit more top padding under navbar */
    text-align: center;
  }

  /* Stack hero content + form vertically on tablets */
  .ai-day-section .container {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-medium);
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
  }

  .event-details {
    align-items: center;
  }

  .hero-form-wrapper {
    width: 100%;
    justify-content: center;
    order: 2;
    /* keep form below content if needed */
  }

  .hero-registration-form {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .heading {
    font-size: 36px;
  }
}


@media (max-width: 768px) {
  .ai-day-section {
    padding: 80px 20px;
    text-align: center;
  }

  .container {
    flex-direction: column;
    gap: var(--gap-medium);
    padding: 0;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
  }

  .logos {
    display: flex;
    justify-content: center;
  }

  .cogent-logo {
    display: none;
  }

  .heading {
    font-size: 32px;
    text-align: center;
  }

  .event-details {
    align-items: center;
  }

  .image-wrapper {
    margin-bottom: var(--gap-medium);
  }

  .ai-image {
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .ai-day-section {
    padding: 60px 15px;
  }

  .heading {
    font-size: 28px;
  }

  .logos {
    flex-direction: column;
    gap: var(--gap-small);
  }

  /* .logo {
    height: 35px;
  } */

  .event-item {
    font-size: 16px;
  }

  .ai-image {
    max-width: 280px;
  }
}

@media (max-width: 375px) {
  .heading {
    font-size: 24px;
  }

  .event-item {
    font-size: 14px;
  }

  .btn-apply {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* ######################################## Overview Section ######################################## */
.overview-section {
  padding: 30px 20px;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  text-align: center;
}

/* .overview-container {
  max-width: 1200px;
} */

.overview-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--gap-medium);
}

.overview-paragraphs {
  margin-top: 5px;
}

.overview-paragraph {
  font-size: var(--paragraph-size);
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Media Queries for Overview Section */
@media (max-width: 1024px) {
  .overview-section {
    padding: 70px 20px;
  }

  /* .overview-container {
    max-width: 700px;
  } */

  .overview-heading {
    font-size: 28px;
  }

  .overview-paragraph {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .overview-section {
    padding: 60px 20px;
  }

  /* .overview-container {
    max-width: 600px;
  } */

  .overview-heading {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .overview-paragraph {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
}

@media (max-width: 600px) {
  .overview-section {
    padding: 50px 15px;
  }

  .overview-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .overview-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .overview-paragraph {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .overview-section {
    padding: 40px 12px;
  }

  .overview-heading {
    font-size: 22px;
  }

  .overview-paragraph {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
}

/* ######################################## Why Attend Section ######################################## */
.why-attend-section {
  padding: 30px 20px;
}

.why-attend-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-attend-heading {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 60px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-medium);
}

@media screen and (min-width:1200px) {
  .card-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px;
  }

}

.attend-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: var(--primary-color) 1px solid;
  /* box-shadow: var(--box-shadow); */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.card-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Media Queries for Why Attend Section */
@media (max-width: 1200px) {
  .why-attend-container {
    max-width: 1000px;
  }
}

@media (max-width: 1024px) {
  .why-attend-heading {
    font-size: 28px;
  }

  .card-grid {
    gap: 25px;
  }

  .attend-card {
    padding: 25px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .why-attend-section {
    padding: 60px 20px;
  }

  .why-attend-heading {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .attend-card {
    padding: 20px;
  }

  .card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .why-attend-section {
    padding: 50px 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
  }

  .attend-card {
    padding: 25px 20px;
  }

  .card-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .card-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .why-attend-heading {
    font-size: 24px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
}

@media (max-width: 375px) {
  .why-attend-section {
    padding: 40px 12px;
  }

  .why-attend-heading {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .card-grid {
    gap: 12px;
  }
}

/* ######################################## Agenda Section ######################################## */
.agenda-section {
  padding: 40px 20px;
}

.agenda-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.agenda-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--gap-medium);
}

.agenda-timeline {
  position: relative;
  padding-left: 30px;
  text-align: left;
}

.agenda-timeline::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 5px;
}

.timeline-content {
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.timeline-speaker {
  font-size: 14px;
  color: var(--text-body);
}

/* Media Queries for Agenda Section */
@media (max-width: 900px) {
  .agenda-container {
    max-width: 700px;
  }

  .agenda-heading {
    font-size: 28px;
  }

  .timeline-title {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .agenda-section {
    padding: 60px 20px;
  }

  .agenda-container {
    max-width: 600px;
  }

  .agenda-timeline {
    padding-left: 25px;
  }

  .agenda-timeline::before {
    left: 35px;
  }

  .timeline-dot {
    left: 5px;
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 12px 18px;
  }
}

@media (max-width: 600px) {
  .agenda-section {
    padding: 50px 15px;
  }

  .agenda-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .agenda-heading {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .agenda-timeline {
    padding-left: 20px;
  }

  .agenda-timeline::before {
    left: 27px;
  }

  .timeline-dot {
    left: 3px;
    width: 12px;
    height: 12px;
  }

  .timeline-title {
    font-size: 16px;
  }

  .timeline-speaker {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .agenda-section {
    padding: 40px 12px;
  }

  .agenda-heading {
    font-size: 24px;
  }

  .agenda-timeline::before {
    left: 26px;
  }

  .timeline-dot {
    left: 2px;
    width: 10px;
    height: 10px;
  }

  .timeline-content {
    padding: 10px 15px;
  }

  .timeline-item {
    margin-bottom: 25px;
  }
}

@media (max-width: 375px) {
  .agenda-heading {
    font-size: 22px;
  }

  .timeline-title {
    font-size: 15px;
  }

  .timeline-speaker {
    font-size: 12px;
  }
}

/* ######################################## Register Section ######################################## */
.registration-section {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.registration-container {
  max-width: 700px;
  width: 100%;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.registration-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--gap-medium);
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group input {
  flex: 1;
  padding: 12px 15px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.form-check input {
  margin-top: 3px;
}

.btn-register {
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-register:hover {
  background: linear-gradient(to right, #1e5fe0, #682bf5);
}

/* Media Queries for Registration Section */
@media (max-width: 768px) {
  .registration-section {
    padding: 60px 20px;
  }

  .registration-container {
    padding: 30px;
  }

  .registration-heading {
    font-size: 28px;
  }

  .form-group {
    gap: 15px;
  }

  .btn-register {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .registration-section {
    padding: 50px 15px;
    align-items: flex-start;
  }

  .registration-container {
    padding: 25px;
  }

  .registration-heading {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .registration-form {
    gap: 15px;
  }

  .form-group {
    flex-direction: column;
    gap: 15px;
  }

  .form-group input {
    width: 90%;
    flex: none;
  }

  .form-check {
    font-size: 13px;
  }

  .btn-register {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .registration-section {
    padding: 40px 12px;
  }

  .registration-container {
    padding: 20px;
    border-radius: 10px;
  }

  .registration-heading {
    font-size: 24px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 12px;
  }

  .btn-register {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .registration-heading {
    font-size: 22px;
  }

  .form-check {
    font-size: 12px;
    line-height: 1.4;
  }

  .form-check input {
    margin-top: 5px;
  }
}

/* ######################################## About Company ######################################## */
.company-info-section {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;

  background: #fff;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.company-info-container {
  background: #fff;
  color: var(--text-dark);
  padding: 40px 30px;
  max-width: 1200px;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--primary-color);
}

.company-badge {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 16px;
}

.company-description {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Media Queries for Company Info Section */
@media (max-width: 900px) {
  .company-info-container {
    max-width: 700px;
    padding: 35px 25px;
  }

  .company-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .company-info-section {
    padding: 50px 20px;
  }

  .company-info-container {
    max-width: 600px;
    padding: 30px 25px;
  }

  .company-badge {
    font-size: 15px;
    padding: 7px 18px;
  }

  .company-description {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 600px) {
  .company-info-section {
    padding: 40px 15px;
  }

  .company-info-container {
    max-width: 100%;
    margin: 0 15px;
    padding: 25px 20px;
  }

  .company-badge {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .company-info-section {
    padding: 30px 12px;
  }

  .company-info-container {
    padding: 20px 15px;
    border-radius: 10px;
  }

  .company-badge {
    font-size: 14px;
    padding: 6px 15px;
  }

  .company-description {
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .company-info-container {
    padding: 18px 12px;
  }

  .company-description {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* ######################################## Navbar ######################################## */
.navbar {
  background: var(--bg-light);
  /* padding: 15px 30px; */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-item {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
}

.nav-item.active::after,
.nav-item:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-gradient-start), var(--primary-gradient-end));
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* .cogent-logo {
  border: 1px solid red;
} */

.cogent-logo img {
  width: 420px;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-container {
    max-width: 780px;
  }

  .cogent-logo {
    max-width: 400px;
    margin-top: 0.8vh;
    padding: 0 20px;
  }

  .cogent-logo img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--bg-light);
    position: absolute;
    top: 60px;
    right: 30px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 200px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .cogent-logo {
    width: 100px;
  }
}

/* Spaker Section */


.speakers-section {
  background: var(--bg-light);
  /* padding: var(--gap-large) var(--gap-small); */
  padding: 0;
}

.speakers-container {
  max-width: 1400px;
  margin: 0 auto;
}

.speakers-heading {
  font-size: clamp(28px, 3.6vw, var(--heading-size));
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: 0px;
  margin-bottom: var(--gap-medium);
  color: var(--primary-color);
}

/* Grid */
.speakers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* centers the last row */
  gap: var(--gap-medium);
}

@media (min-width: 640px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .speakers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card */
.speaker-card {
  flex: 0 0 280px;
  /* fixed track width */
  max-width: 100%;
  background: var(--bg-light);
  border: 1px solid #eef0f3;
  border-radius: var(--image-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.speaker-photo-wrap {
  aspect-ratio: 4 / 5;
  background: #f6f7f9;
  overflow: hidden;
}

.speaker-photo {
  width: 90%;
  height: 100%;
  object-fit: cover;
}

.speaker-meta {
  padding: 14px;
}

.speaker-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.speaker-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-body);
  margin: 5px 0;
  font-style: italic !important;
}

.speaker-company {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* Modal */
.speaker-modal {
  width: min(860px, 92vw);
  border: none;
  padding: 0;
  border-radius: var(--image-radius);
  box-shadow: var(--box-shadow);
}

.speaker-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 320px 1fr;
  }
}

.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 28px;
}

.modal-name {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 6px;
}

.modal-role {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 16px;
}

.modal-role i {
  font-weight: 300;
}

.modal-divider {
  border: 0;
  border-top: 1px solid #eef0f3;
  margin: 16px 0;
}

.modal-bio {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: none;
  background: var(--primary-gradient-start);
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity .2s ease;
}

.modal-close:hover {
  opacity: 0.9;
}

/* ===== Mobile First (Default) =====
   Already designed for single column
   with readable spacing
*/

/* ===== Small Tablets (≥ 480px) ===== */
@media (min-width: 480px) {
  .speakers-heading {
    font-size: clamp(26px, 5vw, var(--heading-size));
  }

  .speaker-name {
    font-size: 17px;
  }

  .speaker-title {
    font-size: 14px;
  }
}

/* ===== Tablets (≥ 640px) ===== */
@media (min-width: 640px) {
  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-medium);
  }

  .speaker-meta {
    padding: 16px;
  }

  .modal-body {
    grid-template-columns: 300px 1fr;
  }
}

/* ===== Medium Desktops (≥ 768px) ===== */
@media (min-width: 768px) {
  .speakers-section {
    /* padding: var(--gap-large); */
    padding: 0;
  }

  .speakers-heading {
    font-size: var(--heading-size);
  }

  .speaker-card {
    border-radius: var(--image-radius);
  }

  .modal-body {
    grid-template-columns: 320px 1fr;
  }

  .modal-name {
    font-size: 26px;
  }
}

/* ===== Large Desktops (≥ 1024px) ===== */
@media (min-width: 1024px) {
  .speakers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-medium);
  }

  .speakers-section {
    /* padding: calc(var(--gap-large) + 10px) var(--gap-small); */
    padding: calc(0 var(--gap-small));
  }

  .modal-name {
    font-size: 28px;
  }

  .modal-role {
    font-size: 15px;
  }
}

/* ===== Extra Large Screens (≥ 1440px) ===== */
@media (min-width: 1440px) {
  .speakers-section {
    /* padding: 80px 0; */
    padding: 0;
  }

  .speakers-container {
    max-width: 1280px;
  }

  .modal-content {
    padding: 40px;
  }

  .modal-name {
    font-size: 30px;
  }
}

/* ============================
   FIX SPEAKER CARD ALIGNMENT
   ============================ */

/* All cards same height */
.speaker-card {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
}

/* Image area fixed & equal */
.speaker-photo-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  width: 100%;
}

.speaker-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text area should stretch evenly */
.speaker-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.speaker-title {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-body);
  margin: 5px 0;
  font-style: italic !important;

  /* IMPORTANT: allow wrapping, no truncation */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.speaker-company {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  font-weight: 700;
  /* bold company */
}