/* تهيئة عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #00a884;
  --secondary-color: #c9a03f;
  --gold-light: #f5e7c5;
  --dark-bg: #0e0e0e;
  --darker-bg: #0a0a0a;
  --section-bg: #111111;
  --card-bg: rgba(30, 30, 30, 0.8);
  --text-color: #ffffff;
  --text-light: #dddddd;
  --text-muted: #aaaaaa;
  --border-color: rgba(255, 255, 255, 0.05);
  --section-padding: 4rem 2rem;
}

@font-face {
  font-family: "The Year of Handicrafts";
  src: url("fonts/TheYearOfHandicrafts.woff2") format("woff2"),
    url("fonts/TheYearOfHandicrafts.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "The Year of Handicrafts", "Tajawal", sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg);
  line-height: 1.7;
  position: relative;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(201, 160, 63, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 168, 132, 0.05) 0%,
      transparent 50%
    );
  z-index: -1;
  opacity: 0.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Add this to your existing CSS */
.highlight-location {
  font-weight: 700;
  color: inherit; /* Maintains the existing text color */
}

/* Optional: Add subtle emphasis effects */
.highlight-location {
  position: relative;
  display: inline-block;
}

.highlight-location::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.forum-program-description:hover .highlight-location::after {
  transform: scaleX(1);
}

