/* assets/css/style.css */
:root {
  --primary-green: #0B4F37;
  --primary-green-light: #1A6F4A;
  --accent-gold: #D4AF37;
  --accent-soft: #F0F7F2;
  --text-dark: #1E1E1E;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.text-primary-green {
  color: var(--primary-green) !important;
}

.text-accent-gold {
  color: var(--accent-gold) !important;
}

.bg-primary-green {
  background-color: var(--primary-green) !important;
}

.bg-accent {
  background-color: var(--accent-gold) !important;
}

.bg-light-green {
  background-color: #E9F3EE;
}

.bg-soft-green {
  background-color: #F4F9F6;
}

.btn-primary-green {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

.btn-primary-green:hover {
  background-color: #083D2A;
  color: white;
}

.btn-outline-primary-green {
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-outline-primary-green:hover {
  background-color: var(--primary-green);
  color: white;
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary-green);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #b8902a;
  color: white;
}

/* Navbar */
#mainNavbar {
  transition: all 0.3s;
}

.navbar-brand span {
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary-green) !important;
}

.dropdown-menu {
  border-radius: 12px;
  margin-top: 10px;
}

.dropdown-item:hover {
  background-color: var(--accent-soft);
  color: var(--primary-green);
}

/* Hero carousel */
#heroCarousel .carousel-item {
  height: 60vh;
  min-height: 400px;
  background: no-repeat center center/cover;
}

/* Ensure images fill the slide container properly */
#heroCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#heroCarousel.carousel-item img {
  object-fit: cover;
  height: 100%;
}

#heroCarousel.carousel-caption {
  background: linear-gradient(to right, rgba(11, 79, 55, 0.85), rgba(0, 0, 0, 0.4));
  border-radius: 30px;
  padding: 2rem;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 700px;
  backdrop-filter: blur(2px);
}

.hero-title {
  line-height: 1.3;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 50vh;
  }

  .carousel-caption {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

/* Countdown */
.countdown-banner {
  background: linear-gradient(135deg, #f6fbf9 0%, #e2f0e9 100%);
}

.countdown-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(11, 79, 55, 0.15);
}

.countdown-item span:first-child {
  min-width: 80px;
  display: inline-block;
}

/* Cards */
.card,
.date-card-modern,
.committee-card,
.speaker-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 20px !important;
}

.card:hover,
.date-card-modern:hover,
.committee-card:hover,
.speaker-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08) !important;
}

.committee-card img,
.speaker-card img {
  border: 3px solid var(--accent-gold);
  padding: 3px;
  background: white;
}

/* Professional Hover Effect */
.sponsor-hover-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-hover-card:hover {
  transform: translateY(-5px);
  border-color: #0B4F37 !important;
  /* Your theme green */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Accordion */
.accordion-button {
  font-weight: 500;
  border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-green);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-green);
}

.accordion-item {
  border-radius: 16px !important;
  overflow: hidden;
}

/* Important Dates */
.date-card-modern {
  border-left-width: 5px !important;
}

.icon-circle {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- FIXED CAROUSEL CONTROLS (Professional positioning) --- */
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  opacity: 1;
  /* This centers the buttons vertically alongside the cards */
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.carousel-control-prev-icon-custom,
.carousel-control-next-icon-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  /* These dimensions create the perfect circle for the icon to center inside */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-green);
  color: white;
  transition: background-color 0.2s, color 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.carousel-control-prev:hover .carousel-control-prev-icon-custom,
.carousel-control-next:hover .carousel-control-next-icon-custom {
  background-color: var(--primary-green-light) !important;
  color: white !important;
}

/* For the white outline version */
.bg-white.text-primary-green.border:hover {
  background-color: var(--primary-green) !important;
  color: white !important;
}

/* Footer */
footer a:hover {
  color: var(--accent-gold) !important;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--accent-gold);
  color: var(--primary-green) !important;
}

#scrollTopBtn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== IMPORTANT DATES TIMELINE ==================== */
.timeline-vertical {
  position: relative;
  padding-left: 30px;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-green);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 20px;
}

.timeline-marker {
  position: absolute;
  left: -38px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--white);
  border: 3px solid var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker i {
  color: var(--primary-green);
  font-size: 1rem;
}

.timeline-content {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--accent-gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.date-badge {
  background: var(--primary-green);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .timeline-vertical {
    padding-left: 20px;
  }

  .timeline-vertical::before {
    left: 15px;
  }

  .timeline-marker {
    left: -28px;
    width: 25px;
    height: 25px;
  }

  .timeline-marker i {
    font-size: 0.8rem;
  }

  .timeline-content {
    padding: 1rem 1.25rem;
  }
}

/* ==================== CONFERENCE SCHEDULE ==================== */
.schedule-tabs .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  margin: 0 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--primary-green);
  transition: all 0.2s;
}

.schedule-tabs .nav-link:hover {
  background-color: var(--primary-green-light);
  color: white;
  border-color: var(--primary-green-light);
}

