/* ═══════════════════════════════════════════════════════════
   OM WELCOME / AUTH POPUP
   ═══════════════════════════════════════════════════════════ */

.om-hide {
	display: none !important;
}

.om-welcome-popup {
	display: none;
	background-color: #FCF9F8;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

.om-welcome-popup.open {
	display: block;
}

.om-welcome-wrap {
	display: grid;
}

.om-welcome-img {
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	padding: 100px;
}

.om-welcome-img img {
	display: block;
	max-width: 703px;
	width: 100%;
	height: auto;
}

.om-welcome-img h3 {
	font-weight: 500;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-align: center;
	max-width: 575px;
	width: 100%;
	color: #333F5B;
	margin: 0;
}

.om-welcome-img h3 span {
	color: #3495FF;
}

.om-welcome-ctn {
	padding: 82px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	max-height: 100vh;
	overflow: auto;
}
.om-welcome-ctn::-webkit-scrollbar {width: 4px;}
.om-welcome-ctn::-webkit-scrollbar-thumb {background: #d1d5db;border-radius: 4px;}

.om-welcome-ctn .logoText {
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1.2;
	font-size: clamp(28px, 2.4vw, 46px);
	text-align: center;
	display: block;
	margin-bottom: 92px;
}

.om-welcome-ctn h3 {
	font-weight: 500;
	font-size: 38px;
	line-height: 1.3;
	letter-spacing: -0.03em;
	text-align: center;
	color: #333F5B;
}

.om-welcome-ctn-inner {
	max-width: 538px;
	width: 100%;
	margin: 0 auto;
	height: fit-content;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.om-welcome-ctn .button {
	border-width: 1px;
	border-style: solid;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	text-align: center;
	padding: 14px 24px;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity .2s, transform .15s;
	background-color: #3495FF;
	border-color: #3495FF;
	color: #fff;
}

.om-welcome-ctn .button:hover {
	opacity: .88;
	transform: translateY(-1px);
}

.om-welcome-ctn .button+.button {
	margin-top: 24px;
}

.om-welcome-ctn .button[disabled] {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

.om-welcome-ctn p {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: #6D717B;
	text-align: center;
	margin-top: 24px;
}

.om-welcome-ctn p a,
.om-welcome-ctn p span {
	color: #3495FF;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: -0.03em;
}

.button svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.om-apple-btn {
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #fff !important;
}

.om-mobile-btn {
	background-color: transparent !important;
	border-color: #333F5B !important;
	color: #333F5B !important;
}

/* Close button */
.om-popup-close {
	position: absolute;
	top: 24px;
	right: 28px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #9ba8c0;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
	transition: color .15s, background .15s;
	z-index: 2;
}

.om-popup-close:hover {
	color: #333F5B;
	background: #f0f3f8;
}

/* Forms inside the popup */
.om-form-heading {
	margin-bottom: 48px;
}

.om-form-heading h3 {
	font-weight: 500;
	font-size: 38px;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: #333F5B;
	margin: 0 0 8px;
}

.om-form-heading p {
	color: #6D717B;
	font-size: 15px;
	margin: 0;
}

.om-form-heading p span {
	color: #3495FF;
	font-weight: 600;
}

.om-form-grp {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}

.om-form-grp label {
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	letter-spacing: -0.02em;
	display: block;
	width: 100%;
}

.om-form-grp label span {
	color: #F37F54;
}

.om-form-field {
	background-color: rgba(51, 63, 91, .05);
	display: block;
	width: 100% !important;
	padding: 16px;
	border-radius: 16px 16px 0 0;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	border: 0;
	border-bottom: 1px solid #6D717B;
	outline: none;
	color: #3495FF;
	transition: all .33s ease;
	box-sizing: border-box;
}

.om-icon-field {
	padding: 16px 16px 16px 48px !important;
	background-size: 24px;
	background-repeat: no-repeat;
	background-position: 18px center;
}

.om-phone-field {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iIzMzM0Y1QiI+CiAgPHBhdGggc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMi4yNSA2Ljc1YzAgOC4yODQgNi43MTYgMTUgMTUgMTVoMi4yNWEyLjI1IDIuMjUgMCAwIDAgMi4yNS0yLjI1di0xLjM3MmMwLS41MTYtLjM1MS0uOTY2LS44NTItMS4wOTFsLTQuNDIzLTEuMTA2Yy0uNDQtLjExLS45MDIuMDU1LTEuMTczLjQxN2wtLjk3IDEuMjkzYy0uMjgyLjM3Ni0uNzY5LjU0Mi0xLjIxLjM4YTEyLjAzNSAxMi4wMzUgMCAwIDEtNy4xNDMtNy4xNDNjLS4xNjItLjQ0MS4wMDQtLjkyOC4zOC0xLjIxbDEuMjkzLS45N2MuMzYzLS4yNzEuNTI3LS43MzQuNDE3LTEuMTczTDYuOTYzIDMuMTAyYTEuMTI1IDEuMTI1IDAgMCAwLTEuMDkxLS44NTJINC41QTIuMjUgMi4yNSAwIDAgMCAyLjI1IDQuNXYyLjI1WiIgLz4KPC9zdmc+");
}

.om-form-field:focus,
.om-form-field:not(:placeholder-shown) {
	border-bottom: 2px solid #3495FF;
	background-color: rgba(110, 173, 241, .15);
}

.om-otpField-wrap {
	display: flex;
	flex-direction: row;
	gap: 24px;
	margin-bottom: 32px;
}

.om-otpField-wrap .om-form-field {
	font-weight: 500;
	font-size: 32px;
	line-height: 1.35;
	letter-spacing: -0.04em;
	text-align: center;
	padding: 16px 0;
}

.om-otpField-wrap .om-form-field:not(:placeholder-shown) {
	background-color: rgba(51, 63, 91, .05);
	color: #333F5B;
	border-color: #6D717B;
}

.om-welcome-form {
	width: 100%;
	max-width: 538px;
	height: fit-content;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Popup status messages */
.om-popup-msg {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 16px;
}

.om-popup-msg.om-msg-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.om-popup-msg.om-msg-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Prevent body scroll when popup is open */
body.om-popup-open {
	overflow: hidden;
}

/* ── Notices ────────────────────────────────────────────── */
.om-error,
.om-notice {
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
}

.om-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.om-notice {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 992px) {
	.om-welcome-wrap {
		grid-template-columns: 1fr 1fr;
		min-height: 100dvh;
	}
}

@media (max-width: 1600px) {
	.om-welcome-img {
		padding: 50px 80px;
	}

	.om-welcome-img h3 {
		font-size: clamp(32px, 3vw, 42px);
	}
}

@media (max-width: 1199px) {
	.om-welcome-img {
		padding: 60px;
	}

	.om-welcome-wrap {
		overflow: auto;
		max-height: 100vh;
	}

	.om-otpField-wrap .om-form-field {
		font-size: 20px;
		line-height: 1;
	}

	.om-welcome-ctn {
		padding: 60px;
	}
}

@media (max-width: 768px) {
	.om-blogArticle-wrap-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.om-welcome-ctn .logoText {
		margin-bottom: 24px;
	}

	.om-welcome-img {
		padding: 20px;
	}

	.om-welcome-ctn {
		padding: 56px 20px;
	}

	.om-welcome-ctn-inner .button+.button {
		margin-top: 16px;
	}
}

@media (max-width: 480px) {
	.blog-articles-section .container {
		padding: 0 16px;
	}
}

/* ── Google GSI overlay ───────────────────────────────────────
   The GSI-rendered iframe sits as a transparent overlay on top
   of our custom #om-google-btn.  opacity:0.001 keeps the iframe
   interactive (opacity:0 blocks pointer events in some browsers).
   ──────────────────────────────────────────────────────────── */
#om-google-btn {
	position: relative;
	overflow: hidden;
}

#om-gsi-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	pointer-events: all;
}

#om-gsi-overlay > div,
#om-gsi-overlay iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0.001 !important;    /* invisible but click-target stays active */
	pointer-events: all !important;
}

/* ═══════════════════════════════════════════════════════════
   COURSE CARD — ENROLMENT BUTTON STATES
   ═══════════════════════════════════════════════════════════ */

/* Base pill shared by all CTA states */
.om-enroll-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

/* Enrolled + 0 % progress → "Start course" */
.om-enroll-trigger.om-start-course {
	background-color: #3495FF;
	color: #fff;
	border-radius: 999px;
	padding: 6px 18px;
	font-weight: 600;
}
.om-enroll-trigger.om-start-course:hover {
	background-color: #1a7fe8;
}

/* Enrolled + progress > 0 → "▶ Continue course" */
.om-enroll-trigger.om-continue-course {
	background-color: #22c55e;
	color: #fff;
	border-radius: 999px;
	padding: 6px 18px;
	font-weight: 600;
}
.om-enroll-trigger.om-continue-course:hover {
	background-color: #16a34a;
}

.om-enroll-trigger.om-enrolled.om-continue-course.om-start-course {background: #3495FF !important; color: #fff !important;}
.blog-articles-section .blogArticleReadMore .om-btn-loading  {min-width: 90px; min-height: 21px; text-align: center; align-items: center; justify-content: center;}


/* ═══════════════════════════════════════════════════════════
   USER PROFILE SHORTCODE  [om_user_profile]
   ═══════════════════════════════════════════════════════════ */

.om-user-profile-wrap {
	font-family: inherit;
}

/* Loading state */
.om-profile-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #666;
	font-size: 0.9em;
	padding: 16px 0;
}

.om-profile-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top-color: #3495FF;
	border-radius: 50%;
	animation: om-spin 0.7s linear infinite;
	flex-shrink: 0;
}

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

/* Dropdown Trigger */
.om-dropdown-container { position: relative; display: inline-block; height: fit-content; margin-left: auto; }
.om-dropdown-container .om-trigger-btn { background: #eef2f7; border: 1px solid #dddddd; padding: 8px 16px; border-radius: 40px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.om-dropdown-container .om-trigger-btn:hover { background: #e2e8f0; }
.om-dropdown-container .avatar-circle { width: 32px; height: 32px; background-color: #e97c4a; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 4px 10px rgba(126,211,33,0.3); }
.om-dropdown-container .arrow-icon { border: solid #666; border-width: 0 1.5px 1.5px 0; display: inline-block; padding: 2.5px; transform: rotate(45deg); margin-bottom: 2px; }

/* Dropdown Menu */
.om-dropdown-menu { position: absolute; top: calc(100% + 15px); right: 0; width: 320px; background-color: #ffffff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; display: none; flex-direction: column; transform-origin: top right; z-index: 1000; }
.om-dropdown-menu.active { display: flex; animation: omSlideDown 0.3s ease-out forwards; }
@keyframes omSlideDown {
	from { opacity: 0; transform: scale(0.95) translateY(-10px); }
	to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Menu Header */
.om-dropdown-menu .menu-header { padding: 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #f0f2f5; }
.om-dropdown-menu .header-avatar { width: 56px; height: 56px; background-color: #e97c4a; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.om-dropdown-menu .user-info h4 { font-size: 16px; color: #1a1f36; margin: 0 0 4px; font-weight: 700; font-family: var(--font-avenir-next); }
.om-dropdown-menu .user-info p { font-size: 13px; color: #697386; margin: 0; font-family: var(--font-avenir-next); }

/* Menu Links (Profile / My Courses / My Orders) */
.om-menu-links { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid #f0f2f5; }
.om-menu-link { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #1a1f36; text-decoration: none; font-size: 14px; font-family: var(--font-avenir-next); font-weight: 500; transition: background 0.2s ease, color 0.2s ease; }
.om-menu-link:hover { background: #f7f9fc; color: #e97c4a; }
.om-menu-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Menu Footer */
.om-menu-footer { padding: 16px 24px; border-top: 1px solid #f0f2f5; }
.om-menu-footer .sign-out-btn { background-color: transparent; border: 0; outline: none; display: flex; align-items: center; gap: 10px; color: #ff4d4d; text-decoration: none; font-size: 14px; font-family: var(--font-avenir-next); font-weight: 500; transition: opacity 0.3s ease; }
.om-menu-footer .sign-out-btn:hover { opacity: 0.7; }
.om-menu-footer .icon-logout { width: 18px; height: 18px; }

/* Guest state */
.om-profile-guest {display: flex;align-items: center;gap: 16px;padding: 16px 0;}
.om-profile-guest p {margin: 0;color: #555;font-size: 0.9em;}
.ctaButton{outline: none;font-family: var(--font-pp-neue-montreal);border: 0;cursor: pointer;}
.ctaButton:hover{text-decoration: none;}
.om-enroll-trigger.om-start-course:hover{background-color: #e97c4a;transform: translateY(-1px);color: #FFFFFF !important;}

/* ─── Enrol button loading state ──────────────────────────────────────────── */
.om-enroll-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: om-spin 0.65s linear infinite;
	vertical-align: middle;
	flex-shrink: 0;
}
/* Default (uncoloured) button — before JS upgrades it to start/continue */
.om-enroll-trigger:not(.om-start-course):not(.om-continue-course) .om-enroll-spinner {
	border-color: rgba(0, 0, 0, 0.15);
	border-top-color: #3495FF;
}
.om-enroll-trigger.om-enroll-loading {
	opacity: 0.78;
	cursor: wait !important;
	pointer-events: none !important;
}
.om-enroll-trigger.om-enroll-loading .om-btn-loading {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
}


#om-profile-card #om_dropdownTrigger{  position: relative;  display: flex; align-items: center;  gap: 10px;   cursor: pointer;  user-select: none;  /* background: #FCF9F8; */ box-shadow: none; padding: 0;  padding-right: 12px;}
#om-profile-card #om_dropdownTrigger .avatar-circle {   width: 64px;  height: 64px; border-radius: 50%; object-fit: cover;  object-position: center;    flex-shrink: 0;  display: block;   display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;}
#om-profile-card #om_dropdownTrigger .avatar-circle img {   width: 64px;  height: 64px; border-radius: 50%; object-fit: cover;  object-position: center;  }
#om-profile-card #om_dropdownTrigger .om-student-name { font-family: 'Avenir Next', sans-serif;  font-weight: 600;   font-size: 14px;  color: #1A1D23;  white-space: nowrap;  text-transform: capitalize;}
#om-profile-card #om_dropdownMenu {
    position: absolute;  top: calc(100% + 14px);  right: 0;  width: 100%;  min-width: 210px;  background: #ffffff;  border-radius: 14px;  box-shadow: 0 8px 36px rgba(51, 63, 91, 0.13);  padding: 8px 0;  z-index: 9999;  opacity: 0;  pointer-events: none;  transform: translateY(-6px);  transition: opacity 0.18s ease, transform 0.18s ease;}
#om-profile-card #om_dropdownMenu.active{  opacity: 1;  pointer-events: all;  transform: translateY(0);}
#om-profile-card #om_dropdownMenu .menu-header { display: flex;  align-items: center; gap: 10px;  padding: 10px 16px 14px; border: none;}
#om-profile-card #om_dropdownMenu .header-avatar{  width: 36px;height: 36px;   border-radius: 50%;  object-fit: cover;  flex-shrink: 0;}
#om-profile-card #om_dropdownMenu .header-avatar img{ width: 36px !important;  height: 36px !important; border-radius: 50% !important;  object-fit: cover;  flex-shrink: 0;border: 2px solid #3495FF;}
#om-profile-card #om_dropdownMenu .menu-header .user-info h4 {  display: block;  font-family: 'Avenir Next', sans-serif;  font-weight: 600;  font-size: 14px;  text-transform: capitalize;   color: #1A1D23;}
#om-profile-card #om_dropdownMenu .menu-header .user-info p{    font-family:'Avenir Next', sans-serif;  font-size: 11px; line-height: 16px;    color: #6D717B;}
#om-profile-card #om_dropdownMenu .om-menu-links {padding: 0 0 4px 0; border: none;}
#om-profile-card #om_dropdownMenu .om-menu-links a{display: flex;  align-items: center;  gap: 10px;  padding: 9px 16px;  font-family: 'Avenir Next', sans-serif;  font-size: 14px;  font-weight: 500;   color: #1A1D23;  text-decoration: none;  transition: background 0.14s;}
#om-profile-card #om_dropdownMenu .om-menu-links a:hover {  background: #F5F7FA;   color: #3495FF;}
#om-profile-card #om_dropdownMenu .om-menu-footer {  padding: 4px 0 0 0;    border-top: 1px solid #EEF0F4;}
#om-profile-card #om_dropdownMenu .om-menu-footer a {display: flex;
    align-items: center;   gap: 10px;  padding: 9px 16px;  font-family: 'Avenir Next', sans-serif;   font-size: 14px;   font-weight: 500;    color: #E5494A;   text-decoration: none;  transition: background 0.14s;}
#om-profile-card #om_dropdownMenu .om-menu-footer a:hover { background: #FFF0F0;   color: #E5494A;}

.om-userpro-mobilebar {display: flex; align-items: center;}

@media (max-width: 1024px) {
	#om-profile-card #om_dropdownTrigger .avatar-circle img, #om-profile-card #om_dropdownTrigger .avatar-circle {
            width: 40px;
            height: 40px;
        }
}
@media (max-width: 767px) {
	#om-profile-card #om_dropdownTrigger{padding-right: 0;}
	#om-profile-card #om_dropdownTrigger .om-student-name, #om-profile-card #om_dropdownTrigger .arrow-icon {display: none;}
  .navRightContainer .mobileTopCta {margin-right: 0;}
}