@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ceg-teal: #0d9488;
  --ceg-dark: #089b91;
  --ceg-gray: #64748b;
  --ceg-bg: #f8fafc;
  --arrow-color: #0f766e;
}

.container {
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.cs-header {
  padding: 3rem 0 1.5rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.cs-subtitle {
  color: var(--ceg-teal);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}

.cs-title {
  font-size: 3rem;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cs-description {
  max-width: 600px;
  color: var(--ceg-gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* FILTERS CAROUSEL */
.cs-filters-wrapper {
  position: relative;
  margin-bottom: 3rem;
}

/* TABBED FILTER SYSTEM */
.filter-tabs-container {
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.filter-tabs-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.filter-tab-group {
  flex: 1;
  min-width: 250px;
  border-right: 1px solid #333;
  padding-right: 2rem;
  margin-bottom: 0;
}

.filter-tab-group:last-of-type {
  border-right: none;
  padding-right: 0;
}

.filter-tab-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 0;
  color: var(--ceg-dark);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.filter-tab-header:hover {
  color: var(--ceg-teal);
}

.tab-icon {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Common Content Area */
.common-filter-content {
  width: 100%;
}

/* New Header Row Layout */
.filter-tabs-header-row {
  display: flex;
  border-bottom: 1px solid #333;
}

.filter-tab-header-col {
  flex: 1;
  color: var(--ceg-teal);
  border-right: 1px solid #333;
  text-transform: uppercase;
}

.filter-tab-header-col:last-child {
  border-right: none;
}

.filter-tab-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 2rem;
  color: var(--ceg-teal);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.filter-tab-header:hover {
  color: var(--ceg-teal);
}

/* Content Area */
.filter-content-wrapper {
  width: 100%;
}

.filter-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  padding: 0;
  opacity: 0;
}

.filter-tab-content.active {
  max-height: 1000px;
  padding: 1.5rem;
  opacity: 1;
  display: flex;
  flex-wrap: wrap; /* Grid of buttons */
  gap: 0.5rem;
}

.filter-tab-content .filter-btn {
  background: #2a2a2a;
  border: 1px solid #404040;
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin: 0;
}

.filter-tab-content .filter-btn:hover,
.filter-tab-content .filter-btn.active {
  background: var(--ceg-teal);
  color: white;
  border-color: var(--ceg-teal);
}

/* Filter Header Wrapper */
.header-text-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Small gap between Title and Count */
}

/* Filter Actions */
.filter-actions {
  display: flex !important; /* Force visible */
  justify-content: flex-end;
  gap: 1rem;
}
.clear-filters-btn {
    background: var(--ceg-teal);
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 10px;
    border-radius: 0px !important;
}
.filter-tab-header:focus,
.filter-tab-header:focus-visible,
.filter-tab-group:focus,
.filter-tab-group:focus-visible {
  outline: none;
  box-shadow: none;
}

.filter-tab-header:focus,
.filter-tab-header:focus-visible {
  border: none;
}

/* Active Tab Header Style */
.filter-tab-header.active {
  color:var(--ceg-teal);
  position: relative;
}

/* Use pseudo-element to cover the bottom border */
.filter-tab-header.active::after {
  content: '';
  position: absolute;
  bottom: -2px; /* Position to overlap the content border */
  left: 0;
  width: 100%;
  height: 2px; /* Height of the patch */
  background: #1a1a1a; /* Match background to mask the border */
  z-index: 20;
}

.clear-filters-btn,
.show-results-btn {
  padding: 5px 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}



.clear-filters-btn:hover {
  background: #2a2a2a;
  border-color: #555;
}

.show-results-btn {
  background: var(--ceg-teal);
  color: white;
  border: none;
}

.show-results-btn:hover {
  background: var(--ceg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ceg-teal);
}

/* GRID */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Base Filter Button Styling */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: inline-block;
}

/* CARD DESIGN */
.cs-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.cs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--ceg-teal);
  text-decoration: none;
}
.cs-card-media img{
    margin-bottom: 0px;
}
.cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cs-card:hover .cs-card-img {
  transform: scale(1.05);
}

.cs-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cs-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cs-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ceg-teal);
  text-transform: uppercase;
  background: #f0fdfa;
  padding: 4px 10px;
  border-radius: 4px;
}

.cs-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cs-card-title {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--ceg-dark);
  margin: 0 0 1rem;
  line-height: 1.3 !important;
}