.schedule-tabs .nav-link.active {
  background-color: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.schedule-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.schedule-table thead th {
  background-color: var(--primary-green);
  color: white;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
}

.schedule-table thead th:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.schedule-table thead th:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.schedule-table tbody tr {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.schedule-table tbody td {
  padding: 1.2rem 1.5rem;
  vertical-align: middle;
  border: none;
  border-top: 1px solid rgba(11, 79, 55, 0.1);
}

.schedule-table tbody tr:first-child td {
  border-top: none;
}

.schedule-table tbody td:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.schedule-table tbody td:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.time-badge {
  background-color: var(--primary-green);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}

.highlight-row {
  background-color: var(--accent-soft) !important;
}

.highlight-row td:first-child {
  border-left: 4px solid var(--accent-gold);
}

@media (max-width: 768px) {
  .schedule-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0 0.25rem;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody tr {
    display: block;
    margin-bottom: 1.5rem;
    border-radius: 20px;
  }

  .schedule-table tbody td {
    display: block;
    text-align: left;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(11, 79, 55, 0.05);
  }

  .schedule-table tbody td:first-child {
    border-top: none;
  }

  .schedule-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
  }

  .time-badge {
    display: inline-block;
  }
}

/* ==================== ACCOMMODATION CARDS ==================== */
.accommodation-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.accommodation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
}

.accommodation-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.accommodation-card .badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ==================== SPEAKER CARDS ==================== */
.speaker-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 20px !important;
}

.speaker-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08) !important;
}

.speaker-card img {
  border: 4px solid var(--accent-gold);
  padding: 4px;
  background: white;
}

/* ==================== ORGANIZING COMMITTEE - DISTINCT DESIGN ==================== */
.org-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1) !important;
}

.org-card .bg-primary-green {
  background: linear-gradient(145deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
}

.org-card-vertical {
  transition: transform 0.3s, box-shadow 0.3s;
}

.org-card-vertical:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1) !important;
}

.org-card-vertical .badge {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ========== SPONSORS SECTION – ICBA 2026 ========== */
.sponsors-section {
  padding: 5rem 0;
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e6f3f, #2b8c5e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 650px;
  margin: 0 auto;
}

/* Category wrappers */
.sponsor-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid;
  padding-left: 1rem;
}

.category-title i {
  font-size: 1.6rem;
}

/* Gold specific */
.gold .category-title {
  border-left-color: #d4af37;
  color: #b8860b;
}

.gold .category-title i {
  color: #f5b81b;
}

/* Silver specific */
.silver .category-title {
  border-left-color: #b0b0b0;
  color: #5a5a6e;
}

.silver .category-title i {
  color: #9ca3af;
}

/* General sponsors */
.general .category-title {
  border-left-color: #cd7f32;
  color: #8b5a2b;
}

.general .category-title i {
  color: #cd7f32;
}

/* Media partner */
.media .category-title {
  border-left-color: #2c7da0;
  color: #1f5068;
}

.media .category-title i {
  color: #2c7da0;
}

/* Sponsor grid system */
.sponsor-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Gold grid: more prominent */
.gold-grid {
  gap: 2rem;
}

/* Silver grid */
.silver-grid {
  gap: 1.8rem;
}

/* General grid (compact cards) */
.general-grid {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Sponsor card (default) */
.sponsor-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f8;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: #e0e7f0;
}

/* Gold card extra shine */
.gold-grid .sponsor-card {
  border-top: 4px solid #f5b81b;
  background: linear-gradient(to bottom, #fffef7, #ffffff);
}

/* Silver card subtle border */
.silver-grid .sponsor-card {
  border-top: 2px solid #d4d4dc;
}

/* Compact card for general sponsors */
.sponsor-card.compact {
  padding: 1.2rem 1rem;
}

.sponsor-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: #f0f7f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #2c7a4b;
  transition: 0.2s;
}

.sponsor-card:hover .sponsor-logo {
  background: #e6f0ea;
  transform: scale(1.02);
}

.sponsor-logo.small {
  width: 55px;
  height: 55px;
  font-size: 1.8rem;
}

.sponsor-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a2c3e;
}

.sponsor-card p {
  font-size: 0.85rem;
  color: #5b6e8c;
  margin-top: 0.25rem;
}

/* Media partner special block */
.media-partner-wrapper {
  background: #f8fbfe;
  border-radius: 32px;
  border: 1px solid #e2edf7;
  padding: 1.5rem;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.media-icon {
  width: 80px;
  height: 80px;
  background: #eef4ff;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #1e6f5c;
}

.media-info h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0b2b26;
}

.media-info p {
  font-size: 1rem;
  color: #4b6b7c;
}

/* Call to action */
.sponsor-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #dce5ef;
}

.sponsor-cta p {
  font-size: 1.1rem;
  color: #2d3e50;
}

.btn-outline {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 2px solid #2c7a4b;
  color: #2c7a4b;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn-outline:hover {
  background: #2c7a4b;
  color: white;
  border-color: #2c7a4b;
}

/* Responsive */
@media (max-width: 768px) {
  .sponsors-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .sponsor-grid {
    gap: 1.2rem;
  }

  .media-card {
    flex-direction: column;
    text-align: center;
  }

  .media-info h4 {
    font-size: 1.3rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.6rem;
    display: inline-block;
  }

  .sponsor-cta p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.custom-rich-text ul {
  list-style: none;
  padding-left: 0;
}

.custom-rich-text li {
  margin-bottom: 1rem;
}

.custom-rich-text a {
  text-decoration: none;
  font-weight: 600;
  color: #0B4F37;
  /* Matches your text-primary-green */
}

.custom-rich-text a:hover {
  text-decoration: underline;
}