/* Certification Audience Section Styles */
.certification-audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audience-column .pointers {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(37, 99, 235, 0.02);
}

.audience-column .pointers:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.audience-column .icon-wrap {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.audience-column .icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.audience-column .pointers div:last-child {
    flex: 1;
    line-height: 1.5;
    color: #374151;
}

.audience-column strong {
    color: #0d2c54;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certification-audience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .audience-column .pointers {
        padding: 0.5rem;
    }
}

/* Enhanced existing pointer styles for consistency */
.pointers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-wrap {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Button styles to match existing design */







/* Calendly Popup Styles */
.calendly-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.calendly-popup-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: calendlyPopupIn 0.3s ease-out;
}

@keyframes calendlyPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.calendly-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.calendly-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.calendly-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.calendly-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.calendly-popup-content {
    padding: 0;
    height: 600px;
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    .calendly-popup-container {
        width: 95%;
        height: 95vh;
        max-height: 95vh;
    }
    
    .calendly-popup-content {
        height: calc(95vh - 80px);
    }
    
    .calendly-popup-header {
        padding: 16px 20px;
    }
}

/* Ensure Calendly widget fits properly */
#calendly-embed .calendly-inline-widget {
    height: 100% !important;
    min-height: 600px !important;
}

.lesson-clr {
    color: #007bff; /* blue color or your desired shade */
    font-weight: 600;
}

.icon-64 {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-clr {
    color: #2563eb;
}

/* Phone Code Dropdown Styles (from signup.css) */
.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px;
    width: auto;
    min-width: 80px;
}

.country-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-code-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Select2 Custom Styling for Phone Code */
.select2-container--default .select2-selection--single {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    height: 48px !important;
    padding: 0 8px !important;
}

/* Phone Code Select Width Override */
.phone-code-select + .select2-container,
#phonecode-course-details + .select2-container,
select.phone-code-select + .select2-container {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

/* Phone Code Select Background Color to match other inputs */
.phone-code-select {
    background-color: #303030 !important;
    color: #c4c4c4 !important;
}

.phone-code-select + .select2-container .select2-selection--single,
#phonecode-course-details + .select2-container .select2-selection--single {
    background-color: #303030 !important;
    border-color: #303030 !important;
}

.phone-code-select + .select2-container .select2-selection__rendered,
#phonecode-course-details + .select2-container .select2-selection__rendered {
    color: #c4c4c4 !important;
}

.phone-code-select + .select2-container .select2-selection__rendered .country-code-text,
#phonecode-course-details + .select2-container .select2-selection__rendered .country-code-text {
    color: #c4c4c4 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
}

/* Select2 Dropdown Styling */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 200px;
    min-width: 120px !important;
}

.select2-container--open .select2-dropdown {
    min-width: 140px !important;
    width: auto !important;
}

/* Custom Scrollbar for Country Dropdown */
.select2-container--default .select2-results__options {
    max-height: 200px;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.select2-container--default .select2-results__options::-webkit-scrollbar {
    width: 4px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-track {
    background: transparent;
    margin: 2px 0;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
    width: 1px;
    min-height: 30px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.select2-container--default .select2-results__options.minimal-scroll::-webkit-scrollbar {
    width: 3px;
}

.select2-container--default .select2-results__options.minimal-scroll::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 1px;
    width: 1px;
}

.ultra-thin-scrollbar::-webkit-scrollbar {
    width: 2px;
}

.ultra-thin-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ultra-thin-scrollbar::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 1px;
}

.ultra-thin-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.country-dropdown .select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

.country-dropdown .select2-results__options::-webkit-scrollbar {
    width: 3px;
}

.country-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 1.5px;
}

.blog-inner-rich-text h2,
.blog-inner-rich-text h3 {
  scroll-margin-top: 120px;
}

.blog-right-wrap {
  overscroll-behavior: contain;
}

/* =====================================================
   FIX: Select2 Phone Code (Dark CTA Section Only)
   ===================================================== */

/* 🔒 Lock phone code width (no growth on 3 digits) */
.background-color-light-black 
#phonecode-course-details + .select2-container {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex-shrink: 0 !important;
}

/* 🔒 Lock selection area */
.background-color-light-black 
#phonecode-course-details + .select2-container 
.select2-selection--single {
    width: 90px !important;
    min-width: 90px !important;
    background-color: #303030 !important;
    border-color: #303030 !important;
}

/* 🔒 Prevent dropdown width expansion */
.background-color-light-black 
.select2-container--open .select2-dropdown {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
}

/* 🌙 Dropdown background */
.background-color-light-black 
.select2-container--default .select2-results__options {
    background-color: #f1f1f1 !important;
    color: #101010 !important;
}

/* 🌙 Search input (THIS fixes black text issue) */
.background-color-light-black 
.select2-container--default 
.select2-search--dropdown 
.select2-search__field {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #444 !important;
}

/* Placeholder color */
.background-color-light-black 
.select2-search__field::placeholder {
    color: #999 !important;
}

/* Hover option */
.background-color-light-black 
.select2-container--default 
.select2-results__option--highlighted {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
}


/* ================================
   ENROLL POPUP – FINAL FIX
================================ */

.enroll-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.enroll-overlay.active {
  display: flex !important;
}

/* MODAL */
.enroll-modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popupFade 0.25s ease-out;
}

/* HEADER (GRADIENT FIXED) */
.enroll-header {
  position: relative;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #3b82f6 100%);
  color: #fff;
}

.enroll-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.enroll-header p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* CLOSE BUTTON */
.enroll-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.enroll-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* BODY */
.enroll-body {
  padding: 22px 24px 26px;
}

.enroll-field {
  margin-bottom: 16px;
}

.enroll-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.enroll-field input,
.enroll-field select {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.enroll-field input:focus,
.enroll-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 📱 PHONE ROW FIX */
.enroll-phone-row {
  display: flex;
  gap: 10px;
}

/* Country code SMALL */
.enroll-phone-row select {
  flex: 0 0 120px;
  padding-left: 10px;
}

/* Phone number BIG */
.enroll-phone-row input {
  flex: 1;
}

/* SUBMIT */
.enroll-submit button {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  transition: 0.25s;
}

.enroll-submit button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* ANIMATION */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* MOBILE */
@media (max-width: 520px) {
  .enroll-modal {
    margin: 0 14px;
  }

  .enroll-phone-row {
    flex-direction: row;
  }

  .enroll-phone-row select {
    flex: 0 0 100px;
  }
}
/* ===============================
   SELECT2 PHONE CODE WIDTH FIX
================================ */

.enroll-phone-row .select2-container {
  width: 120px !important;
  min-width: 120px !important;
}

.enroll-phone-row .select2-selection--single {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
}

.enroll-phone-row .select2-selection__rendered {
  padding-left: 0 !important;
  font-size: 14px;
}

.enroll-phone-row .select2-selection__arrow {
  height: 100% !important;
}

/* Phone input stays BIG */
.enroll-phone-row input {
  flex: 1 !important;
}

/* ===============================
   SUBMIT BUTTON LOADING STATE
================================ */

.enroll-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.enroll-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.enroll-submit-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
  display: none;
}

.enroll-submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}
.enroll-button {
  position: relative;
 
}

.enroll-button .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .8s linear infinite;
}

.enroll-button.is-loading {
  pointer-events: none;
  opacity: .8;
}

.enroll-button.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}