/* ================================
   Accessibility Utilities
   ================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================
   Color Classes
   ================================ */
.dark-background {
  --background-color: var(--bg-almost-black);
  --default-color: var(--color-white);
  --heading-color: var(--color-white);
  --surface-color: var(--bg-dark-surface);
  --contrast-color: var(--color-white);
}

/* 
---------------------------------------------
Premium About Section Style
--------------------------------------------- 
*/
.premium-about-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin-top: 0 !important;
}

.about-text-content {
  position: relative;
  z-index: 2;
}

.about-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-main-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 25px;
  line-height: 1.2;
}

.about-divider {
  width: 60px;
  height: 4px;
  background: var(--brand-primary, #20a985);
  margin-bottom: 30px;
  border-radius: 2px;
}

.about-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 40px;
}

.step-item-modern {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.step-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 90%);
  color: var(--brand-primary, #20a985);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.step-item-modern:hover .step-icon-box {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

.step-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0;
}

.about-image-wrapper {
  position: relative;
  padding: 20px;
}

.main-image-container {
  position: relative;
  z-index: 2;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.main-about-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .main-about-img {
  transform: scale(1.05);
}

.image-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 95%);
  border-radius: 50%;
  z-index: 1;
}

.image-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 15px solid color-mix(in srgb, var(--brand-primary, #20a985), transparent 95%);
  border-radius: 30px;
  transform: rotate(15deg);
  z-index: 1;
}

.info-card-modern {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border: 1px solid rgba(32, 169, 133, 0.1);
  padding: 35px 30px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.info-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #20a985), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(32, 169, 133, 0.12);
  border-color: rgba(32, 169, 133, 0.3);
}

.info-card-modern:hover::before {
  opacity: 1;
}

.card-icon-modern {
  width: 60px;
  height: 60px;
  background: #ffffff;
  color: var(--brand-primary, #20a985);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(32, 169, 133, 0.1);
  transition: all 0.5s ease;
}

.info-card-modern:hover .card-icon-modern {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 15px 30px rgba(32, 169, 133, 0.3);
}

.card-body-modern h5 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
}

.card-body-modern p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.8;
}

/* Main Tasks Section */
.tasks-header {
  margin-bottom: 50px;
}

.tasks-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tasks-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
}

.tasks-divider {
  width: 80px;
  height: 4px;
  background: var(--brand-primary, #20a985);
  margin: 0 auto;
  border-radius: 2px;
}

.task-card-premium {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px 30px;
  height: 100%;
  position: relative;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.task-card-premium:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(32, 169, 133, 0.1);
  border-color: rgba(32, 169, 133, 0.2);
}

.task-number {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(32, 169, 133, 0.05);
  line-height: 1;
  transition: all 0.5s ease;
  z-index: -1;
}

.task-card-premium:hover .task-number {
  color: rgba(32, 169, 133, 0.1);
  transform: scale(1.2) translateY(-10px);
}

.task-icon-wrapper {
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 92%);
  color: var(--brand-primary, #20a985);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 30px;
  transition: all 0.5s ease;
}

.task-card-premium:hover .task-icon-wrapper {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  transform: rotateY(180deg);
}

.task-icon-wrapper img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.task-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.4;
}

.task-content p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 0;
  flex-grow: 1;
}

.task-card-footer {
  margin-top: 30px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 80%);
  transition: all 0.5s ease;
}

.task-card-premium:hover .footer-line {
  width: 100%;
  background: var(--brand-primary, #20a985);
}

/* 
---------------------------------------------
Premium Services Section Style
--------------------------------------------- 
*/
.premium-services-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  z-index: 9;
  overflow: hidden;
  margin-top: 0 !important;
}

.section-header-wrapper {
  margin-bottom: 60px;
}

.section-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title-modern {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  position: relative;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary, #20a985), #0d473c);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.section-lead-text {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.premium-service-card {
  height: 100%;
  perspective: 1000px;
}

.card-inner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.premium-service-card:hover .card-inner {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(32, 169, 133, 0.12);
  border-color: rgba(32, 169, 133, 0.2);
}