/* رأس الصفحة */
.header {
  background: rgba(15, 15, 15, 0.95);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Header Scroll Behavior */
.header.scroll-up {
  transform: translateY(0);
}

.header.scroll-down {
  transform: translateY(-100%);
}

/* ========== Standard Section Header Styling ========== */
.forum-section-header {
  text-align: center;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  position: relative;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.forum-section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary-color);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.3s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0 0 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.forum-section-divider {
  position: relative;
  width: clamp(5rem, 15vw, 8rem);
  height: 4px;
  margin: 1.5rem auto 0;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 2px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.4s;
  transform-origin: center;
}

/* ========== Added Button Styling ========== */
.header-buttons {
  display: flex;
  gap: 15px; /* Space between buttons */
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%; /* Make buttons take full width of their container */
  font-size: 16px;
}

.community-btn {
  background-color: #25d366; /* WhatsApp green */
  color: white;
}

.register-btn {
  background-color: #4285f4; /* Google blue */
  color: white;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Subtitles for sections */
.section-subtitle {
  font-size: clamp(1.5rem, 1.25vw, 1.25rem);
  color: var(--text-light);
  margin: 1.5rem auto clamp(1.5rem, 4vw, 2.5rem);
  max-width: 800px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.5s;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .forum-section-header {
    margin-bottom: clamp(2rem, 6vw, 3rem);
  }

  .forum-section-heading {
    margin-bottom: 1rem;
  }

  .forum-section-divider {
    margin-top: 1.25rem;
    height: 3px;
  }

  .section-subtitle {
    margin: 1.25rem auto 2rem;
  }
}

@media (max-width: 480px) {
  .forum-section-heading {
    font-size: 1.5rem;
    letter-spacing: -0.3px;
  }

  .forum-section-divider {
    width: 4rem;
    height: 2px;
    margin-top: 1rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin: 1rem auto 1.5rem;
  }
}

/* ========== Header Buttons Styles ========== */
.header-right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-left-section {
  display: flex;
  align-items: center;
  gap: 0px;
}
.header-buttons {
  display: flex;
  gap: 15px;
}

.kfu-logo {
  height: 80px !important;
  width: auto;
}

.header-btn {
  font-family: "The Year of Handicrafts", "Tajawal", sans-serif;
  padding: 10px 20px;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.register-btn {
  background-color: var(--secondary-color); /* Gold color */
  color: #000;
}

.community-btn {
  background-color: var(--primary-color); /* Green color */
  color: white;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.register-btn:hover {
  background-color: var(--gold-light);
}

.community-btn:hover {
  background-color: #009a73; /* Darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .header-btn {
    padding: 8px 16px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .header-buttons {
    gap: 10px;
  }
  .header-btn {
    padding: 7px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-right-section {
    gap: 10px;
  }
  .header-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .header-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}
/* ========== End Header Buttons Styles ========== */

.logos-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(201, 160, 63, 0.7));
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  padding-top: calc(100px + 5vh);
  overflow: hidden;
  position: relative;
  background: linear-gradient(to bottom right, #0e0e0e, #1a1a1a);
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(2px);
  animation: floatShape 8s ease-in-out infinite;
}

.shape1 {
  width: 120px;
  height: 120px;
  background: var(--primary-color);
  top: 10%;
  right: 12%;
  animation-delay: 0s;
}

.shape2 {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  bottom: 18%;
  left: 10%;
  animation-delay: 2s;
}

.shape3 {
  width: 60px;
  height: 60px;
  background: var(--gold-light);
  top: 60%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-register-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.25rem;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 2.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  text-decoration: none;
  z-index: 3;
}

.hero-register-btn:hover {
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: #111;
  transform: translateY(-3px) scale(1.04);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (max-width: 768px) {
  .hero-animated-bg .shape1 {
    width: 80px;
    height: 80px;
  }
  .hero-animated-bg .shape2 {
    width: 50px;
    height: 50px;
  }
  .hero-animated-bg .shape3 {
    width: 35px;
    height: 35px;
  }
  .hero-register-btn {
    font-size: 1.05rem;
    padding: 0.7rem 1.5rem;
  }
  .hero-wave svg {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-register-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
  }
  .hero-wave svg {
    height: 28px;
  }
}

.hero-content {
  text-align: right;
  transform: translateX(-50px);
  opacity: 0;
  animation: slideInRight 0.8s ease forwards 0.3s;
}

@keyframes slideInRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.intro-text-fir,
.forum-title,
.sponsor-text {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.9;
}

.intro-text-fir {
  font-size: clamp(1.3rem, 2.2vw, 22px);
  margin-bottom: 1.75rem;
  animation-delay: 0.5s;
}

.forum-title {
  font-size: clamp(2.8rem, 6.5vw, 60px);
  color: var(--primary-color);
  margin-bottom: 1.75rem;
  line-height: 1.25;
  animation-delay: 0.7s;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.sponsor-text {
  font-size: clamp(1.15rem, 1.7vw, 20px);
  animation: fadeInUp 0.6s ease forwards 0.9s;
}

.speaker-container {
  display: flex;
  justify-content: center;
  transform: translateX(50px);
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards 0.5s;
}

@keyframes slideInLeft {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.speaker-img-lea {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 1.5rem;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: all 0.4s ease;
}

.speaker-img-lea:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(201, 160, 63, 0.4);
}

/* ========== Responsive Breakpoints ========== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-content {
    text-align: center;
    animation: fadeInUp 0.8s ease forwards 0.3s !important;
    transform: translateY(20px) !important;
    padding: 0 2rem;
  }

  .speaker-container {
    animation: fadeInUp 0.8s ease forwards 0.5s !important;
    transform: translateY(20px) !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem;
    padding-top: calc(80px + 9vh);
  }

  .speaker-img-lea {
    max-width: 340px;
  }
}

@media (max-width: 576px) {
  .forum-title {
    font-size: 2.6rem;
  }

  .intro-text-fir {
    font-size: 1.25rem;
    padding: 0 1rem;
  }

  .sponsor-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .speaker-img-lea {
    max-width: 300px;
  }

  .forum-title {
    font-size: 2.3rem;
  }
}

/* Special cases for very tall headers */
@media (max-height: 700px) and (orientation: landscape) {
  .hero-section {
    min-height: 120vh;
  }
}

/* Events Section - Three Cards Layout */
.forum-events-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background-color: var(--section-bg);
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(
      circle at 70% 30%,
      rgba(0, 168, 132, 0.03) 0%,
      transparent 30%
    ),
    var(--section-bg);
}

.forum-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.forum-event-card {
  background-color: var(--card-bg);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  transform: translateY(30px);
  opacity: 0;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-event-card:nth-child(1) {
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.forum-event-card:nth-child(2) {
  animation: fadeInUp 0.6s ease forwards 0.6s;
}

.forum-event-card:nth-child(3) {
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

.forum-card-header {
  padding: 1.5rem;
  color: #000;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.forum-event-title {
  font-size: clamp(2rem, 3.5vw, 23px);
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.forum-event-location {
  font-size: clamp(1.5rem, 1.5vw, 18px);
  font-weight: 600;
  color: rgba(0, 0, 0, 0.8);
}

.forum-event-certificate {
  font-size: clamp(0.8rem, 0.75vw, 16px);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
}

.forum-card-content {
  padding: 1.5rem;
}

.forum-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-event-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  padding-right: 1.5rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.forum-event-item:before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.forum-event-item:last-child {
  border-bottom: none;
}

.forum-event-item:hover {
  color: var(--secondary-color);
}

.forum-event-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 40px rgba(0, 168, 132, 0.25);
  background-color: rgba(40, 40, 40, 0.8);
  border-color: rgba(201, 160, 63, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .forum-cards-wrapper {
    gap: 1.5rem;
  }

  .forum-card-header {
    padding: 1.25rem;
  }

  .forum-card-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .forum-event-card {
    border-radius: 1rem;
  }

  .forum-event-item {
    padding-right: 1.25rem;
  }
}

/* End Events Section */

/* Forum Trustees Section */
.forum-trustees-section {
  padding: 2rem 0.5rem; /* Adjusted padding for mobile */
  position: relative;
  background: linear-gradient(#0d0d0d, #151515);
  border-bottom: 1px solid var(--border-color);
}

.forum-trustees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.forum-trustee-card {
  background: linear-gradient(145deg, #1a1a1a, #222222);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(201, 160, 63, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
  min-width: 0;
}

.forum-trustee-card:nth-child(1) {
  grid-column: 1 / 3; /* Span both columns */
}

/* Responsive: keep two columns on small screens */
@media (max-width: 600px) {
  .forum-trustees-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep two columns on mobile */
    grid-template-rows: auto auto;
  }
  .forum-trustee-card:nth-child(1) {
    grid-column: 1 / 3;
  }
}

.forum-trustee-img-container {
  width: 80px; /* Smaller for mobile */
  height: 80px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 3px 10px rgba(201, 160, 63, 0.2);
  margin-bottom: 0;
}

.forum-trustee-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forum-trustee-name {
  font-size: 0.95rem; /* Smaller for mobile */
  margin-bottom: 0.2rem;
  color: #f5f5f5;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-trustee-position {
  font-size: 0.8rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 400px) {
  .forum-trustees-grid {
    gap: 0.8rem;
    padding: 0 0.3rem;
  }

  .forum-trustee-card {
    padding: 0.8rem;
  }

  .forum-trustee-img-container {
    width: 70px;
    height: 70px;
  }

  .forum-trustee-name {
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations */
.forum-trustee-card {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.5s ease forwards;
}
.forum-trustee-card:nth-child(1) {
  animation-delay: 0.2s;
}
.forum-trustee-card:nth-child(2) {
  animation-delay: 0.3s;
}
.forum-trustee-card:nth-child(3) {
  animation-delay: 0.4s;
}
.forum-trustee-card:nth-child(4) {
  animation-delay: 0.5s;
}
.forum-trustee-card:nth-child(5) {
  animation-delay: 0.6s;
}
.forum-trustee-card:nth-child(6) {
  animation-delay: 0.7s;
}

/* Forum Objectives Section */
.forum-objectives-section {
  padding: var(--section-padding);
  position: relative;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
  overflow: hidden;
}

.forum-section-subtitle {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  color: var(--secondary-color);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.5s;
  text-shadow: 0 2px 4px rgba(201, 160, 63, 0.3);
  font-weight: 600;
  line-height: 1.4;
  max-width: 90%;
}

.forum-objectives-content {
  max-width: min(800px, 90%);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  background-color: rgba(30, 30, 30, 0.6);
  border-radius: 1.5rem;
  border: 1px solid rgba(201, 160, 63, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

.forum-objectives-text {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0;
  text-align: justify;

}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .forum-objectives-content {
    padding: 1.5rem;
    backdrop-filter: blur(5px);
  }

  .forum-section-subtitle {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .forum-objectives-content {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .forum-objectives-text {
    line-height: 1.7;
    text-align: justify;
  }
}

/* ========== Forum Program Segments Section ========== */
.forum-program-section {
  --segment-padding: clamp(2rem, 5vw, 3.5rem);
  padding: var(--segment-padding) 0;
  position: relative;
  background: linear-gradient(to bottom, #111 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

.forum-program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: min(1280px, 92%);
  margin: 0 auto;
  padding: 0 1rem;
}

.forum-program-card {
  background: rgba(30, 30, 30, 0.6);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(30px);
  opacity: 0;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInUp 0.7s ease forwards;
}

.forum-program-card:nth-child(1) {
  animation-delay: 0.3s;
}
.forum-program-card:nth-child(2) {
  animation-delay: 0.5s;
}
.forum-program-card:nth-child(3) {
  animation-delay: 0.7s;
}

.forum-program-header {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
  background-color: var(--segment-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.forum-program-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin: 0;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.forum-program-content {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.forum-program-description {
  color: var(--text-light);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  text-align: right;
  margin: 0;
  hyphens: auto;
  letter-spacing: -0.2px;
  text-align: justify;
}

/* ===== Interactive States ===== */
@media (hover: hover) {
  .forum-program-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(201, 160, 63, 0.2);
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .forum-program-cards {
    grid-template-columns: 1fr;
    max-width: min(600px, 90%);
  }

  .forum-program-description {
    line-height: 1.9;
  }
}

@media (max-width: 480px) {
  .forum-program-section {
    padding: 1.5rem 0;
  }

  .forum-program-card {
    border-radius: 1rem;
  }

  .forum-program-header {
    padding: 1.25rem;
  }

  .forum-program-content {
    padding: 1.25rem;
  }
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION END ===== */

/* ========== Forum Stage Speakers Section ========== */
.forum-stage-speakers-section {
  padding: var(--section-padding);
  position: relative;
  background: linear-gradient(to bottom, #0f0f0f, #131313);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
  overflow: hidden;
}

.forum-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 0 1rem;
}

.forum-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.forum-speaker-card:nth-child(1) {
  animation-delay: 0.1s;
}
.forum-speaker-card:nth-child(2) {
  animation-delay: 0.2s;
}
.forum-speaker-card:nth-child(3) {
  animation-delay: 0.3s;
}
.forum-speaker-card:nth-child(4) {
  animation-delay: 0.4s;
}
.forum-speaker-card:nth-child(5) {
  animation-delay: 0.5s;
}
.forum-speaker-card:nth-child(6) {
  animation-delay: 0.6s;
}
.forum-speaker-card:nth-child(7) {
  animation-delay: 0.7s;
}
.forum-speaker-card:nth-child(8) {
  animation-delay: 0.8s;
}
.forum-speaker-card:nth-child(9) {
  animation-delay: 0.9s;
}
.forum-speaker-card:nth-child(10) {
  animation-delay: 1s;
}

.forum-speaker-img-wrapper {
  position: relative;
  width: clamp(10rem, 20vw, 12rem);
  height: clamp(10rem, 20vw, 12rem);
  margin-bottom: 0;
}

.forum-speaker-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    var(--secondary-color) 0%,
    transparent 70%
  );
  opacity: 0.3;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.4s ease;
}

.forum-speaker-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.forum-speaker-details {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  border: 1px solid rgba(201, 160, 63, 0.1);
}

.forum-speaker-name {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 600;
  line-height: 1.3;
}

/* Hover Effects */
.forum-speaker-card:hover .forum-speaker-glow {
  opacity: 0.5;
  transform: scale(1.1);
}

.forum-speaker-card:hover .forum-speaker-img {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201, 160, 63, 0.3);
}

.forum-speaker-card:hover .forum-speaker-details {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 30px rgba(201, 160, 63, 0.2);
  border-color: rgba(201, 160, 63, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .forum-speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .forum-speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }

  .forum-speaker-img-wrapper {
    width: 9rem;
    height: 9rem;
  }
}

@media (max-width: 576px) {
  .forum-speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .forum-speaker-img-wrapper {
    width: 7rem;
    height: 7rem;
  }

  .forum-speaker-details {
    padding: 1rem;
  }

  .forum-speaker-name {
    font-size: 1.1rem;
  }
}
/* ========== SECTION END ========== */

/* ========== Forum PDF Info Section ========== */
.forum-pdf-info-section {
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem;
  background: linear-gradient(to bottom, #0f0f0f, #131313);
  border-top: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  z-index: 1;
}

.forum-pdf-container {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.6s;
}

.forum-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 2.5vw, 2rem);
  background-color: var(--card-bg);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid rgba(201, 160, 63, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  line-height: 1.5;
}

.forum-pdf-link:hover,
.forum-pdf-link:focus {
  background-color: rgba(40, 40, 40, 0.8);
  color: var(--gold-light);
  transform: translateY(-0.1875rem);
  box-shadow: 0 6px 20px rgba(201, 160, 63, 0.25);
  border-color: rgba(201, 160, 63, 0.4);
  outline: none;
}

.forum-pdf-link:active {
  transform: translateY(-0.0625rem);
  box-shadow: 0 4px 14px rgba(201, 160, 63, 0.2);
}

.forum-pdf-icon {
  width: 1em;
  height: 1em;
  transition: transform 0.3s ease;
}

.forum-pdf-link:hover .forum-pdf-icon,
.forum-pdf-link:focus .forum-pdf-icon {
  transform: scale(1.15);
}

.forum-pdf-link-text {
  position: relative;
  display: inline-block;
}

.forum-pdf-link:hover .forum-pdf-link-text::after {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  animation: underlineExpand 0.3s ease-out forwards;
}

@keyframes underlineExpand {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .forum-pdf-link {
    padding: 0.875rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .forum-pdf-link {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
  }

  .forum-pdf-link-text::after {
    display: none;
  }
}

/* ========== Forum Registration Section Styles ========== */
.forum-registration-section {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.forum-registration-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/pattern.png") center/cover;
  opacity: 0.03;
  z-index: 0;
}

.forum-registration-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.forum-registration-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.forum-registration-btn {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-width: min(100%, 280px);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.forum-registration-img {
  width: auto;
  max-width: 100px; /* Adjust this value as needed */
  height: auto;
  display: block;
  margin: 0 auto; /* Centers the image */
  transition: transform 0.4s ease;
  border-radius: 0.5rem;
}

.forum-registration-link {
  font-family: "Tajawal", sans-serif;
  font-size: clamp(1.5rem, 1.5vw, 1.5rem); /* Increased from original */
  font-weight: 500;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--secondary-color);
  border-radius: 2.5rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.forum-registration-link::after {
  content: "←";
  font-size: 1.2em;
}

/* Hover & Focus States */
.forum-registration-btn:hover,
.forum-registration-btn:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(201, 160, 63, 0.25);
}

.forum-registration-btn:hover .forum-registration-img,
.forum-registration-btn:focus .forum-registration-img {
  transform: scale(1.02);
}

.forum-registration-link:hover,
.forum-registration-link:focus {
  background-color: rgba(201, 160, 63, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .forum-registration-section {
    padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  }

  .forum-registration-actions {
    gap: 1.25rem;
    margin-top: 1.75rem;
  }

  .forum-registration-btn {
    max-width: min(100%, 240px);
  }

  .forum-registration-link {
    padding: 0.625rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .forum-registration-section {
    padding: 2rem 1rem;
  }

  .forum-registration-actions {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .forum-registration-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}
/* ========== End Forum Registration Section Styles ========== */

/* ========== Partners & Sponsors Footer Styles ========== */
.partners-sponsors-footer {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #0a0a0a, #111111);
  border-top: 1px solid var(--border-color);
}

.psf-partner-group {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed to flex-start for left alignment */
}

.psf-partner-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.psf-group-title {
  font-family: "The Year of Handicrafts", "Tajawal", sans-serif;
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: left; /* Explicit left alignment */
}

.psf-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start; /* Changed to flex-start for left alignment */
}

.psf-logo-card {
  background: rgba(30, 30, 30, 0.7);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(201, 160, 63, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.psf-logo-img {
  max-height: 100px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

/* Hover Effects */
.psf-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(201, 160, 63, 0.15);
  border-color: rgba(201, 160, 63, 0.3);
  background: rgba(40, 40, 40, 0.8);
}

.psf-logo-card:hover .psf-logo-img {
  filter: grayscale(0%);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .psf-partner-group {
    align-items: center;
  }

  .psf-logos-grid {
    justify-content: center;
  }

  .psf-group-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .partners-sponsors-footer {
    padding: 3rem 1.5rem;
  }

  .psf-group-title {
    font-size: 22px;
  }

  .psf-logo-card {
    padding: 1rem;
  }

  .psf-logo-img {
    max-height: 60px;
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .psf-logos-grid {
    gap: 1rem;
  }

  .psf-logo-img {
    max-height: 50px;
    max-width: 120px;
  }
}
/* ========== End Partners & Sponsors Footer Styles ========== */

/* Forum Timeline Section */
.forum-timeline-section {
  padding: var(--section-padding);
  background: linear-gradient(#151515, #1a1a1a);
  border-bottom: 1px solid var(--border-color);
}

.forum-timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.forum-timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: #c9a03f33;
  top: 0;
  bottom: 0;
  z-index: 0;
}

.forum-timeline-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
  margin-bottom: 30px;
  z-index: 1;
}

.forum-timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.forum-timeline-content {
  background-color: var(--card-bg);
  padding: 18px 24px;
  border-radius: 1rem;
  border: 1px solid #eee1;
  max-width: 40%;
  min-width: 350px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  font-family: "Tajawal", sans-serif;
  text-align: right;
}

.forum-timeline-title {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-family: inherit;
}

.forum-timeline-date {
  font-size: 0.98em;
  color: var(--text-color);
  font-family: inherit;
  font-weight: 300;
}

.forum-timeline-dot {
  width: 16px;
  height: 16px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  position: absolute;
  top: 24px;
  z-index: 2;
  border: 2px solid #fff2;
  box-shadow: 0 2px 6px #0002;
}

.forum-timeline-item:nth-child(odd) .forum-timeline-dot {
  right: calc(50% - 8px);
}

.forum-timeline-item:nth-child(even) .forum-timeline-dot {
  left: calc(50% - 8px);
}

.forum-timeline-speaker {
  font-size: 0.95em;
  margin-top: 6px;
  font-weight: 800;
  font-family: inherit;
  display: block;
}

@media screen and (max-width: 768px) {
  .forum-timeline-item {
    flex-direction: column;
    align-items: center;
  }
  .forum-timeline-content {
    max-width: 90%;
    text-align: center;
  }
  .forum-timeline-dot {
    top: 0;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
  .forum-timeline-speaker {
    font-size: 1em;
    margin-top: 8px;
  }
}

/* Forum Version Info */
.forum-version {
  display: block;
  font-size: 0.75em;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.5px;
}
