/* =========================================================
01. DESIGN SYSTEM
========================================================= */
#sql-offers-hub {
--navy: #080f22;
--navy-light: #142440;
--gold: #ffce62;
--gold-dark: #ad7900;
--accent: #bc1428;
--accent-dark: #810d1c;
--glow: #ffc857;
--white: #ffffff;
--cream: #fffaf0;
--light: #f5f7fb;
--border: #dfe5ee;
--muted: #56647a;
--green: #087b48;
--radius: 20px;
font-family: Inter, Arial, Helvetica, sans-serif;
background: var(--white);
color: var(--navy);
line-height: 1.6;
width: 100%;
position: relative;
isolation: isolate;
}
#sql-offers-hub *,
#sql-offers-hub *::before,
#sql-offers-hub *::after {
box-sizing: border-box;
}
#sql-offers-hub h1,
#sql-offers-hub h2,
#sql-offers-hub h3,
#sql-offers-hub h4,
#sql-offers-hub p {
margin: 0;
}
#sql-offers-hub a {
text-decoration: none;
}
#sql-offers-hub button,
#sql-offers-hub input,
#sql-offers-hub select {
font: inherit;
}
#sql-offers-hub button {
cursor: pointer;
}
#sql-offers-hub [hidden] {
display: none !important;
}
#sql-offers-hub button:focus-visible,
#sql-offers-hub a:focus-visible,
#sql-offers-hub input:focus-visible,
#sql-offers-hub select:focus-visible {
outline: 3px solid #3276cf;
outline-offset: 3px;
}
#sql-offers-hub .so-container {
width: min(1280px, 92%);
margin: auto;
}
#sql-offers-hub .so-section {
padding: 82px 0;
scroll-margin-top: 25px;
}
#sql-offers-hub .so-light {
background: var(--light);
}
#sql-offers-hub .so-center {
text-align: center;
}
#sql-offers-hub .so-kicker {
display: inline-block;
font-size: 11px;
letter-spacing: 2px;
font-weight: 900;
color: #8a5700;
background: #fff0c4;
padding: 7px 17px;
border-radius: 30px;
margin-bottom: 15px;
}
#sql-offers-hub .so-heading {
font-size: clamp(29px, 4vw, 46px);
font-weight: 900;
line-height: 1.15;
letter-spacing: -1.5px;
margin-bottom: 16px;
color: var(--navy);
}
#sql-offers-hub .so-description {
max-width: 760px;
margin: 0 auto 35px;
color: var(--muted);
font-size: 15px;
}
#sql-offers-hub .so-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 46px;
padding: 13px 22px;
border: 1px solid transparent;
border-radius: 9px;
font-weight: 800;
font-size: 13px;
text-align: center;
line-height: 1.4;
transition: transform .25s, box-shadow .25s;
}
#sql-offers-hub .so-button:hover {
transform: translateY(-2px);
box-shadow: 0 9px 20px #0002;
}
#sql-offers-hub .so-button-gold {
background: linear-gradient(135deg,#fff0ac,#ffc43c);
color: #101727;
border-color: #ffd66e;
}
#sql-offers-hub .so-button-dark {
background: var(--navy);
color: #ffffff;
}
#sql-offers-hub .so-button-green {
background: var(--green);
color: #ffffff;
}
#sql-offers-hub .so-button-outline {
background: transparent;
border-color: #cbd5e1;
color: var(--navy);
}
#sql-offers-hub .so-button-white {
background: #ffffff;
color: var(--navy);
}
#sql-offers-hub .so-small {
font-size: 12px;
color: var(--muted);
}
#sql-offers-hub .so-grid {
display: grid;
gap: 22px;
}
#sql-offers-hub .so-grid-3 {
grid-template-columns: repeat(3,minmax(0,1fr));
}
#sql-offers-hub .so-grid-4 {
grid-template-columns: repeat(4,minmax(0,1fr));
}
/* =========================================================
02. ANNOUNCEMENT AND HEADER
========================================================= */
#sql-offers-hub .so-announcement {
background: linear-gradient(
90deg,
var(--accent-dark),
var(--accent),
var(--accent-dark)
);
color: white;
text-align: center;
padding: 11px 15px;
font-size: 12px;
font-weight: 800;
letter-spacing: .8px;
}
#sql-offers-hub .so-header {
background: #ffffff;
border-bottom: 1px solid var(--border);
}
#sql-offers-hub .so-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
min-height: 86px;
}
#sql-offers-hub .so-brand {
display: flex;
align-items: center;
color: var(--navy);
}
#sql-offers-hub .so-brand img {
display: block;
width: 235px;
max-width: 100%;
height: auto;
}
#sql-offers-hub .so-logo-fallback {
background: linear-gradient(
135deg,
#ffda78,
#fff3cc,
#e9b64c
);
border: 1px solid #d2a347;
padding: 7px 12px;
text-align: center;
}
#sql-offers-hub .so-logo-title {
color: #1005a6;
font-size: 28px;
font-weight: 1000;
line-height: 1.1;
letter-spacing: -1px;
}
#sql-offers-hub .so-logo-title span {
color: #cc0000;
}
#sql-offers-hub .so-logo-subtitle {
font-size: 10px;
font-weight: 800;
color: #111111;
}
#sql-offers-hub .so-nav {
display: flex;
align-items: center;
gap: 23px;
}
#sql-offers-hub .so-nav a {
color: var(--navy);
font-size: 13px;
font-weight: 800;
}
#sql-offers-hub .so-nav a:hover {
color: var(--accent);
}
#sql-offers-hub .so-header-actions {
display: flex;
align-items: center;
gap: 9px;
}
#sql-offers-hub .so-wallet-button {
background: #fff6dc;
color: var(--navy);
border: 1px solid #e4c771;
border-radius: 9px;
padding: 11px 15px;
font-size: 13px;
font-weight: 800;
}
#sql-offers-hub .so-wallet-count {
display: inline-grid;
place-items: center;
background: var(--navy);
color: #ffffff;
border-radius: 30px;
min-width: 21px;
height: 21px;
font-size: 11px;
}
/* =========================================================
03. PREMIUM ANIMATED HERO
========================================================= */
#sql-offers-hub .so-hero {
position: relative;
overflow: hidden;
isolation: isolate;
color: #ffffff;
background:
radial-gradient(
ellipse at 80% 35%,
color-mix(in srgb,var(--accent) 30%,transparent),
transparent 46%
),
linear-gradient(135deg,#050a18,#122442,#080f22);
padding: 80px 0 45px;
}
#sql-offers-hub .so-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background-image:
linear-gradient(#ffffff05 1px,transparent 1px),
linear-gradient(90deg,#ffffff05 1px,transparent 1px);
background-size: 45px 45px;
pointer-events: none;
}
#sql-offers-hub .so-hero-grid {
display: grid;
grid-template-columns: 1.1fr .9fr;
align-items: center;
gap: 40px;
}
#sql-offers-hub .so-campaign-label {
display: inline-flex;
align-items: center;
gap: 8px;
color: #ffe1a0;
background: #ffffff0c;
border: 1px solid #ffcf6250;
border-radius: 50px;
padding: 9px 17px;
font-weight: 800;
font-size: 11px;
letter-spacing: 1.3px;
margin-bottom: 22px;
}
#sql-offers-hub .so-live-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ffce62;
animation: soPulse 1.5s infinite;
}
#sql-offers-hub .so-hero h1 {
font-size: clamp(38px,5.2vw,73px);
color: #ffffff;
line-height: 1.05;
font-weight: 950;
letter-spacing: -2.8px;
}
#sql-offers-hub .so-hero h1 span {
display: block;
color: #ffda87;
margin-top: 9px;
}
#sql-offers-hub .so-hero-description {
color: #d4e0f0;
font-size: 17px;
max-width: 660px;
margin: 24px 0;
}
#sql-offers-hub .so-hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin: 25px 0;
}
#sql-offers-hub .so-hero-actions .so-button-outline {
color: #ffffff;
border-color: #ffffff60;
}
#sql-offers-hub .so-hero-benefits {
display: flex;
flex-wrap: wrap;
gap: 12px;
color: #c8d5e7;
font-size: 12px;
}
#sql-offers-hub .so-hero-benefits span::before {
content: "✓ ";
color: #ffda87;
}
/* Animated premium discount ticket */
#sql-offers-hub .so-stage {
position: relative;
display: grid;
place-items: center;
min-height: 410px;
isolation: isolate;
}
#sql-offers-hub .so-orbit {
position: absolute;
width: 90%;
max-width: 405px;
aspect-ratio: 1;
border: 1px dashed #ffce6260;
border-radius: 50%;
animation: soRotate 45s linear infinite;
z-index: -1;
}
#sql-offers-hub .so-orbit::after {
content: "";
width: 12px;
height: 12px;
border-radius: 50%;
background: #fff0b5;
box-shadow: 0 0 22px #ffcb51;
position: absolute;
left: 50%;
top: -6px;
}
#sql-offers-hub .so-orbit-inner {
position: absolute;
width: 75%;
max-width: 335px;
aspect-ratio: 1;
border: 1px solid #ffce6225;
border-radius: 50%;
z-index: -1;
}
#sql-offers-hub .so-ticket {
position: relative;
width: min(360px,90%);
padding: 32px 20px;
text-align: center;
border: 1px solid #ffdb85;
border-radius: 24px;
background:
linear-gradient(
145deg,
#fff2c7,
#ffdc83 40%,
#e8ad35 75%,
#ffdf87
);
color: #211500;
box-shadow:
0 30px 80px #0005,
0 0 50px #ffce6220;
animation: soFloat 4s ease-in-out infinite;
overflow: hidden;
}
#sql-offers-hub .so-ticket::before,
#sql-offers-hub .so-ticket::after {
content: "";
position: absolute;
width: 26px;
height: 26px;
border-radius: 50%;
background: #0b162b;
bottom: 68px;
}
#sql-offers-hub .so-ticket::before {
left: -13px;
}
#sql-offers-hub .so-ticket::after {
right: -13px;
}
#sql-offers-hub .so-ticket-shine {
position: absolute;
width: 50%;
height: 140%;
left: -100%;
top: -20%;
transform: skewX(-22deg);
background: linear-gradient(
90deg,transparent,#ffffff70,transparent
);
animation: soShine 6s infinite;
pointer-events: none;
}
#sql-offers-hub .so-ticket-icon {
font-size: 42px;
line-height: 1.25;
margin-bottom: 10px;
}
#sql-offers-hub .so-ticket-label {
font-size: 13px;
letter-spacing: 4px;
font-weight: 900;
}
#sql-offers-hub .so-ticket-discount {
display: block;
font-size: clamp(75px,10vw,115px);
font-weight: 1000;
letter-spacing: -7px;
line-height: 1.05;
color: #171207;
text-shadow: 0 3px 0 #ffffff70;
}
#sql-offers-hub .so-ticket-off {
font-size: 38px;
font-weight: 1000;
letter-spacing: 7px;
line-height: 1.1;
}
#sql-offers-hub .so-ticket-caption {
font-size: 12px;
font-weight: 700;
margin: 12px 0 20px;
}
#sql-offers-hub .so-ticket-bottom {
border-top: 2px dashed #8c5e0070;
padding-top: 15px;
font-size: 11px;
font-weight: 900;
letter-spacing: 1px;
}
#sql-offers-hub .so-sparkles {
position: absolute;
inset: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
#sql-offers-hub .so-sparkles i {
position: absolute;
top: -15px;
width: 5px;
height: 10px;
border-radius: 1px;
animation: soFall linear infinite;
opacity: .5;
}
/* =========================================================
04. LIVE COUNTDOWN
========================================================= */
#sql-offers-hub .so-timer-panel {
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
padding: 25px 30px;
margin-top: 40px;
border: 1px solid #ffffff22;
border-radius: 17px;
background: #ffffff08;
}
#sql-offers-hub .so-timer-title {
font-size: 16px;
color: #ffda87;
font-weight: 900;
}
#sql-offers-hub .so-timer-note {
color: #bfcee2;
font-size: 12px;
}
#sql-offers-hub .so-timer {
display: flex;
gap: 10px;
}
#sql-offers-hub .so-time {
min-width: 76px;
padding: 10px 12px;
background: #ffffff0c;
border: 1px solid #ffffff25;
border-radius: 10px;
text-align: center;
}
#sql-offers-hub .so-time strong {
display: block;
color: #ffffff;
font-weight: 900;
font-size: 29px;
font-variant-numeric: tabular-nums;
line-height: 1.2;
}
#sql-offers-hub .so-time small {
color: #bbcbe2;
font-size: 10px;
text-transform: uppercase;
letter-spacing: .8px;
}
/* =========================================================
05. TRUST BAR
========================================================= */
#sql-offers-hub .so-trust {
background: #ffffff;
border-bottom: 1px solid var(--border);
padding: 24px 0;
}
#sql-offers-hub .so-trust-item {
text-align: center;
border-right: 1px solid var(--border);
}
#sql-offers-hub .so-trust-item:last-child {
border-right: 0;
}
#sql-offers-hub .so-trust-item strong {
display: block;
font-size: 18px;
font-weight: 900;
}
#sql-offers-hub .so-trust-item small {
font-size: 12px;
color: var(--muted);
}
/* =========================================================
06. CAMPAIGN SELECTOR
========================================================= */
#sql-offers-hub .so-campaign-tabs {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-bottom: 30px;
}
#sql-offers-hub .so-campaign-tab {
background: #ffffff;
border: 1px solid var(--border);
border-radius: 12px;
color: var(--navy);
padding: 13px 20px;
text-align: left;
min-width: 180px;
transition: .25s;
}
#sql-offers-hub .so-campaign-tab strong {
display: block;
font-size: 14px;
}
#sql-offers-hub .so-campaign-tab small {
color: var(--muted);
font-size: 11px;
}
#sql-offers-hub .so-campaign-tab.active {
background: var(--navy);
border-color: var(--navy);
color: #ffffff;
}
#sql-offers-hub .so-campaign-tab.active small {
color: #ffdc87;
}
#sql-offers-hub .so-campaign-summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 18px 23px;
background: linear-gradient(135deg,#fff8e8,#ffffff);
border: 1px solid #e8d39a;
border-radius: 13px;
margin-bottom: 25px;
}
#sql-offers-hub .so-campaign-summary strong {
font-size: 17px;
}
#sql-offers-hub .so-campaign-summary p {
font-size: 12px;
color: var(--muted);
}
/* =========================================================
07. SEARCH AND COURSE FILTERS
========================================================= */
#sql-offers-hub .so-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 13px;
margin-bottom: 18px;
}
#sql-offers-hub .so-search {
width: min(520px,100%);
border: 1px solid #cbd5e1;
background: #ffffff;
border-radius: 9px;
padding: 13px 16px;
min-height: 48px;
color: var(--navy);
}
#sql-offers-hub .so-sort {
border: 1px solid #cbd5e1;
padding: 12px;
border-radius: 9px;
background: white;
color: var(--navy);
min-height: 48px;
}
#sql-offers-hub .so-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 23px;
}
#sql-offers-hub .so-filter {
padding: 9px 15px;
border-radius: 30px;
border: 1px solid #e1e7ef;
background: #f1f4f8;
color: #24344b;
font-size: 12px;
font-weight: 800;
}
#sql-offers-hub .so-filter.active {
background: var(--navy);
border-color: var(--navy);
color: #ffffff;
}
#sql-offers-hub .so-result-count {
color: var(--muted);
font-size: 12px;
font-weight: 700;
margin-bottom: 18px;
}
/* =========================================================
08. COURSE COUPON CARDS
========================================================= */
#sql-offers-hub .so-course-card {
position: relative;
display: flex;
flex-direction: column;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 17px;
overflow: hidden;
box-shadow: 0 5px 18px #0c1b3507;
transition: transform .3s,box-shadow .3s;
animation: soAppear .4s ease both;
}
#sql-offers-hub .so-course-card:hover {
transform: translateY(-5px);
box-shadow: 0 18px 35px #0c1b3517;
}
#sql-offers-hub .so-card-header {
position: relative;
padding: 25px 22px 20px;
min-height: 166px;
background: linear-gradient(
135deg,
var(--course-bg,#edf4ff),
#ffffff
);
border-bottom: 1px solid var(--border);
}
#sql-offers-hub .so-course-icon {
display: grid;
place-items: center;
width: 55px;
height: 55px;
font-size: 27px;
border-radius: 13px;
background: #ffffffb0;
border: 1px solid #dfe5ee;
margin-bottom: 15px;
}
#sql-offers-hub .so-course-category {
display: block;
text-transform: uppercase;
color: #53647b;
letter-spacing: 1.2px;
font-size: 10px;
font-weight: 800;
margin-bottom: 5px;
}
#sql-offers-hub .so-card-header h3 {
color: var(--navy);
font-size: 21px;
font-weight: 900;
line-height: 1.25;
}
#sql-offers-hub .so-discount-tag {
position: absolute;
top: 20px;
right: 16px;
background: var(--accent);
color: #ffffff;
border-radius: 7px;
padding: 7px 13px;
font-size: 16px;
font-weight: 900;
}
#sql-offers-hub .so-card-body {
padding: 22px;
display: flex;
flex-direction: column;
flex: 1;
}
#sql-offers-hub .so-card-body > p {
font-size: 13px;
color: var(--muted);
margin-bottom: 16px;
}
#sql-offers-hub .so-skill-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 17px;
}
#sql-offers-hub .so-skill-tags span {
background: #f0f4f9;
color: #33445d;
border: 1px solid #e2e8f1;
font-size: 10px;
font-weight: 700;
padding: 4px 8px;
border-radius: 5px;
}
#sql-offers-hub .so-card-features {
list-style: none;
padding: 0;
margin: 0 0 20px;
color: #3d4c62;
font-size: 12px;
}
#sql-offers-hub .so-card-features li {
margin-bottom: 5px;
}
#sql-offers-hub .so-card-features li::before {
content: "✓ ";
color: #087b48;
font-weight: 900;
}
#sql-offers-hub .so-coupon-ticket {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
background: #fff8e5;
border: 1px dashed #c59a35;
border-radius: 8px;
padding: 12px;
margin-top: auto;
margin-bottom: 12px;
}
#sql-offers-hub .so-coupon-ticket small {
display: block;
font-size: 9px;
color: #795300;
font-weight: 800;
letter-spacing: .5px;
}
#sql-offers-hub .so-coupon-code {
display: block;
color: #2d2106;
font-size: 15px;
font-weight: 900;
letter-spacing: .6px;
overflow-wrap: anywhere;
}
#sql-offers-hub .so-copy-button {
padding: 7px 10px;
border-radius: 6px;
background: #ffffff;
color: #493400;
border: 1px solid #d4ba76;
font-size: 11px;
font-weight: 800;
flex-shrink: 0;
}
#sql-offers-hub .so-card-actions {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
}
#sql-offers-hub .so-save-button {
border: 1px solid #d1dae7;
background: #ffffff;
color: var(--navy);
border-radius: 9px;
padding: 8px 15px;
font-size: 21px;
line-height: 1;
}
#sql-offers-hub .so-save-button.saved {
background: #fff3cd;
border-color: #d4ae46;
color: #8d5d00;
}
#sql-offers-hub .so-curriculum {
display: block;
color: #174e9e;
font-size: 12px;
font-weight: 800;
text-align: center;
padding-top: 13px;
}
#sql-offers-hub .so-expiry {
color: var(--muted);
text-align: center;
font-size: 10px;
margin-top: 10px;
}
#sql-offers-hub .so-empty {
grid-column: 1/-1;
text-align: center;
padding: 45px 20px;
background: #f5f7fb;
border: 1px solid var(--border);
border-radius: 13px;
}
/* =========================================================
09. SPECIAL REWARD DEALS
========================================================= */
#sql-offers-hub .so-reward-card {
position: relative;
background: #ffffff;
border: 1px solid #dfd3b5;
border-radius: 17px;
overflow: hidden;
display: flex;
flex-direction: column;
}
#sql-offers-hub .so-reward-top {
padding: 24px;
background:
radial-gradient(ellipse at right,#ffffff15,transparent),
linear-gradient(135deg,#080f22,#243c5f);
color: #ffffff;
}
#sql-offers-hub .so-reward-icon {
font-size: 32px;
}
#sql-offers-hub .so-reward-amount {
display: block;
color: #ffdc87;
font-size: 35px;
line-height: 1.2;
font-weight: 950;
margin: 8px 0;
}
#sql-offers-hub .so-reward-top h3 {
font-size: 18px;
color: white;
}
#sql-offers-hub .so-reward-body {
padding: 23px;
display: flex;
flex-direction: column;
flex: 1;
gap: 14px;
}
#sql-offers-hub .so-reward-body p {
font-size: 13px;
color: var(--muted);
}
#sql-offers-hub .so-reward-body .so-button {
margin-top: auto;
}
/* =========================================================
10. SEASONAL OFFER CALENDAR
========================================================= */
#sql-offers-hub .so-calendar-card {
display: flex;
flex-direction: column;
padding: 20px;
border-radius: 14px;
background: #ffffff;
border: 1px solid var(--border);
border-top: 4px solid var(--event-color,#ad7900);
gap: 11px;
transition: .25s;
}
#sql-offers-hub .so-calendar-card:hover {
box-shadow: 0 8px 22px #13284912;
}
#sql-offers-hub .so-calendar-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
#sql-offers-hub .so-calendar-icon {
font-size: 30px;
}
#sql-offers-hub .so-status {
font-size: 10px;
font-weight: 800;
border-radius: 25px;
background: #eef2f7;
color: #43536a;
padding: 5px 10px;
}
#sql-offers-hub .so-status.live {
background: #d9f7e7;
color: #06683b;
}
#sql-offers-hub .so-calendar-card h3 {
font-size: 17px;
line-height: 1.3;
font-weight: 900;
}
#sql-offers-hub .so-calendar-card p {
color: var(--muted);
font-size: 12px;
}
#sql-offers-hub .so-calendar-date {
font-size: 11px;
font-weight: 800;
color: #43536a;
}
#sql-offers-hub .so-calendar-discount {
font-size: 20px;
font-weight: 900;
color: #946300;
}
#sql-offers-hub .so-calendar-card .so-button {
margin-top: auto;
min-height: 40px;
font-size: 12px;
}
/* =========================================================
11. CAREER PATH BUNDLES
========================================================= */
#sql-offers-hub .so-path-card {
padding: 26px;
border: 1px solid var(--border);
background: white;
border-radius: 16px;
display: flex;
flex-direction: column;
gap: 14px;
}
#sql-offers-hub .so-path-card h3 {
font-weight: 900;
font-size: 21px;
}
#sql-offers-hub .so-path-card p {
font-size: 13px;
color: var(--muted);
}
#sql-offers-hub .so-path-step {
display: flex;
align-items: center;
gap: 12px;
background: #f3f6fa;
padding: 11px 12px;
border-radius: 8px;
font-size: 13px;
font-weight: 800;
}
#sql-offers-hub .so-path-step span {
display: grid;
place-items: center;
background: var(--navy);
color: #ffdc87;
min-width: 26px;
height: 26px;
font-size: 12px;
border-radius: 50%;
}
#sql-offers-hub .so-path-arrow {
text-align: center;
color: #a67d20;
font-weight: 900;
line-height: 1;
}
#sql-offers-hub .so-path-card .so-button {
margin-top: auto;
}
/* =========================================================
12. SAVINGS CALCULATOR
========================================================= */
#sql-offers-hub .so-calculator-section {
background:
radial-gradient(ellipse at right,#263d65,transparent),
#080f22;
color: #ffffff;
}
#sql-offers-hub .so-calculator-grid {
display: grid;
grid-template-columns: .85fr 1.15fr;
gap: 45px;
align-items: center;
}
#sql-offers-hub .so-calculator-section .so-heading {
color: #ffffff;
}
#sql-offers-hub .so-calculator-section .so-description {
color: #cbd8ea;
margin-bottom: 0;
}
#sql-offers-hub .so-calculator {
padding: 30px;
background: white;
color: var(--navy);
border-radius: 20px;
}
#sql-offers-hub .so-field {
margin-bottom: 17px;
}
#sql-offers-hub .so-field label {
display: block;
color: #27384e;
font-size: 12px;
font-weight: 800;
margin-bottom: 7px;
}
#sql-offers-hub .so-field input,
#sql-offers-hub .so-field select {
display: block;
width: 100%;
background: #ffffff;
color: var(--navy);
padding: 12px;
border-radius: 8px;
border: 1px solid #cbd5e1;
min-height: 48px;
}
#sql-offers-hub .so-calculation-result {
border: 1px solid #d4e8dc;
border-radius: 12px;
background: #eefaf3;
padding: 20px;
margin: 20px 0;
}
#sql-offers-hub .so-calculation-row {
display: flex;
justify-content: space-between;
gap: 15px;
font-size: 13px;
margin-bottom: 8px;
}
#sql-offers-hub .so-calculation-total {
border-top: 1px solid #bdd7c7;
padding-top: 13px;
margin-top: 13px;
font-size: 17px;
font-weight: 900;
}
#sql-offers-hub .so-calculation-total strong {
color: #087b48;
font-size: 26px;
}
#sql-offers-hub .so-calculator .so-button {
width: 100%;
margin-bottom: 12px;
}
/* =========================================================
13. TRAINING ADVANTAGES
========================================================= */
#sql-offers-hub .so-benefit {
padding: 25px;
border-radius: 14px;
border: 1px solid var(--border);
background: #ffffff;
}
#sql-offers-hub .so-benefit-icon {
font-size: 29px;
margin-bottom: 12px;
}
#sql-offers-hub .so-benefit h3 {
font-size: 16px;
font-weight: 900;
margin-bottom: 8px;
}
#sql-offers-hub .so-benefit p {
color: var(--muted);
font-size: 12px;
}
/* =========================================================
14. CLAIM PROCESS
========================================================= */
#sql-offers-hub .so-process-step {
text-align: center;
padding: 23px 16px;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 14px;
}
#sql-offers-hub .so-step-number {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--navy);
color: #ffdc87;
font-size: 22px;
font-weight: 900;
margin: 0 auto 16px;
}
#sql-offers-hub .so-process-step h3 {
font-size: 16px;
margin-bottom: 8px;
}
#sql-offers-hub .so-process-step p {
font-size: 12px;
color: var(--muted);
}
/* =========================================================
15. FREQUENTLY ASKED QUESTIONS
========================================================= */
#sql-offers-hub .so-faq {
max-width: 850px;
margin: auto;
}
#sql-offers-hub .so-faq details {
background: white;
border: 1px solid var(--border);
border-radius: 10px;
margin-bottom: 11px;
}
#sql-offers-hub .so-faq summary {
font-size: 15px;
font-weight: 800;
cursor: pointer;
padding: 17px 20px;
}
#sql-offers-hub .so-faq details[open] {
border-color: #b3c3d8;
}
#sql-offers-hub .so-faq details p {
color: var(--muted);
font-size: 13px;
padding: 0 20px 20px;
}
/* =========================================================
16. FINAL CONVERSION SECTION
========================================================= */
#sql-offers-hub .so-final {
background:
radial-gradient(ellipse at 50% 0%,#314768,transparent),
linear-gradient(135deg,#080f22,#111f38);
color: #ffffff;
text-align: center;
position: relative;
overflow: hidden;
}
#sql-offers-hub .so-final .so-heading {
color: #ffffff;
}
#sql-offers-hub .so-final .so-heading span {
color: #ffdc87;
}
#sql-offers-hub .so-final .so-description {
color: #d2deef;
}
#sql-offers-hub .so-final-actions {
display: flex;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}
#sql-offers-hub .so-footer {
background: #050a16;
color: #c6d3e6;
padding: 35px 0;
text-align: center;
font-size: 12px;
}
#sql-offers-hub .so-footer a {
color: #ffdc87;
font-weight: 700;
}
#sql-offers-hub .so-footer-links {
display: flex;
justify-content: center;
gap: 18px;
flex-wrap: wrap;
margin: 15px 0;
}
#sql-offers-hub .so-footer-terms {
max-width: 850px;
margin: 20px auto 0;
text-align: left;
background: #ffffff08;
border: 1px solid #ffffff15;
padding: 15px 20px;
border-radius: 8px;
}
#sql-offers-hub .so-footer-terms summary {
color: #ffdc87;
font-weight: 800;
cursor: pointer;
}
#sql-offers-hub .so-footer-terms ul {
padding-left: 20px;
}
/* =========================================================
17. PROMOTIONAL POPUP & COUPON MODALS
========================================================= */
#sql-offers-hub .so-dialog {
width: min(480px,calc(100% - 30px));
max-height: 90vh;
padding: 0;
border: 0;
border-radius: 20px;
background: #ffffff;
color: var(--navy);
box-shadow: 0 25px 90px #0006;
overflow-y: auto;
}
#sql-offers-hub .so-dialog:not([open]) {
display: none;
}
#sql-offers-hub .so-dialog[open] {
animation: soPopup .3s ease both;
}
#sql-offers-hub .so-dialog::backdrop {
background: #020817cc;
backdrop-filter: blur(5px);
}
#sql-offers-hub .so-dialog-close {
position: absolute;
top: 12px;
right: 12px;
width: 34px;
height: 34px;
border: 1px solid #dfe5ef;
border-radius: 50%;
background: #ffffff;
color: #111f38;
z-index: 10;
font-size: 23px;
line-height: 1;
}
#sql-offers-hub .so-dialog-header {
background: linear-gradient(
135deg,#080f22,#253c62
);
padding: 35px 25px 28px;
text-align: center;
color: #ffffff;
}
#sql-offers-hub .so-dialog-header h2 {
color: #ffffff;
font-size: 23px;
font-weight: 900;
line-height: 1.2;
margin: 10px 0;
}
#sql-offers-hub .so-dialog-discount {
font-size: 52px;
font-weight: 1000;
color: #ffda77;
line-height: 1.2;
margin: 12px 0;
}
#sql-offers-hub .so-dialog-body {
padding: 25px;
}
#sql-offers-hub .so-dialog-body p {
font-size: 13px;
color: var(--muted);
margin-bottom: 15px;
}
#sql-offers-hub .so-dialog-body .so-button {
width: 100%;
margin-bottom: 9px;
}
#sql-offers-hub .so-dialog-skip {
display: block;
background: transparent;
border: 0;
color: #64748b;
font-size: 12px;
margin: 10px auto 0;
}
#sql-offers-hub .so-dialog-coupon {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 18px;
border: 2px dashed #cda33f;
border-radius: 10px;
background: #fff8e2;
margin-bottom: 18px;
}
#sql-offers-hub .so-dialog-coupon strong {
font-size: 19px;
overflow-wrap: anywhere;
}
#sql-offers-hub .so-wallet-item {
border: 1px solid var(--border);
padding: 16px;
border-radius: 10px;
margin-bottom: 12px;
}
#sql-offers-hub .so-wallet-item strong {
display: block;
font-size: 16px;
}
#sql-offers-hub .so-wallet-item p {
font-size: 12px;
margin: 5px 0 10px;
}
#sql-offers-hub .so-wallet-actions {
display: flex;
gap: 8px;
}
#sql-offers-hub .so-wallet-actions button {
flex: 1;
margin: 0;
min-height: 38px;
}
/* =========================================================
18. FLOATING AND MOBILE NAVIGATION
========================================================= */
#sql-offers-hub .so-floating {
position: fixed;
right: 22px;
bottom: 25px;
z-index: 9000;
display: flex;
align-items: center;
gap: 8px;
background: #087b48;
color: #ffffff;
padding: 14px 20px;
border-radius: 50px;
box-shadow: 0 8px 25px #0003;
font-size: 13px;
font-weight: 800;
}
#sql-offers-hub .so-mobile-nav {
display: none;
}
#sql-offers-hub .so-toast {
position: fixed;
bottom: 85px;
left: 50%;
transform: translate(-50%,15px);
width: max-content;
max-width: 90%;
padding: 13px 20px;
background: #080f22;
color: #ffffff;
border-radius: 9px;
font-size: 13px;
text-align: center;
z-index: 99999;
opacity: 0;
pointer-events: none;
transition: .3s;
box-shadow: 0 8px 25px #0003;
}
#sql-offers-hub .so-toast.show {
opacity: 1;
transform: translate(-50%,0);
}
#sql-offers-hub .so-dialog-notice {
font-size: 12px;
font-weight: 700;
color: #087b48;
text-align: center;
margin-top: 12px;
}
/* =========================================================
19. ANIMATIONS
========================================================= */
@keyframes soFloat {
0%,100% { transform: translateY(0) rotate(-2deg); }
50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes soRotate {
to { transform: rotate(360deg); }
}
@keyframes soPulse {
50% { opacity: .35; }
}
@keyframes soShine {
0%,40% { left: -100%; }
80%,100% { left: 150%; }
}
@keyframes soFall {
to {
transform: translateY(950px) rotate(540deg);
}
}
@keyframes soAppear {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes soPopup {
from { opacity: 0; transform: scale(.94); }
to { opacity: 1; transform: scale(1); }
}
/* =========================================================
20. RESPONSIVE DESIGN
========================================================= */
@media(max-width:1050px) {
#sql-offers-hub .so-nav {
display: none;
}
#sql-offers-hub .so-grid-4 {
grid-template-columns: repeat(2,minmax(0,1fr));
}
#sql-offers-hub .so-grid-3 {
grid-template-columns: repeat(2,minmax(0,1fr));
}
#sql-offers-hub .so-hero-grid {
gap: 20px;
}
#sql-offers-hub .so-calculator-grid {
gap: 25px;
}
}
@media(max-width:650px) {
#sql-offers-hub {
padding-bottom: 70px;
}
#sql-offers-hub .so-container {
width: 92%;
}
#sql-offers-hub .so-section {
padding: 45px 0;
}
#sql-offers-hub .so-header-inner {
min-height: 72px;
gap: 8px;
}
#sql-offers-hub .so-brand img {
width: 175px;
}
#sql-offers-hub .so-logo-title {
font-size: 22px;
}
#sql-offers-hub .so-logo-subtitle {
font-size: 8px;
}
#sql-offers-hub .so-header-actions > a {
display: none;
}
#sql-offers-hub .so-wallet-button {
padding: 9px 12px;
font-size: 11px;
}
#sql-offers-hub .so-hero {
padding: 40px 0 25px;
}
#sql-offers-hub .so-hero-grid {
grid-template-columns: 1fr;
gap: 20px;
}
#sql-offers-hub .so-hero-content {
text-align: center;
}
#sql-offers-hub .so-hero h1 {
font-size: 39px;
letter-spacing: -1.5px;
}
#sql-offers-hub .so-hero-description {
font-size: 14px;
}
#sql-offers-hub .so-hero-actions,
#sql-offers-hub .so-hero-benefits {
justify-content: center;
}
#sql-offers-hub .so-stage {
min-height: 330px;
}
#sql-offers-hub .so-ticket {
width: min(290px,85%);
padding: 25px 15px;
}
#sql-offers-hub .so-ticket-discount {
font-size: 87px;
}
#sql-offers-hub .so-timer-panel {
flex-direction: column;
text-align: center;
padding: 20px 10px;
gap: 15px;
margin-top: 20px;
}
#sql-offers-hub .so-timer {
gap: 6px;
}
#sql-offers-hub .so-time {
min-width: 59px;
padding: 9px 7px;
}
#sql-offers-hub .so-time strong {
font-size: 24px;
}
#sql-offers-hub .so-trust-item {
border-right: 0;
}
#sql-offers-hub .so-trust-item strong {
font-size: 15px;
}
#sql-offers-hub .so-trust-item small {
font-size: 10px;
}
#sql-offers-hub .so-grid-3,
#sql-offers-hub .so-grid-4 {
gap: 13px;
}
#sql-offers-hub #so-course-grid,
#sql-offers-hub #so-reward-grid,
#sql-offers-hub .so-path-grid {
grid-template-columns: 1fr;
}
#sql-offers-hub .so-toolbar {
flex-direction: column;
align-items: stretch;
}
#sql-offers-hub .so-search {
width: 100%;
}
#sql-offers-hub .so-campaign-tabs {
gap: 8px;
}
#sql-offers-hub .so-campaign-tab {
min-width: 0;
flex: 1 1 145px;
padding: 12px;
}
#sql-offers-hub .so-campaign-summary {
flex-direction: column;
text-align: center;
}
#sql-offers-hub .so-calendar-card {
padding: 15px;
}
#sql-offers-hub .so-calendar-card h3 {
font-size: 15px;
}
#sql-offers-hub .so-calendar-discount {
font-size: 17px;
}
#sql-offers-hub .so-calendar-card .so-button {
padding: 10px;
font-size: 11px;
}
#sql-offers-hub .so-calculator-grid {
grid-template-columns: 1fr;
}
#sql-offers-hub .so-calculator {
padding: 20px;
}
#sql-offers-hub .so-benefit {
padding: 16px;
}
#sql-offers-hub .so-benefit h3 {
font-size: 14px;
}
#sql-offers-hub .so-floating {
display: none;
}
#sql-offers-hub .so-mobile-nav {
display: grid;
grid-template-columns: repeat(3,1fr);
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
box-shadow: 0 -5px 25px #0002;
z-index: 9000;
padding: 8px;
padding-bottom: max(8px,env(safe-area-inset-bottom));
gap: 5px;
}
#sql-offers-hub .so-mobile-nav a,
#sql-offers-hub .so-mobile-nav button {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 3px;
padding: 7px 3px;
border-radius: 8px;
background: #f2f5fa;
border: 0;
color: var(--navy);
font-size: 10px;
font-weight: 800;
}
#sql-offers-hub .so-mobile-nav span {
font-size: 20px;
line-height: 1.2;
}
#sql-offers-hub .so-mobile-nav .so-mobile-wa {
background: #087b48;
color: #ffffff;
}
}
@media(max-width:360px) {
#sql-offers-hub #so-calendar-grid {
grid-template-columns: 1fr;
}
}
@media(prefers-reduced-motion:reduce) {
#sql-offers-hub *,
#sql-offers-hub *::before,
#sql-offers-hub *::after {
animation: none !important;
transition: none !important;
}
#sql-offers-hub .so-sparkles {
display: none;
}
}
SQL SCHOOL — EXCLUSIVE TRAINING OFFERS
SQL SCHOOL OFFERS HUB
Big Savings.
Bigger Skills.
Discover professional IT training
programs and exclusive learning offers
at SQL SCHOOL.
Expert Trainers
Live Online Classes
Practical Projects
Career Support
🎁
SAVE UP TO
—
OFF
Selected IT Training Courses
EXCLUSIVE TRAINING DEALS
⏳ OFFER COUNTDOWN
All campaign timings follow IST.
00
Days
00
Hours
00
Minutes
00
Seconds
Since 2009
Professional IT Training
ISO 9001:2015
Certified Institute
MSME Registered
Training Organization
Live Online
Learn from Anywhere
THE SQL SCHOOL DEAL ZONE
Unlock Your Exclusive Training Discount
Choose a live campaign, explore your preferred
course, save your coupon and connect with our
training team to claim the eligible offer.
Featured Courses
Highest Discount
Course Name A–Z
Please enable JavaScript to view live course
discounts and coupons.
Visit SQL SCHOOL
EXCLUSIVE LEARNING REWARDS
More Ways to Save. More Ways to Grow.
Explore special offers created for returning
students, learning groups and professionals
planning multi-course career development.
YOUR YEAR OF LEARNING
SQL SCHOOL Annual Offer Calendar
Discover seasonal celebrations, recurring
flash sales and upcoming learning festivals.
Future offers are previews until activated.
Future campaign dates and proposed discounts are
subject to confirmation. Only offers marked LIVE
are currently available for coupon enquiries.
LEARN MORE. PLAN SMARTER.
Career Accelerator Bundles
Explore recommended multi-course learning
paths based on your professional goals.
Request a personalized bundle fee from our team.
PLAN YOUR LEARNING INVESTMENT
How Much Can You Save?
Select a course and enter its standard eligible
fee to estimate the discount available under
the currently selected promotional campaign.
Transparent estimates.
No hidden or invented original prices.
Select Your Course
Standard Eligible Course Fee (₹)
Current campaign discount
—
Estimated savings
—
Estimated training fee
—
Confirm My Discount →
This is an estimate based on the fee you enter.
Actual fees, applicable taxes, training plans
and eligibility must be confirmed by SQL SCHOOL.
THE SQL SCHOOL ADVANTAGE
More Than Just a Training Discount
Develop practical technical skills through
structured training, experienced mentors
and career-focused learning resources.
👨🏫
Expert-Led Training
Learn from experienced industry
professionals through interactive sessions.
💻
Hands-On Practice
Develop practical understanding with
demonstrations and technical exercises.
📊
Real-Time Projects
Explore industry-oriented implementation
scenarios in applicable programs.
📚
Detailed Course Notes
Strengthen your understanding with
structured learning resources.
📝
Concept-Wise Assignments
Practice technical concepts through
relevant assignments and exercises.
🎓
Certification Guidance
Receive relevant certification guidance
in applicable training plans.
🎯
Interview Preparation
Prepare for technical interviews with
scenario-based questions and guidance.
💼
Career Assistance
Explore resume support, job assistance
and professional development guidance.
SIMPLE & TRANSPARENT
Claim Your Offer in Four Easy Steps
No complicated checkout or separate
registration page required.
1
Explore Offers
Choose an active campaign and
your preferred training course.
2
Save Your Coupon
Copy your coupon or save it
in your personal browser wallet.
3
Contact Our Team
Confirm course fees, eligibility
and batch schedules through WhatsApp.
4
Start Learning
Complete enrollment after confirming
the appropriate training plan.
EVERYTHING YOU NEED TO KNOW
Frequently Asked Questions
Find answers about seasonal offers,
coupons, discounts and training enrollment.
What is the SQL SCHOOL Offers Hub?
It is a dedicated promotional website
featuring seasonal training discounts,
recurring flash sales and special
learning rewards.
Do offers change automatically?
Yes. Eligible approved campaigns appear
automatically according to their
scheduled dates in Indian Standard Time.
Future campaigns remain previews until
the approved promotional period begins.
How do I redeem a discount coupon?
Select a course under a live campaign.
Click Claim Offer, copy the coupon or
continue to WhatsApp to confirm the
applicable course fee and eligibility.
Can I save multiple coupons?
Yes. You can save multiple coupons in
My Coupons. Saved coupons remain in
this browser when browser storage is
available. Expired coupons cannot
be redeemed through the offer page.
Can I combine multiple offers?
No. Only one eligible coupon is normally
applicable per enrollment unless
SQL SCHOOL explicitly approves otherwise.
Are special offers available for old students?
The Alumni Comeback Offer is intended
for eligible previous SQL SCHOOL students.
Our training team will verify eligibility.
Can I attend a free demo before enrolling?
Yes. Contact our training team to check
available free demo sessions and
upcoming training schedules.
Can three or more friends enroll together?
Eligible learning groups may request
the Learn Together Offer. Group size,
course availability and eligibility
will be confirmed by our team.
Does the savings calculator show final fees?
No. It calculates an estimated fee
using the standard fee entered by you.
Final fees and taxes must be confirmed
before enrollment.
Does saving a coupon reserve my discount?
No. Saving or copying a coupon does not
reserve a seat, extend offer validity
or complete enrollment. Contact our team
before the applicable offer expires.
Does SQL SCHOOL guarantee employment?
SQL SCHOOL provides applicable training,
interview preparation and career assistance.
Employment outcomes depend on individual
skills, experience and employer requirements.
Employment is not guaranteed.
YOUR NEXT CAREER CHAPTER STARTS HERE
Invest in Yourself Today.
Build Your Skills for Tomorrow.
Explore complete course curricula, upcoming
batch schedules, training plans and career
development opportunities at SQL SCHOOL.
💬 Chat with Training Advisor
×
(function () {
"use strict";
const root = document.getElementById("sql-offers-hub");
if (!root || root.dataset.ready === "yes") return;
root.dataset.ready = "yes";
/* =====================================================
MASTER CONFIGURATION
EDIT ONLY THIS SECTION FOR BASIC CHANGES
===================================================== */
const CONFIG = {
brand: "SQL SCHOOL",
website: "https://sqlschool.com",
offersWebsite: "https://offers.sqlschool.com",
whatsapp: "919951440801",
/*
Upload your SQL SCHOOL logo in WordPress.
Paste the original image URL here.
*/
logoUrl: "",
/*
Offers are active only within this approved period.
To enable campaigns for 2027, change
approvedThrough to "2027-12-31"
after approving the future offers.
*/
approvedFrom: "2026-11-24",
approvedThrough: "2026-12-31",
popupEnabled: true,
popupDelay: 7000,
animationsEnabled: true,
trackingEnabled: true,
walletKey: "sqlschool-offer-wallet-v1",
currency: "INR",
locale: "en-IN"
};
/* =====================================================
COURSE DATABASE
base = maximum proposed course discount.
Campaign caps and adjustments are applied
automatically to these percentages.
An empty URL will use WhatsApp for curriculum enquiries.
===================================================== */
const COURSES = [
{
id: "SQL",
name: "Microsoft SQL & T-SQL",
category: "Database",
icon: "🗄️",
base: 30,
color: "#fcecec",
tags: ["MSSQL","T-SQL","SQL Queries","Stored Procedures"],
description:
"Build strong database development and advanced SQL programming skills.",
url: "/microsoft-sql-training/"
},
{
id: "AZURE",
name: "Azure Data Engineer",
category: "Data Engineering",
icon: "☁️",
base: 25,
color: "#e8f3ff",
tags: ["ADF","ADLS","Databricks","Synapse","PySpark"],
description:
"Develop scalable cloud data pipelines and modern Azure data engineering skills.",
url: "/azure-data-engineer-training/"
},
{
id: "DBX",
name: "Databricks Data Engineer",
category: "Data Engineering",
icon: "⚡",
base: 25,
color: "#ffede7",
tags: ["Spark","PySpark","Delta Lake","Workflows"],
description:
"Master distributed data processing, Lakehouse architecture and practical pipelines.",
url: "/databricks-data-engineer-training/"
},
{
id: "SNOW",
name: "Snowflake with dbt & Cortex AI",
category: "Data Engineering",
icon: "❄️",
base: 25,
color: "#e8f7ff",
tags: ["Snowflake","dbt","Cortex AI","Data Warehouse"],
description:
"Explore modern cloud data warehousing, transformations and AI-enabled analytics.",
url: "/snowflake-data-engineer-training/"
},
{
id: "DBA",
name: "SQL DBA with Azure & AI",
category: "Database",
icon: "🛡️",
base: 20,
color: "#eaf4ee",
tags: ["SQL Server","Azure SQL","Backup","DP-300"],
description:
"Learn database administration, performance, recovery and Azure SQL management.",
url: "/sql-dba-training/"
},
{
id: "PBI",
name: "Power BI Data Analyst",
category: "Data Analytics",
icon: "📊",
base: 25,
color: "#fff6da",
tags: ["Power BI","Power Query","DAX","PL-300"],
description:
"Build interactive dashboards, business insights and advanced data models.",
url: "/powerbi-data-analyst-training/"
},
{
id: "PG",
name: "PostgreSQL DBA",
category: "Database",
icon: "🐘",
base: 20,
color: "#e8f1ff",
tags: ["PostgreSQL","Replication","Backup","Security"],
description:
"Develop practical PostgreSQL administration and database maintenance skills.",
url: "/postgresqldba-training/"
},
{
id: "FABRIC",
name: "Microsoft Fabric Data Engineer",
category: "Data Engineering",
icon: "🔷",
base: 25,
color: "#e4f8f2",
tags: ["OneLake","Lakehouse","Warehouse","DP-700"],
description:
"Learn unified data platforms, Fabric pipelines and modern analytics engineering.",
url: "/fabric-data-engineer-training/"
},
{
id: "FABDA",
name: "Microsoft Fabric Data Analyst",
category: "Data Analytics",
icon: "📈",
base: 25,
color: "#e6f6f2",
tags: ["Fabric","Semantic Models","Power BI","DP-600"],
description:
"Explore enterprise analytics, semantic modeling and business intelligence.",
url: ""
},
{
id: "AWS",
name: "AWS Data Engineer",
category: "Data Engineering",
icon: "🌐",
base: 20,
color: "#fff1df",
tags: ["AWS","S3","Glue","Cloud Data"],
description:
"Develop data engineering skills using AWS storage and processing services.",
url: "/aws-data-engineering/"
},
{
id: "PYTHON",
name: "Python Programming",
category: "Programming",
icon: "🐍",
base: 30,
color: "#fff7dc",
tags: ["Python","Functions","OOP","Programming"],
description:
"Build programming fundamentals, automation skills and problem-solving ability.",
url: "/python-courses/"
},
{
id: "PYDATA",
name: "Python Data Analytics",
category: "Data Analytics",
icon: "📉",
base: 25,
color: "#eaf1ff",
tags: ["Python","Pandas","NumPy","Visualization"],
description:
"Learn practical data preparation, analysis and visualization using Python.",
url: "/python-courses/"
},
{
id: "PYAI",
name: "Python AI & Machine Learning",
category: "AI & ML",
icon: "🧠",
base: 20,
color: "#f0eaff",
tags: ["Python","ML","Models","AI"],
description:
"Explore machine learning fundamentals and practical AI implementations.",
url: "/python-courses/"
},
{
id: "DEVOPS",
name: "DevOps with Cloud & AI",
category: "DevOps",
icon: "♾️",
base: 15,
color: "#edeaff",
tags: ["Git","Jenkins","Docker","Kubernetes","Terraform"],
description:
"Build automation, CI/CD, containerization and modern deployment skills.",
url: "/devops/"
},
{
id: "GENAI",
name: "Generative AI & Agentic AI",
category: "AI & ML",
icon: "🤖",
base: 20,
color: "#f1eaff",
tags: ["Gen AI","LLM","RAG","AI Agents"],
description:
"Explore large language models, retrieval systems and intelligent AI agents.",
url: ""
},
{
id: "DBADMIN",
name: "Azure Databricks Administration",
category: "Administration",
icon: "⚙️",
base: 20,
color: "#fff0e9",
tags: ["Databricks","Workspace","Security","Governance"],
description:
"Learn Databricks administration, workspace configuration and governance concepts.",
url: "/azure-databricks-admin-training/"
},
{
id: "DAAI",
name: "Data Analyst with AI & Copilot",
category: "Data Analytics",
icon: "✨",
base: 25,
color: "#eaf3ff",
tags: ["SQL","Power BI","AI","Copilot"],
description:
"Build analytical skills with modern AI-assisted data workflows.",
url: ""
},
{
id: "ARCH",
name: "Data Architect",
category: "Data Engineering",
icon: "🏗️",
base: 20,
color: "#e9f1fa",
tags: ["Data Modeling","Architecture","Cloud","Governance"],
description:
"Explore enterprise data architecture, integration and platform design.",
url: ""
}
];
/* =====================================================
CAMPAIGN DATABASE
cap = maximum campaign discount
adjust = adjustment to course base percentage
priority = default display order for live campaigns
===================================================== */
const CAMPAIGNS = [
{
id: "yearend",
name: "Year-End Mega Sale",
prefix: "YE",
icon: "🏆",
cap: 30,
adjust: 0,
priority: 100,
accent: "#b31528",
dark: "#780c1d",
start: [11,24],
end: [12,31],
heading: "Big Savings.",
highlight: "Bigger Skills.",
purpose:
"Finish the year with new skills and prepare for future career opportunities.",
description:
"Celebrate the year-end with exclusive discounts on selected professional IT training programs. Invest in practical skills for the year ahead."
},
{
id: "newyear",
name: "New Year Skill Fest",
prefix: "NY",
icon: "🎆",
cap: 25,
adjust: 0,
priority: 90,
accent: "#2851ad",
dark: "#142b65",
start: [1,1],
end: [1,10],
heading: "New Year.",
highlight: "New Skills.",
purpose:
"Start the year with a focused professional learning plan.",
description:
"Turn your New Year goals into practical learning with professional IT training and exclusive seasonal discounts."
},
{
id: "spring",
name: "Spring Learning Festival",
prefix: "SPR",
icon: "🌸",
cap: 25,
adjust: 0,
priority: 70,
accent: "#087b48",
dark: "#034d2d",
start: [3,1],
end: [3,15],
heading: "Refresh Your Skills.",
highlight: "Grow Your Future.",
purpose:
"Refresh technical knowledge and learn new industry-relevant technologies.",
description:
"Give your professional development a fresh start with selected Spring Festival training offers."
},
{
id: "summer",
name: "Summer Skill Fest",
prefix: "SUM",
icon: "☀️",
cap: 25,
adjust: 0,
priority: 70,
accent: "#ac4b00",
dark: "#713000",
start: [5,1],
end: [5,15],
heading: "Make Summer Count.",
highlight: "Learn Something New.",
purpose:
"Use the summer period to focus on productive technical learning.",
description:
"Explore summer training discounts on programming, cloud, data engineering and analytics courses."
},
{
id: "independence",
name: "Independence Day Offers",
prefix: "IND",
icon: "🇮🇳",
cap: 25,
adjust: 0,
priority: 75,
accent: "#087b48",
dark: "#074d31",
start: [8,10],
end: [8,15],
heading: "Learn Independently.",
highlight: "Build Your Future.",
purpose:
"Celebrate learning, self-development and professional independence.",
description:
"Celebrate India's Independence Day with selected skill-development training offers."
},
{
id: "halloween",
name: "Halloween Skill Treats",
prefix: "HAL",
icon: "🎃",
cap: 20,
adjust: -5,
priority: 75,
accent: "#ba4b00",
dark: "#632600",
start: [10,25],
end: [10,31],
heading: "No Tricks.",
highlight: "Just Skill Treats!",
purpose:
"A fun seasonal promotion for professional technical learning.",
description:
"Discover Halloween learning treats with limited-period discounts on eligible technology courses."
},
{
id: "blackfriday",
name: "Black Friday Deals",
prefix: "BF",
icon: "🛍️",
cap: 30,
adjust: 0,
priority: 95,
accent: "#353e50",
dark: "#101827",
type: "blackfriday",
heading: "Big Friday Deals.",
highlight: "Powerful Learning.",
purpose:
"Annual Black Friday discounts for eligible professional training courses.",
description:
"Explore selected Black Friday course discounts and discover your next learning opportunity."
},
{
id: "cybermonday",
name: "Cyber Monday Offers",
prefix: "CY",
icon: "💻",
cap: 30,
adjust: 0,
priority: 96,
accent: "#124f9b",
dark: "#092a58",
type: "cybermonday",
heading: "Power Up Your Skills.",
highlight: "Unlock Cyber Deals.",
purpose:
"Special technology and professional learning promotions for Cyber Monday.",
description:
"Explore Cyber Monday discounts on selected IT, cloud and data training programs."
},
{
id: "christmas",
name: "Christmas Skill Carnival",
prefix: "XMAS",
icon: "🎄",
cap: 25,
adjust: 0,
priority: 92,
accent: "#a91f2f",
dark: "#701321",
start: [12,24],
end: [12,26],
heading: "Gift Yourself.",
highlight: "The Power of Skills.",
purpose:
"Celebrate the festive season by investing in professional learning.",
description:
"Unwrap selected Christmas training discounts and discover new learning possibilities."
},
{
id: "weekend",
name: "Weekend Flash Sale",
prefix: "WK",
icon: "⚡",
cap: 20,
adjust: -5,
priority: 40,
accent: "#aa5000",
dark: "#703400",
type: "weekend",
heading: "Weekend Deals.",
highlight: "Weekday Skills.",
purpose:
"Short weekend promotions for learners planning upcoming batch enrollments.",
description:
"Make your weekend productive with limited-duration discounts on eligible training programs."
},
{
id: "monthend",
name: "Month-End Mega Deals",
prefix: "ME",
icon: "🔥",
cap: 25,
adjust: 0,
priority: 50,
accent: "#9d174d",
dark: "#650d31",
type: "monthend",
heading: "Month-End Savings.",
highlight: "Next-Level Skills.",
purpose:
"End the month by planning your next professional learning goal.",
description:
"Explore exclusive month-end training discounts during the final three days of the month."
}
];
/* =====================================================
SPECIAL REWARD OFFERS
===================================================== */
const REWARDS = [
{
code: "PATH30",
title: "Career Combo Offer",
amount: "Up to 30%",
icon: "🚀",
description:
"For selected multi-course career learning bundles. Discount applies to eligible combined standard fees."
},
{
code: "ALUMNI20",
title: "Alumni Comeback Offer",
amount: "20% OFF",
icon: "🎓",
description:
"For eligible previous SQL SCHOOL students enrolling in another selected training program."
},
{
code: "GROUP15",
title: "Learn Together Offer",
amount: "15% OFF",
icon: "🤝",
description:
"For eligible groups of three or more learners. Course and group requirements must be confirmed."
},
{
code: "",
title: "Free Career Consultation",
amount: "FREE",
icon: "💬",
description:
"Discuss your professional background, suitable learning path and free demo availability."
}
];
const PATHS = [
{
name: "Data Engineering Career Path",
description:
"For learners developing modern cloud data engineering expertise.",
steps: [
"Microsoft SQL & T-SQL",
"Python Programming",
"Azure Data Engineering",
"Databricks Data Engineering"
]
},
{
name: "Data Analytics Career Path",
description:
"For aspiring analysts and professionals developing analytics skills.",
steps: [
"Microsoft SQL",
"Power BI",
"Python Data Analytics",
"Microsoft Fabric Analytics"
]
},
{
name: "Database Administration Path",
description:
"For professionals exploring database and cloud administration.",
steps: [
"Microsoft SQL & T-SQL",
"Core SQL DBA",
"Azure SQL Administration",
"PostgreSQL Administration"
]
},
{
name: "Cloud & DevOps Career Path",
description:
"For learners building automation and cloud operations capabilities.",
steps: [
"Git & Linux Fundamentals",
"DevOps Tools",
"Docker & Kubernetes",
"Cloud Infrastructure Automation"
]
},
{
name: "AI & Intelligent Data Path",
description:
"For technical professionals exploring AI-enabled applications.",
steps: [
"Python Programming",
"AI & Machine Learning",
"Generative AI & LLMs",
"RAG & Agentic AI"
]
},
{
name: "Modern Data Platform Path",
description:
"For experienced data professionals exploring modern architectures.",
steps: [
"Data Engineering Fundamentals",
"Snowflake & dbt",
"Databricks",
"Data Architecture"
]
}
];
/* =====================================================
APPLICATION UTILITIES
===================================================== */
const $ = selector => root.querySelector(selector);
const $$ = selector =>
Array.from(root.querySelectorAll(selector));
const formatter = new Intl.DateTimeFormat("en-GB",{
timeZone: "Asia/Kolkata",
year: "numeric",
month: "2-digit",
day: "2-digit"
});
const money = new Intl.NumberFormat(CONFIG.locale,{
style: "currency",
currency: CONFIG.currency,
maximumFractionDigits: 2
});
const dateLabel = new Intl.DateTimeFormat("en-GB",{
timeZone: "UTC",
day: "numeric",
month: "short",
year: "numeric"
});
let today = "";
let windows = [];
let activeCampaigns = [];
let selectedCampaign = null;
let currentCategory = "All";
let walletPersistent = true;
let toastTimer;
let dialogMode = "";
let dialogDealCode = "";
let previousFocus = null;
let wallet = loadWallet();
function esc(value) {
return String(value ?? "").replace(
/[&"']/g,
character => ({
"&": "&",
"": ">",
'"': """,
"'": "'"
})[character]
);
}
function track(eventName, details = {}) {
if (!CONFIG.trackingEnabled) return;
window.dataLayer = window.dataLayer || [];
if (typeof window.dataLayer.push === "function") {
window.dataLayer.push({
event: eventName,
...details
});
}
}
function getISTDate() {
const parts = formatter.formatToParts(new Date());
const values = {};
parts.forEach(part => {
values[part.type] = part.value;
});
return `${values.year}-${values.month}-${values.day}`;
}
function dateKey(date) {
return date.toISOString().slice(0,10);
}
function utcDate(key) {
return new Date(key + "T00:00:00Z");
}
function makeDate(year,month,day) {
return dateKey(
new Date(Date.UTC(year,month-1,day))
);
}
function addDays(key,number) {
const date = utcDate(key);
date.setUTCDate(date.getUTCDate() + number);
return dateKey(date);
}
function formatDate(key) {
return dateLabel.format(utcDate(key));
}
function formatRange(start,end) {
if (start === end) return formatDate(start);
return formatDate(start) + " – " + formatDate(end);
}
function approvedToday() {
return today >= CONFIG.approvedFrom &&
today
discountFor(course,campaign)
)
);
}
function discountFor(course,campaign) {
if (!campaign) return 0;
return Math.max(
0,
Math.min(
campaign.cap,
course.base + campaign.adjust
)
);
}
function effectiveEnd(campaign) {
return campaign.endDate > CONFIG.approvedThrough
? CONFIG.approvedThrough
: campaign.endDate;
}
function wa(message) {
return "https://wa.me/" +
CONFIG.whatsapp +
"?text=" +
encodeURIComponent(message);
}
function generalMessage() {
return "Hello SQL SCHOOL,\n\n" +
"I visited your Offers & Rewards website. " +
"Please share available training courses, " +
"current discounts and upcoming batch schedules.";
}
function demoMessage() {
return "Hello SQL SCHOOL,\n\n" +
"I am interested in attending a FREE demo session. " +
"Please share suitable course options and schedules.";
}
function showToast(message) {
const toast = $("#so-toast");
toast.textContent = message;
toast.classList.add("show");
if ($("#so-dialog").open) {
const notice = $(".so-dialog-notice");
if (notice) notice.textContent = message;
}
clearTimeout(toastTimer);
toastTimer = setTimeout(() => {
toast.classList.remove("show");
},3200);
}
/* =====================================================
AUTOMATIC CAMPAIGN DATE ENGINE
===================================================== */
function fourthThursday(year) {
let key = makeDate(year,11,1);
while (utcDate(key).getUTCDay() !== 4) {
key = addDays(key,1);
}
return addDays(key,21);
}
function createWindow(campaign,start,end) {
return {
...campaign,
startDate: start,
endDate: end,
key: campaign.id + "-" + start
};
}
function generateWindows() {
const result = [];
const year = Number(today.slice(0,4));
const month = Number(today.slice(5,7));
CAMPAIGNS.forEach(campaign => {
/* Recurring Saturday–Sunday offers */
if (campaign.type === "weekend") {
for (let i = -7; i <= 70; i++) {
const date = addDays(today,i);
if (utcDate(date).getUTCDay() === 6) {
result.push(
createWindow(
campaign,
date,
addDays(date,1)
)
);
}
}
return;
}
/* Last three days of every month */
if (campaign.type === "monthend") {
for (let i = -1; i <= 3; i++) {
const end = dateKey(
new Date(Date.UTC(year,month+i,0))
);
result.push(
createWindow(
campaign,
addDays(end,-2),
end
)
);
}
return;
}
/* Annual seasonal campaigns */
for (let y = year-1; y
a.startDate.localeCompare(b.startDate)
);
}
function isLive(campaign) {
return approvedToday() &&
today >= campaign.startDate &&
today b.priority-a.priority);
selectedCampaign = activeCampaigns.find(
campaign => campaign.key === previousKey
) || activeCampaigns[0] || null;
}
/* =====================================================
COUPON GENERATION
===================================================== */
function couponCode(course,campaign) {
let campaignCode =
campaign.prefix +
campaign.startDate.slice(2,4);
if (
campaign.type === "weekend" ||
campaign.type === "monthend"
) {
campaignCode +=
campaign.startDate.slice(5,7) +
campaign.startDate.slice(8,10);
}
return campaignCode +
"-" +
course.id +
discountFor(course,campaign);
}
function makeDeal(course,campaign) {
return {
code: couponCode(course,campaign),
courseId: course.id,
name: course.name,
campaign: campaign.name,
campaignKey: campaign.key,
discount: discountFor(course,campaign) + "% OFF",
expiry: effectiveEnd(campaign),
kind: "course"
};
}
function rewardDeal(reward) {
return {
code: reward.code,
name: reward.title,
campaign: "Special Learning Rewards",
discount: reward.amount,
expiry: CONFIG.approvedThrough,
kind: "reward"
};
}
function availableDeals() {
const deals = [];
activeCampaigns.forEach(campaign => {
COURSES.forEach(course => {
if (discountFor(course,campaign) > 0) {
deals.push(makeDeal(course,campaign));
}
});
});
if (approvedToday()) {
REWARDS.filter(reward => reward.code)
.forEach(reward => {
deals.push(rewardDeal(reward));
});
}
return deals;
}
function findDeal(code) {
return availableDeals().find(
deal => deal.code === code
);
}
function dealMessage(deal) {
return "Hello SQL SCHOOL,\n\n" +
"I would like to enquire about the following offer.\n\n" +
"Offer/Course: " + deal.name + "\n" +
"Campaign: " + deal.campaign + "\n" +
"Coupon Code: " + deal.code + "\n" +
"Advertised Discount: " + deal.discount + "\n" +
"Validity: " + formatDate(deal.expiry) + " IST\n\n" +
"Please confirm my eligibility, final course fee, " +
"training schedule and free demo availability.";
}
function courseEnquiry(course) {
return wa(
"Hello SQL SCHOOL,\n\n" +
"I am interested in " + course.name + ".\n" +
"Please share the curriculum, standard course fee, " +
"current offers and batch schedules."
);
}
/* =====================================================
BRAND CONFIGURATION
===================================================== */
function configureBrand() {
$$("[data-home]").forEach(link => {
link.href = CONFIG.website;
});
$$("[data-general-wa]").forEach(link => {
link.href = wa(generalMessage());
});
$$("[data-demo]").forEach(link => {
link.href = wa(demoMessage());
});
if (CONFIG.logoUrl) {
const image = $("#so-logo-image");
image.onload = function () {
image.hidden = false;
$("#so-logo-fallback").hidden = true;
};
image.onerror = function () {
image.hidden = true;
$("#so-logo-fallback").hidden = false;
};
image.src = CONFIG.logoUrl;
}
$("#so-current-year").textContent =
today.slice(0,4);
}
/* =====================================================
RENDER DYNAMIC HERO
===================================================== */
function renderHero() {
const campaign = selectedCampaign;
if (!campaign) {
root.style.setProperty("--accent","#2851ad");
root.style.setProperty("--accent-dark","#142b65");
$("#so-announcement").textContent =
"SQL SCHOOL — EXPLORE OUR PROFESSIONAL TRAINING PROGRAMS";
$("#so-hero-label").textContent =
"SQL SCHOOL OFFERS & REWARDS";
$("#so-hero-heading").innerHTML =
"Build Your Skills.
Explore New Opportunities. ";
$("#so-hero-description").textContent =
"Explore professional IT training courses and our upcoming offer calendar.";
$("#so-ticket-icon").textContent = "🎓";
$("#so-ticket-label").textContent = "EXPLORE";
$("#so-ticket-discount").textContent = "IT";
$("#so-ticket-off").textContent = "SKILLS";
$("#so-ticket-caption").textContent =
"Professional Learning Programs";
$("#so-ticket-validity").textContent =
"ASK OUR TEAM FOR CURRENT FEES";
$("#so-hero-cta").textContent =
"Explore Courses →";
$("#so-timer").hidden = true;
$("#so-timer-title").textContent =
"Upcoming Learning Offers";
$("#so-timer-note").textContent =
"View the annual calendar for planned promotions.";
return;
}
const max = currentMaximum(campaign);
root.style.setProperty(
"--accent",
campaign.accent
);
root.style.setProperty(
"--accent-dark",
campaign.dark
);
$("#so-announcement").textContent =
campaign.name.toUpperCase() +
" — SAVE UP TO " +
max +
"% ON SELECTED COURSES";
$("#so-hero-label").textContent =
campaign.icon + " " +
campaign.name.toUpperCase() +
" • LIVE";
$("#so-hero-heading").innerHTML =
esc(campaign.heading) +
"
" +
esc(campaign.highlight) +
" ";
$("#so-hero-description").textContent =
campaign.description;
$("#so-ticket-icon").textContent =
campaign.icon;
$("#so-ticket-label").textContent =
"SAVE UP TO";
$("#so-ticket-discount").textContent =
max + "%";
$("#so-ticket-off").textContent =
"OFF";
$("#so-ticket-caption").textContent =
"Selected Professional IT Training Courses";
$("#so-ticket-validity").textContent =
"VALID UNTIL " +
formatDate(effectiveEnd(campaign)).toUpperCase();
$("#so-hero-cta").textContent =
"Unlock My Offers →";
$("#so-timer").hidden = false;
$("#so-timer-title").textContent =
"⏳ " + campaign.name + " Ends In";
$("#so-timer-note").textContent =
"Valid through " +
formatDate(effectiveEnd(campaign)) +
" • Indian Standard Time";
updateTimer();
}
/* =====================================================
COUNTDOWN
===================================================== */
function updateTimer() {
if (!selectedCampaign) return;
const nextMidnight = addDays(
effectiveEnd(selectedCampaign),
1
);
const expiry = Date.parse(
nextMidnight + "T00:00:00+05:30"
);
const difference = Math.max(
0,
expiry - Date.now()
);
const values = {
days:
Math.floor(difference / 86400000),
hours:
Math.floor(
difference % 86400000 / 3600000
),
minutes:
Math.floor(
difference % 3600000 / 60000
),
seconds:
Math.floor(
difference % 60000 / 1000
)
};
Object.entries(values).forEach(([key,value]) => {
$("#so-" + key).textContent =
String(value).padStart(2,"0");
});
}
/* =====================================================
CAMPAIGN SWITCHER
===================================================== */
function renderCampaignTabs() {
if (!activeCampaigns.length) {
$("#so-campaign-tabs").innerHTML = "";
$("#so-campaign-summary").innerHTML = `
Explore Our Training Programs
No scheduled promotional campaign
is currently active on this page.
Main Website →
`;
return;
}
$("#so-campaign-tabs").innerHTML =
activeCampaigns.map(campaign => {
const selected =
campaign.key === selectedCampaign?.key;
return `
${campaign.icon}
${esc(campaign.name)}
Up to ${currentMaximum(campaign)}% OFF
• Ends ${esc(formatDate(effectiveEnd(campaign)))}
`;
}).join("");
$("#so-campaign-summary").innerHTML = `
${selectedCampaign.icon}
${esc(selectedCampaign.name)}
${esc(selectedCampaign.purpose)}
Share Offer ↗
`;
}
function selectCampaign(key,scroll = false) {
const campaign = activeCampaigns.find(
item => item.key === key
);
if (!campaign) {
showToast("This campaign is not currently active.");
return;
}
selectedCampaign = campaign;
renderHero();
renderCampaignTabs();
renderCourses();
updateCalculator();
track("offer_campaign_select",{
campaign: campaign.name
});
if (scroll) scrollTo("so-courses");
}
/* =====================================================
COURSE FILTERS
===================================================== */
function renderFilters() {
const categories = [
"All",
...new Set(
COURSES.map(course => course.category)
)
];
$("#so-filters").innerHTML =
categories.map(category => `
${category === "All"
? "All Courses"
: esc(category)}
`).join("");
}
/* =====================================================
RENDER COURSE DEALS
===================================================== */
function renderCourses() {
const search = $("#so-search").value
.trim()
.toLowerCase();
const sort = $("#so-sort").value;
let courses = COURSES.filter(course => {
const categoryMatches =
currentCategory === "All" ||
course.category === currentCategory;
const searchMatches = (
course.name + " " +
course.category + " " +
course.tags.join(" ") + " " +
course.description
).toLowerCase().includes(search);
return categoryMatches && searchMatches;
});
if (sort === "discount") {
courses.sort(
(a,b) =>
discountFor(b,selectedCampaign) -
discountFor(a,selectedCampaign)
);
}
if (sort === "az") {
courses.sort(
(a,b) => a.name.localeCompare(b.name)
);
}
$("#so-result-count").textContent =
courses.length +
" training programs found";
if (!courses.length) {
$("#so-course-grid").innerHTML = `
No matching courses
Try another course name or category.
Show All Courses
`;
return;
}
$("#so-course-grid").innerHTML =
courses.map((course,index) => {
const discount =
discountFor(course,selectedCampaign);
const deal =
selectedCampaign && discount > 0
? makeDeal(course,selectedCampaign)
: null;
const saved =
deal && wallet.some(
item => item.code === deal.code
);
const curriculum = course.url
? CONFIG.website + course.url
: courseEnquiry(course);
return `
${esc(course.description)}
${course.tags.map(tag => `
${esc(tag)}
`).join("")}
Live Instructor-Led Training
Hands-On Practical Learning
Career-Focused Guidance
${deal ? `
YOUR EXCLUSIVE COUPON
${esc(deal.code)}
Copy
Claim ${discount}% OFF →
${saved ? "★" : "☆"}
` : `
Enquire About Course →
`}
${course.url
? "View Course Curriculum"
: "Request Course Curriculum"} →
${deal ? `
Valid through
${esc(formatDate(deal.expiry))}
• IST
` : ""}
`;
}).join("");
}
/* =====================================================
SPECIAL REWARD CARDS
===================================================== */
function renderRewards() {
$("#so-reward-grid").innerHTML =
REWARDS.map(reward => {
const live =
reward.code && approvedToday();
const message =
reward.code
? "Hello SQL SCHOOL,\n\n" +
"Please share the current details and " +
"eligibility for the " + reward.title + "."
: demoMessage();
return `
${reward.icon}
${live || !reward.code
? esc(reward.amount)
: "Enquire"}
${esc(reward.title)}
${esc(reward.description)}
${live ? `
SPECIAL COUPON
${esc(reward.code)}
Copy
Claim Reward →
` : `
${reward.code
? "Ask About Offer"
: "Book Free Consultation"} →
`}
`;
}).join("");
}
/* =====================================================
OFFER CALENDAR
===================================================== */
function nextOccurrence(campaignId) {
const candidates = windows.filter(
item => item.id === campaignId &&
item.endDate >= today
);
return candidates.find(isLive) ||
candidates.find(
item => item.startDate > today
) ||
candidates[0];
}
function renderCalendar() {
const events = CAMPAIGNS
.map(campaign => nextOccurrence(campaign.id))
.filter(Boolean)
.sort((a,b) => {
const activeDifference =
Number(isLive(b)) -
Number(isLive(a));
return activeDifference ||
a.startDate.localeCompare(b.startDate) ||
b.priority-a.priority;
});
$("#so-calendar-grid").innerHTML =
events.map(event => {
const live = isLive(event);
const plannedDate =
event.startDate > CONFIG.approvedThrough ||
event.endDate today
? "UPCOMING"
: "NOT ACTIVE";
const end = live
? effectiveEnd(event)
: event.endDate;
const message =
"Hello SQL SCHOOL,\n\n" +
"I am interested in your planned " +
event.name + ".\n" +
"Please let me know the confirmed " +
"offer details when available.";
return `
${event.icon}
${status}
${esc(event.name)}
📅 ${esc(formatRange(event.startDate,end))}
${esc(event.purpose)}
${live ? "" : "Planned "}
up to ${currentMaximum(event)}%
${live ? `
Explore Live Deals →
` : `
Ask About This Event →
`}
`;
}).join("");
}
/* =====================================================
CAREER BUNDLES
===================================================== */
function renderPaths() {
$("#so-path-grid").innerHTML =
PATHS.map(path => {
const message =
"Hello SQL SCHOOL,\n\n" +
"I am interested in the " + path.name + ".\n\n" +
"Recommended courses:\n" +
path.steps.map(
(step,index) =>
(index+1) + ". " + step
).join("\n") +
"\n\n" +
(approvedToday()
? "Coupon: PATH30 (subject to eligibility)\n"
: "") +
"Please share the combined training plan, " +
"schedule and eligible bundle fee.";
return `
${esc(path.name)}
${esc(path.description)}
${path.steps.map((step,index) => `
${index > 0 ? `
↓
` : ""}
${index+1}
${esc(step)}
`).join("")}
Get My Bundle Offer →
`;
}).join("");
}
/* =====================================================
COUPON WALLET
Stored only in the visitor's current browser.
No personal information is collected.
===================================================== */
function loadWallet() {
try {
const data = JSON.parse(
localStorage.getItem(CONFIG.walletKey) || "[]"
);
if (!Array.isArray(data)) return [];
return data.filter(
item => item &&
typeof item.code === "string" &&
typeof item.name === "string"
).slice(0,100);
} catch (error) {
walletPersistent = false;
return [];
}
}
function storeWallet() {
try {
localStorage.setItem(
CONFIG.walletKey,
JSON.stringify(wallet)
);
walletPersistent = true;
} catch (error) {
walletPersistent = false;
}
updateWalletCount();
}
function updateWalletCount() {
$$(".so-wallet-count").forEach(element => {
element.textContent = wallet.length;
});
}
function toggleSave(code) {
const existing = wallet.find(
item => item.code === code
);
if (existing) {
wallet = wallet.filter(
item => item.code !== code
);
storeWallet();
showToast("Coupon removed from My Coupons.");
} else {
const deal = findDeal(code);
if (!deal) {
showToast("This coupon is no longer active.");
return;
}
if (wallet.length >= 100) {
showToast("Remove an old coupon before saving another.");
return;
}
wallet.push(deal);
storeWallet();
showToast(
walletPersistent
? "Coupon saved to My Coupons!"
: "Coupon saved for this page session."
);
track("offer_coupon_save",{
coupon: code,
course: deal.name
});
}
renderCourses();
if (dialogMode === "wallet") renderWallet();
}
function renderWallet() {
const items = wallet.map(item => {
const active = findDeal(item.code);
return `
${esc(item.name)}
${esc(item.code)}
${active
? esc(active.discount) + " • Active"
: "Expired or unavailable"}
${active ? `
Claim
` : ""}
Remove
`;
}).join("");
openDialog(`
Saved coupons are available in this browser.
Saving a coupon does not extend its validity.
${items || `
No saved coupons yet
Tap the star beside any live
course offer to save it.
`}
Explore More Offers →
`,"wallet");
}
/* =====================================================
COPY COUPON AND SHARE WEBSITE
===================================================== */
async function copyText(value) {
try {
if (navigator.clipboard && window.isSecureContext) {
await navigator.clipboard.writeText(value);
return true;
}
} catch (error) {}
const field = document.createElement("textarea");
const parent = $("#so-dialog").open
? $("#so-dialog")
: document.body;
field.value = value;
field.style.position = "fixed";
field.style.opacity = "0";
field.setAttribute("readonly","");
parent.appendChild(field);
field.select();
let success = false;
try {
success = document.execCommand("copy");
} catch (error) {}
field.remove();
return success;
}
async function copyCoupon(code) {
const deal = findDeal(code);
if (!deal) {
showToast("This coupon is no longer available.");
return;
}
const success = await copyText(code);
showToast(
success
? "Coupon copied: " + code
: "Your coupon code: " + code
);
if (success) {
track("offer_coupon_copy",{
coupon: code,
course: deal.name
});
}
}
async function shareOffers() {
const title = selectedCampaign
? "SQL SCHOOL – " + selectedCampaign.name
: "SQL SCHOOL Offers & Rewards";
const message = selectedCampaign
? "Explore selected SQL SCHOOL training offers. " +
"Save up to " +
currentMaximum(selectedCampaign) + "%."
: "Explore SQL SCHOOL training offers and upcoming learning campaigns.";
if (navigator.share) {
try {
await navigator.share({
title,
text: message,
url: CONFIG.offersWebsite
});
track("offer_share");
return;
} catch (error) {
if (error.name === "AbortError") return;
}
}
const success = await copyText(
CONFIG.offersWebsite
);
showToast(
success
? "Offers website link copied!"
: CONFIG.offersWebsite
);
if (success) track("offer_share");
}
/* =====================================================
COUPON CLAIM POPUP
===================================================== */
function claimDeal(code) {
const deal = findDeal(code);
if (!deal) {
closeDialog();
showToast("This coupon has expired or is unavailable.");
return;
}
openDialog(`
Campaign: ${esc(deal.campaign)}
Valid through
${esc(formatDate(deal.expiry))}
(IST).
${esc(deal.code)}
Copy
💬 Claim via WhatsApp →
${wallet.some(item => item.code === code)
? "✓ Saved in My Coupons"
: "☆ Save to My Coupons"}
Our team will confirm final pricing,
eligibility and batch availability.
This action does not complete enrollment.
`,"claim",deal.code);
track("offer_claim_open",{
coupon: deal.code,
course: deal.name,
campaign: deal.campaign
});
}
/* =====================================================
CAMPAIGN PROMOTIONAL POPUP
===================================================== */
function showPromotion() {
if (!CONFIG.popupEnabled || !selectedCampaign) return;
if ($("#so-dialog").open) return;
if (
root.contains(document.activeElement) &&
document.activeElement.matches(
"input,select,textarea"
)
) return;
const campaign = selectedCampaign;
const popupKey =
"sql-offer-popup-" + campaign.key;
try {
if (sessionStorage.getItem(popupKey)) return;
sessionStorage.setItem(popupKey,"shown");
} catch (error) {}
openDialog(`
${esc(campaign.purpose)}
Valid until
${esc(formatDate(effectiveEnd(campaign)))}
🎁 Unlock My Discount →
Book a FREE Demo
Continue browsing
`,"promotion");
track("offer_popup_view",{
campaign: campaign.name
});
}
/* =====================================================
DIALOG CONTROLLER
===================================================== */
function openDialog(content,mode,code = "") {
const dialog = $("#so-dialog");
if (!dialog.open) {
previousFocus = document.activeElement;
}
$("#so-dialog-content").innerHTML = content;
dialogMode = mode;
dialogDealCode = code;
if (!dialog.open) {
if (typeof dialog.showModal === "function") {
dialog.showModal();
} else {
dialog.setAttribute("open","");
}
}
$(".so-dialog-close").focus();
}
function closeDialog() {
const dialog = $("#so-dialog");
if (!dialog.open) return;
if (typeof dialog.close === "function") {
dialog.close();
} else {
dialog.removeAttribute("open");
restoreFocus();
}
}
function restoreFocus() {
dialogMode = "";
dialogDealCode = "";
if (
previousFocus &&
previousFocus.isConnected &&
typeof previousFocus.focus === "function"
) {
previousFocus.focus();
}
}
$("#so-dialog").addEventListener(
"close",
restoreFocus
);
$("#so-dialog").addEventListener(
"click",
function (event) {
if (event.target !== this) return;
const rect = this.getBoundingClientRect();
if (
event.clientX rect.right ||
event.clientY rect.bottom
) {
closeDialog();
}
}
);
/* =====================================================
SAVINGS CALCULATOR
===================================================== */
function populateCalculator() {
$("#so-calc-course").innerHTML =
COURSES.map(course => `
${esc(course.name)}
`).join("");
}
function updateCalculator() {
const course = COURSES.find(
item => item.id === $("#so-calc-course").value
);
const input = $("#so-standard-fee");
const fee = Number(input.value);
const discount = course
? discountFor(course,selectedCampaign)
: 0;
$("#so-calc-discount").textContent =
selectedCampaign
? discount + "%"
: "No active offer";
if (
input.value.trim() === "" ||
!Number.isFinite(fee) ||
fee 10000000
) {
$("#so-calc-savings").textContent = "—";
$("#so-calc-final").textContent = "—";
return;
}
const savings = fee * discount / 100;
$("#so-calc-savings").textContent =
money.format(savings);
$("#so-calc-final").textContent =
money.format(fee-savings);
}
$("#so-calc-course").addEventListener(
"change",
updateCalculator
);
$("#so-standard-fee").addEventListener(
"input",
updateCalculator
);
/* =====================================================
ANIMATION ENGINE
===================================================== */
function createSparkles() {
const reducedMotion = window.matchMedia(
"(prefers-reduced-motion:reduce)"
).matches;
if (!CONFIG.animationsEnabled || reducedMotion) return;
const colors = [
"#ffce62",
"#ffffff",
"#e8a64a",
"#77a9e9"
];
const container = $("#so-sparkles");
for (let i = 0; i item.code === code)) {
toggleSave(code);
}
if (wallet.some(item => item.code === code)) {
button.textContent = "✓ Saved in My Coupons";
}
break;
case "wallet":
renderWallet();
track("offer_wallet_open");
break;
case "share":
shareOffers();
break;
case "close-dialog":
closeDialog();
break;
case "explore":
closeDialog();
scrollTo("so-courses");
break;
case "calculator-claim":
const course = COURSES.find(
item =>
item.id === $("#so-calc-course").value
);
if (!course) break;
if (
selectedCampaign &&
discountFor(course,selectedCampaign) > 0
) {
claimDeal(
couponCode(course,selectedCampaign)
);
} else {
const link = document.createElement("a");
link.href = courseEnquiry(course);
link.target = "_blank";
link.rel = "noopener noreferrer";
document.body.appendChild(link);
link.click();
link.remove();
}
break;
}
});
/* =====================================================
SEARCH AND SORT EVENTS
===================================================== */
$("#so-search").addEventListener(
"input",
renderCourses
);
$("#so-sort").addEventListener(
"change",
renderCourses
);
/* =====================================================
DAILY CAMPAIGN REFRESH
===================================================== */
function refreshEverything() {
if ($("#so-dialog").open) closeDialog();
refreshCampaignState();
configureBrand();
renderHero();
renderCampaignTabs();
renderFilters();
renderCourses();
renderRewards();
renderCalendar();
renderPaths();
updateWalletCount();
updateCalculator();
}
/* =====================================================
START APPLICATION
===================================================== */
populateCalculator();
refreshEverything();
createSparkles();
const liveClock = setInterval(() => {
if (!root.isConnected) {
clearInterval(liveClock);
return;
}
const currentDay = getISTDate();
if (currentDay !== today) {
refreshEverything();
} else {
updateTimer();
}
},1000);
if (CONFIG.popupEnabled) {
setTimeout(() => {
if (root.isConnected) showPromotion();
},CONFIG.popupDelay);
}
track("offer_page_view",{
page: "SQL SCHOOL Offers Hub",
campaign:
selectedCampaign?.name || "No active campaign"
});
})();