.service-icon-container {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-bg-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--brand-primary, #20a985);
  border-radius: 20px;
  opacity: 0.1;
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.premium-service-card:hover .icon-bg-glow {
  transform: rotate(135deg);
  opacity: 0.2;
  border-radius: 50%;
}

.icon-wrapper {
  position: relative;
  z-index: 2;
  font-size: 32px;
  color: var(--brand-primary, #20a985);
  transition: all 0.5s ease;
}

.icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.premium-service-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.premium-service-card:hover .service-title {
  color: var(--brand-primary, #20a985);
}

.service-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-footer {
  margin-top: auto;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px 0;
}

.service-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.service-btn:hover {
  color: var(--brand-primary, #20a985);
}

.service-btn:hover i {
  transform: translateX(-5px);
}

/* Certificate Stages Section */
.premium-stages-section {
  padding: 100px 0;
  background: #f8fafc;
  position: relative;
  z-index: 8;
  overflow: hidden;
  margin-top: 0 !important;
}

.stages-header {
  margin-bottom: 60px;
}

.stages-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.stages-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
}

.stages-divider {
  width: 80px;
  height: 4px;
  background: var(--brand-primary, #20a985);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.stages-lead-text {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.stage-card-modern {
  position: relative;
  padding-top: 20px;
  height: 100%;
}

.stage-badge {
  position: absolute;
  top: 0;
  right: 30px;
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(32, 169, 133, 0.2);
}

.stage-card-inner {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  padding: 50px 35px 40px;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage-card-modern:hover .stage-card-inner {
  transform: translateY(-15px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
  border-color: rgba(32, 169, 133, 0.2);
}

.stage-icon-box {
  width: 80px;
  height: 80px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 92%);
  color: var(--brand-primary, #20a985);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  transition: all 0.5s ease;
}

.stage-card-modern:hover .stage-icon-box {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  transform: scale(1.1) rotate(10deg);
}

.stage-number-display {
  font-size: 3rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1;
  font-family: var(--heading-font);
}

.stage-number-display .unit {
  font-size: 1.5rem;
  color: var(--brand-primary, #20a985);
  margin-right: 5px;
}

.stage-content h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
}

.stage-content p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 0;
}

.stage-card-decoration {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 96%);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.stage-card-modern:hover .stage-card-decoration {
  transform: scale(2);
  background: color-mix(in srgb, var(--brand-primary, #20a985), transparent 92%);
}

/* 
---------------------------------------------
Fix for Legacy Services Overlap
--------------------------------------------- 
*/
.services {
  position: absolute;
  z-index: 100 !important;
  width: 100%;
}

/* 
---------------------------------------------
Premium News Section Style
--------------------------------------------- 
*/
.premium-news-section {
  padding: 240px 0 120px;
  background-image: url(../images/meetings-bg.webp);
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 7;
  overflow: visible;
  margin-top: 0 !important;
}

.premium-news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.7);
  z-index: 1;
}

.premium-news-section .container {
  position: relative;
  z-index: 2;
}

.news-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.news-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.news-divider {
  width: 80px;
  height: 4px;
  background: var(--brand-primary, #20a985);
  margin: 0 auto;
  border-radius: 2px;
}

.news-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #f8fafc;
  padding: 30px;
  border-radius: 24px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(32, 169, 133, 0.1);
}

.category-list-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: 15px;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.category-item .cat-icon {
  width: 35px;
  height: 35px;
  background: #f1f5f9;
  color: var(--brand-primary, #20a985);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.category-item .cat-name {
  flex-grow: 1;
}

.category-item .cat-count {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.category-item:hover, .category-item.active {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  transform: translateX(-5px);
  box-shadow: 0 10px 20px rgba(32, 169, 133, 0.15);
}

.category-item:hover .cat-icon, .category-item.active .cat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.category-item:hover .cat-count {
  transform: translateX(-5px);
  opacity: 1;
}

.sidebar-cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 40px 30px;
  border-radius: 24px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta h5 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.sidebar-cta p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-premium-outline {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid var(--brand-primary, #20a985);
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-premium-outline:hover {
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(32, 169, 133, 0.3);
}

.news-card-premium {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.news-card-premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(32, 169, 133, 0.2);
}

.news-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card-premium:hover .news-thumb img {
  transform: scale(1.1);
}

.news-category-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand-primary, #20a985);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(32, 169, 133, 0.3);
}

.news-date-badge {
  position: absolute;
  bottom: 0;
  left: 20px;
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 15px 15px 0 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 60px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.news-date-badge .day {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.news-date-badge .month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary, #20a985);
  text-transform: uppercase;
}

.news-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-premium:hover .news-title a {
  color: var(--brand-primary, #20a985);
}

.news-excerpt {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.news-footer {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-link i {
  transition: transform 0.3s ease;
}

.read-more-link:hover {
  color: var(--brand-primary, #20a985);
}

.read-more-link:hover i {
  transform: translateX(-5px);
}

.empty-news-state .empty-icon {
  font-size: 4rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .about-main-title, .section-title-modern, .tasks-main-title, .stages-main-title, .news-main-title { font-size: 2.5rem; }
  .about-image-wrapper, .news-sidebar { margin-top: 50px; }
}

@media (max-width: 767px) {
  .premium-about-section, .premium-services-section, .premium-stages-section { padding: 60px 0; }
  .premium-news-section { padding: 320px 0 60px; } /* Even more padding for mobile to accommodate stacked items */

  .about-main-title, .section-title-modern, .tasks-main-title, .stages-main-title, .news-main-title { font-size: 2rem; }
  .card-inner, .stage-card-inner, .news-info { padding: 30px 20px; }
  .info-card-modern { margin-bottom: 15px; }
}