.cs-card-excerpt {
  font-size: 0.9rem;
  color: var(--ceg-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cs-link-group {
  margin-top: auto;
  color: var(--ceg-teal);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs_title {
  font-size: 14px;
}

/* PAGINATION */
.cs-pagination {
  margin-top: 4rem;
  text-align: center;
}

.cs-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0d9488;
  font-weight: 600;
  text-decoration: none;
}

.cs-pagination .page-numbers.current {
  background: #0d9488;
  color: #fff;
  border-color: #0d9488;
}

/* RECENT BLOG SECTION */
.recent-blogs {
  max-width: 1400px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  margin-top: 0px;
  text-align: center;
}

.recent-blogs h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ceg-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.recent-blog {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  height: auto;
}

.recent-blog:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.recent-blog a {
  display: flex;
  flex-direction: row;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.recent-blog-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recent-blog:hover .recent-blog-img {
  transform: scale(1.05);
}

.recent-blog-content {
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  text-align: left;
}

.recent-blog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ceg-dark);
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

.recent-blog:hover .recent-blog-title {
  color: var(--ceg-teal);
}

.recent-blog-excerpt {
  font-size: 1rem;
  color: var(--ceg-gray);
  line-height: 1.6;
  margin-top: 1rem;
}

.listing-content {
  padding: 5% !important;
  padding-bottom: 4% !important;
}

/* BROCHURE DOWNLOAD BUTTON */
.brochure_download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--ceg-teal);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.brochure_download:hover {
  background: var(--ceg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  color: white;
  text-decoration: none;
}

.brochure_download i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.brochure_download:hover i {
  transform: translateX(3px);
}

/* RESPONSIVE DESIGN */
@media(max-width: 992px) {
.event-details{
    flex:none !important;
}
  
  /* Tabbed Filter Responsive */
  .filter-tabs-container {
    padding: 1rem;
  }
  
  .filter-tabs-wrapper {
    flex-direction: column;
    gap: 0;
  }
  
  .filter-tab-group {
    border-right: none;
    border-bottom: 1px solid #333;
    padding-right: 0;
    padding-bottom: 0;
  }
  
  .filter-tab-group:last-of-type {
    border-bottom: none;
  }
  
  .filter-tab-header {
    padding: 1rem 0;
    font-size: 0.95rem;
  }
  
  .filter-actions {
    flex-direction: column;
  }
  
  .clear-filters-btn,
  .show-results-btn {
    width: 100%;
  }
}
@media(max-width: 992px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-blog {
    height: auto;
    min-height: 240px;
  }

  .recent-blog-content {
    padding: 2rem;
  }

  .recent-blog-title {
    font-size: 1.5rem;
  }
}

@media(max-width: 768px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-filters-wrapper {
    padding: 0 3rem;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .prev-btn {
    left: -0.5rem;
  }

  .next-btn {
    right: -0.5rem;
  }

  .cs-filters-wrapper::before,
  .cs-filters-wrapper::after {
    width: 40px;
  }

  .recent-blog {
    flex-direction: column;
    height: auto;
  }

  .recent-blog a {
    flex-direction: column;
  }

  .recent-blog-img {
    width: 100%;
    height: 240px;
  }

  .recent-blog-content {
    width: 100%;
    padding: 2rem;
  }

  .recent-blogs h2 {
    font-size: 1.75rem;
  }
}

@media(max-width: 480px) {
  .cs-filters-wrapper {
    padding: 0 2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .recent-blog-content {
    padding: 1.5rem;
  }

  .recent-blog-title {
    font-size: 1.25rem;
  }

  .recent-blog-excerpt {
    font-size: 0.9rem;
  }
}

@media(max-width: 360px) {
  .carousel-btn {
    display: none;
  }

  .cs-filters-wrapper {
    padding: 0 1rem;
  }
}
a.brochure_download.button i {
    margin-top: 7px;
    margin-left: 8px;
}

/* SINGLE POST BANNER */
.single-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(8, 155, 145, 0.85) 100%), 
              url('./img/cs-banner.jpg') center center / cover no-repeat;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}
.single-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.single-banner-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align:left;
}

/* LANGUAGE SELECTOR */
.language-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 5px 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.lang-btn {
  background: white;
  color: var(--ceg-teal);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.lang-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.lang-btn:hover i {
  transform: scale(1.1);
}
.language-selector span{
margin-top: 7px;
color: var(--ceg-teal);
font-size: 1rem;
text-transform: uppercase;
}

@media(max-width: 992px) {
  .single-banner {
    padding: 3rem 2rem;
  }

  .single-banner-title {
    font-size: 2.5rem;
  }
}

@media(max-width: 768px) {
  .single-banner {
    padding: 2.5rem 1.5rem;
  }

  .single-banner-title {
    font-size: 2rem;
  }
  
  .lang-btn {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }
}

@media(max-width: 480px) {
  .single-banner {
    padding: 2rem 1rem;
  }

  .single-banner-title {
    font-size: 1.5rem;
  }
  
  .lang-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* RECENT EVENTS SIDEBAR */
.recent-events-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.recent-event-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
      list-style: none;
}
h4.recent-event-title {
    font-size: 14px !important;
    line-height: 22px !important;
}
.recent-events-section h3 {
    text-align: left;
}
.recent-event-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-event-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 1rem;
  transition: all 0.3s ease;
}

.recent-event-link:hover {
  transform: translateX(5px);
}

.recent-event-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
}

.recent-event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recent-event-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ceg-dark);
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-event-link:hover .recent-event-title {
  color: var(--ceg-teal);
}

.recent-event-date {
  font-size: 0.85rem;
  color: var(--ceg-gray);
  display: block;
}

.recent-event-location {
  font-size: 0.85rem;
  color: var(--ceg-gray);
  display: block;
}

.register-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ceg-dark);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ceg-teal);
}
.recent-events-section {
    flex: 1;
}
.listing-right-col {
    flex: 1;
}

.listing-right-col .event-registration {
    margin-bottom: 40px;
}
.cs-filters .filter-btn {
    text-transform: uppercase;
    font-size: 12px;
}
.filter-btn:focus-visible, .filter-btn:focus{
  border-color: var(--ceg-teal);
}
.single-post .featured-media-under-header__content {
    max-width: inherit;
}
.single-post .post-area.col.span_12.col_last {
    max-width: inherit !important;
}

/* Responsive Styles for Filter Tabs */
@media (max-width: 768px) {
  /* Stack headers vertically */
  .filter-tabs-header-row {
    flex-direction: column;
  }

  /* Reset column borders */
  .filter-tab-header-col {
    border-right: none;
    border-bottom: 1px solid #333;
    width: 100%;
  }

  .filter-tab-header-col:last-child {
    border-bottom: none;
  }
  
  /* Adjust padding for mobile */
  .filter-tab-header {
    padding: 1rem;
  }

  .filter-tab-content.active {
    padding: 1rem;
    gap: 0.5rem;
  }
}

