/* My Courses page - matches real SWAYAM (swayam.gov.in/mycourses) */

html,
body {
  width: 100%;
  max-width: 100%;
}

.homepage {
  padding-bottom: 0;
  overflow-x: hidden;
  color: #333;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
}

/* Ministry strip */
.ministry-strip {
  width: 100%;
  background: #003987;
}

.top-section {
  background: #003987;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  padding: 5px;
}

/* Header */
#header { background: #fff; }
.homepage #header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
}
.homepage .mycourse_list { padding-top: 86px; }
.modified-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.header-padding { padding: 8px; }
.mv-swayam-image-wrap {
  --w: 12%;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
.mv-swayam-logo {
  display: block;
  width: 100%;
  text-align: center;
}
.mv-swayam-image {
  width: 145px;
  height: auto;
  max-width: 85% !important;
}
.mv-display { display: none; }
.web-display { display: block; }
.user_email {
  color: #1c1d1f;
  text-decoration: none;
  font-size: 15px;
}
.user_email:hover { text-decoration: none; color: #0053A1; }
.header_align { display: flex; align-items: center; }
.custome-width {
  width: var(--w, auto);
  flex: 0 1 auto;
}
#header .col-8 {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}
#header .web-display {
  padding-right: 0 !important;
  padding-left: 0 !important;
  flex: 0 1 auto;
}
.display-flex-space-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}
.HeaderBanner { color: #666; font-size: 12px; white-space: nowrap; }
.HeaderBanner a {
  color: #666;
  padding: 15px 6px 20px;
  text-decoration: none;
  font-size: 13px;
}
.HeaderBanner a:hover { color: #0053A1; text-decoration: underline; }

.oc-header-login-btn {
  background: #0053A1;
  color: #fff;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.oc-header-login-btn:hover { background: #003e7a; color: #fff; }

/* Announcement bell */
.notification-icon-container { position: relative; display: inline-block; }
.dropdown .dropdown-toggle { background: none; border: none; color: #1c1d1f; padding: 0; }
.dropdown .dropdown-toggle:hover, .dropdown .dropdown-toggle:focus { background: none; }
.HeaderBanner > .dropdown {
  position: relative;
  display: inline-block !important;
}
#announcement_dropdown-menu {
  position: absolute !important;
  inset: auto 0 auto auto !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1100;
  width: min(360px, calc(100vw - 32px)) !important;
  min-width: min(360px, calc(100vw - 32px)) !important;
  max-height: min(480px, calc(100vh - 120px));
  margin: 0;
  padding: 0;
  overflow-y: auto;
  transform: none !important;
  background: #fff;
}
#announcement_dropdown-menu.show { display: block; }
#announcement_dropdown-menu .announcement-item {
  height: auto;
  margin: 0;
  border-bottom: 1px solid #ff8811;
}
#announcement_dropdown-menu .announcement-item:last-child { border-bottom: 0; }
#announcement_dropdown-menu .announcement-item > a {
  display: block;
  max-width: none;
  padding: 10px 14px;
  color: #333;
  font-family: Poppins, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  white-space: normal;
}
#announcement_dropdown-menu .announcement-item > a:hover,
#announcement_dropdown-menu .announcement-item > a:focus {
  color: #007ea8;
  background: #f5f8fc;
  text-decoration: none;
}

#google_translate_element {
  display: inline-flex !important;
  width: 94px;
  max-width: 94px;
  height: 33px;
  overflow: hidden;
  align-items: center;
  vertical-align: middle;
}
.goog-te-gadget {
  color: transparent !important;
  font-size: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  width: 94px;
  height: 27px;
  margin: 0 !important;
  color: #333;
  border: 1px solid #bbb;
  background: #fff;
  font: 12px Poppins, Arial, sans-serif;
}
.goog-logo-link,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.goog-te-gadget > span { display: none !important; }

@media (min-width: 1321px) {
  .HeaderBanner a { font-size: 14px; }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .HeaderBanner a {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .HeaderBanner a {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11px;
  }
}

/* ========== Real SWAYAM My Courses styles ========== */
.page-bg { background: #F3F4FF; }

.top-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 12px 0;
  margin-bottom: 0;
  position: relative;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.25);
  z-index: 9;
}

.top-nav .container {
  width: auto;
  max-width: none;
  margin-left: 60px;
  margin-right: auto;
  padding: 0 24px;
}

.top-nav .breadcrumb-text {
  color: rgba(0,0,0,0.60);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.15px;
  margin: 0;
  padding: 0;
}

.top-nav .breadcrumb-text strong {
  color: rgba(0,0,0,0.90);
  font-weight: 400;
}

.search-and-sync {
  display: flex;
  align-items: self-start;
  justify-content: space-between;
}

.button-segment {
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  display: inline-block;
  width: 250px;
  flex-shrink: 0;
}

.search-box .search-functional-icons {
  position: absolute;
  right: 31px;
  top: 11px;
}

.search-box input {
  padding: 8px 40px 8px 16px;
  border: 1px solid rgba(0,0,0,0.23);
  border-radius: 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  width: 220px;
  outline: none;
  height: 40px;
  line-height: 24px;
  background: #fff;
}

.search-box input:focus {
  border-color: #187AE2;
  border-width: 2px;
  padding: 7px 39px 7px 15px;
}

.search-icon-svg { width: 18px; height: 18px; vertical-align: middle; }

.sync-courses-btn {
  background: #fff;
  color: #187AE2;
  border: 1px solid #187AE2;
  padding: 6px 16px;
  border-radius: 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-transform: capitalize;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  transition: all 0.2s;
  height: 40px;
  align-items: center;
}

.sync-courses-btn:hover {
  background: rgba(24,122,226,0.04);
  text-decoration: none;
  color: #187AE2;
}

.reload-icon { width: 13px; height: 18px; position: relative; }

/* Tabs */
.tabs-container {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.tabs-container .container {
  width: auto;
  max-width: none;
  margin: 0 5%;
  padding: 0 24px;
}

.custom-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
}

.custom-tabs li { margin: 0; }

.custom-tabs li a {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  color: rgba(0,0,0,0.60);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-transform: capitalize;
  position: relative;
}

.custom-tabs li.active a {
  color: #187AE2;
  border-bottom: 2px solid #187AE2;
  background: transparent;
}

/* Content area */
.main-content {
  display: block;
  width: 93%;
  margin-left: 60px;
  margin-right: auto;
  padding: 56px 24px;
  min-height: calc(100vh - 413px);
  max-width: calc(100% - 60px);
}

/* Panes live inside #loggedInContent, not as direct children of .tab-content,
   so match by class alone (not direct-child) or only the active tab shows. */
.tab-pane { display: none; }
.tab-pane.active { display: block; }
#ongoing-tab { padding-left: 40px; }

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  row-gap: 40px;
  column-gap: 32px;
  padding: 0;
  justify-content: flex-start;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 380px);
  row-gap: 40px;
  column-gap: 32px;
  padding: 0;
  justify-content: flex-start;
}

/* Course card */
.course-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  margin: 0;
  position: relative;
  width: 380px;
}

.course-card:hover {
  box-shadow: 0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.course-image-wrapper {
  position: relative;
  width: 100%;
  height: 117px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.course-content {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.course-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  margin: 0;
  color: rgba(0,0,0,0.90);
  font-family: Roboto, Arial, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

.course-institution {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.60);
  margin: 0;
}

/* Button container (side by side) */
.button-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn {
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  text-transform: capitalize;
  margin: 0;
  height: 32px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: normal;
  max-width: 100%;
}

.btn-outline {
  color: #187AE2;
  background: #fff;
  border: 1px solid #187AE2;
  flex: 1 1 auto;
  min-width: 0;
}

.btn-outline:hover, .btn-outline:active, .btn-outline:focus {
  color: #187AE2;
  background: rgba(24,122,226,0.08);
  border: 1px solid #187AE2;
  flex: 1 1 auto;
  min-width: 0;
}

.btn-primary {
  background: #187AE2;
  color: #fff;
  border: 1px solid #187AE2;
  flex-shrink: 0;
}

.btn-primary:hover { background: #1569C7; }

/* Paystatus button (below button-container) */
.paystatus-btn {
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  text-transform: capitalize;
  margin: 0;
  height: 32px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: #187AE2;
  background: #fff;
  border: 1px solid #187AE2;
}

.paystatus-btn:hover { background: rgba(24,122,226,0.08); }

.exam-registration-info {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(0,0,0,0.60);
  margin: 4px 0 0;
}

/* No courses */
.no-courses-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100%;
}

.no-courses-message h4 {
  color: rgba(0,0,0,0.60);
  margin-bottom: 12px;
  margin-top: 15px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.no-courses-message p {
  color: rgba(0,0,0,0.60);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 143%;
  margin-bottom: 20px;
}

.no-certificates-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  width: 100%;
}

.no-certificates-message h4 {
  color: rgba(0,0,0,0.60);
  margin-bottom: 12px;
  margin-top: 15px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.no-certificates-message p {
  color: rgba(0,0,0,0.60);
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 143%;
  margin-bottom: 20px;
}

/* Certificates section */
.certificate-section { margin-top: 60px; }
.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 29px;
  padding-right: 70px;
}
.certificate-post-main-text {
  color: #187AE2;
  font-size: 24px;
  line-height: 133.4%;
  margin-right: 2px;
}

/* Payment status modal */
#payment_status .modal-dialog {
  width: 300px;
  max-width: calc(100vw - 32px);
  margin: 30px auto;
}
#payment_status .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}
#payment_status .modal-header {
  position: relative;
  min-height: 96px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #187AE2;
  border: 0;
  border-radius: 0;
}
#payment_status .modal-title {
  margin: 0 48px 0 20px;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
#payment_status .close {
  position: absolute;
  top: 10px;
  right: 10px;
  float: none;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}
#payment_status .close:hover,
#payment_status .close:focus {
  color: #fff;
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: -4px;
}
#payment_status .modal-body {
  min-height: 112px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
#payment_status_data {
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 30px;
  color: #2b2b2b;
  text-align: center;
  padding: 0;
}
body.payment-status-open .modal-backdrop.in { opacity: 0.78; }
body.payment-status-open .modal-backdrop.show { opacity: 0.78; }
#payment_status .paystatus-message { margin-bottom: 14px; }
#payment_status .paystatus-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
#payment_status .paystatus-row .k { color: #6a6f73; }
#payment_status .paystatus-row .v { font-weight: 600; color: #1c1d1f; text-align: right; }
#payment_status .paystatus-success {
  text-align: center;
  color: #1e7e34;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}
#payment_status .paystatus-success i { font-size: 34px; display: block; margin-bottom: 8px; }
#payment_status .paystatus-none { text-align: center; color: #555; margin-bottom: 14px; }

/* Buttons and links in payment modal */
#payment_status .auth-submit {
  background: #0053A1;
  color: #fff;
  border: none;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 3px;
  cursor: pointer;
  display: block;
  margin: 10px auto 0;
  text-decoration: none;
  text-align: center;
  max-width: 260px;
}
#payment_status .auth-submit:hover { background: #003e7a; }
#payment_status .receipt-demo-note {
  margin: 8px 0 0;
  color: #6a6f73;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 767px) {
  #payment_status .modal-dialog {
    width: 300px;
    max-width: calc(100vw - 32px);
    margin: 30px auto;
  }
  #payment_status .modal-header {
    min-height: 78px;
    padding: 0 22px;
  }
  #payment_status .modal-title { font-size: 25px; }
  #payment_status .close {
    width: 44px;
    height: 44px;
    margin-right: -12px;
    font-size: 34px;
  }
  #payment_status .modal-body {
    min-height: 100px;
    padding: 0 24px;
  }
  #payment_status_data {
    font-size: 19px;
    line-height: 26px;
  }
}

/* Redirect popup */
.redirect-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.redirect-popup-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 600px;
  min-width: 400px;
}
.redirect-header {
  background: #0099cc;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
}
.redirect-header .close-icon {
  float: right;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.redirect-body { padding: 32px; text-align: center; font-size: 16px; }
.redirect-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.redirect-btn {
  padding: 6px 24px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: Roboto, Arial, sans-serif;
}
.continue-btn { background: #0099cc; color: #fff; }
.close-btn { background: #eee; color: #333; }

/* SWAYAM footer */
#social {
  min-height: 112px;
  padding: 10px 0;
  color: #333;
  background: #fff;
  border-top: 4px solid #eee;
}
#social .container,
#legal .container,
#footer .container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-right: 15px;
  padding-left: 15px;
}
#social .appcontainer { min-height: 88px; align-items: flex-start; }
#social .appcontainer h4 {
  margin: 10px 0;
  color: #333;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 18px;
}
#social .footer-swayam-logo {
  width: 115px;
  height: 50px;
  object-fit: contain;
}
#social img[alt="Ministry of Education logo"] {
  width: 180px;
  height: 37px;
  object-fit: contain;
}
.social_icons { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; }
.social_icons li { display: inline-block; }
.social_icons li { padding-right: 20px; }

#legal {
  min-height: 34px;
  padding: 2px 0;
  color: #e6e6e6;
  background: #0073d0;
  line-height: 30px;
}
#legal .legal-row,
#footer .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
#legal a {
  color: #e6e6e6;
  font-size: 14px;
  font-weight: 300;
  line-height: 16px;
  text-decoration: none;
}
#legal a:hover,
#legal a:focus { color: #fff; text-decoration: underline; }
#legal span { font-size: 14px; }
#legal .helpline { text-align: right; }
#footer {
  min-height: 30px;
  padding: 3px 0 2px;
  color: #fff;
  background: #003987;
  font-size: 12px;
  font-weight: 500;
}

/* Dropdown menus */
.dropdown-menu { border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); border: 1px solid #d9dde3; }
.dropdown-menu > li > a {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c1d1f;
  font-size: 12px;
  text-decoration: none;
}
.dropdown-menu > li > a:hover { background: #f5f8fc; }
.dropdown-divider { margin: 0; border-top: none; }
.normalimg { width: 20px; height: 20px; }

@media (max-width: 1349px) {
  .course-grid, .certificates-grid { grid-template-columns: repeat(2, 380px); gap: 24px; }
}

@media (max-width: 950px) {
  .course-grid, .certificates-grid { grid-template-columns: 380px; justify-content: center; }
}

@media (max-width: 1200px) {
  .homepage .mycourse_list { padding-top: 100px; }
  #header .modified-container > .row > .col-8 { display: none; }
  .mv-swayam-image-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .mv-swayam-image {
    width: 115px;
    max-width: none !important;
    margin-left: 20px;
  }
  .web-display { display: none; }
  .mv-display { display: block; }
  #mobileUserEmail {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
  }
  #mobileUserEmail .fa { flex: 0 0 auto; }
  #login_dropdown-menu {
    right: 0 !important;
    left: auto !important;
    width: 235px;
    min-width: 235px;
    max-width: calc(100vw - 32px);
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .top-nav { padding: 12px 0; margin-top: 0; }
  .top-nav .container { padding: 0 16px; margin: 0; max-width: 100%; }
  .search-and-sync { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .button-segment { width: 100%; flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; font-size: 16px; padding: 10px 40px 10px 16px; height: 48px; }
  .search-box .search-functional-icons { right: 12px; top: 14px; }
  .sync-courses-btn { justify-content: center; width: 100%; height: 48px; font-size: 14px; }
  .tabs-container .container { padding: 0 16px; margin: 0; max-width: 100%; }
  .main-content { padding: 16px; max-width: 100%; margin: 0; margin-left: 0; }
  .course-grid, .certificates-grid { grid-template-columns: 1fr; gap: 16px; justify-content: center; }
  #ongoing-tab { padding-left: 0; }
  .course-card { width: 100%; max-width: 380px; margin: 0 auto; }
  .course-image-wrapper { height: 160px; }
  .button-container { flex-direction: column; align-items: stretch; flex-wrap: wrap; gap: 5px; }
  .btn { width: 100%; }
  .HeaderBanner a { display: none; }
  .paystatus-btn {
    width: 100%;
    height: auto;
    min-height: 32px;
    white-space: normal;
    line-height: 16px;
    text-align: center;
  }
  .redirect-popup-content { min-width: 300px; max-width: 90%; }
  #social .appcontainer { text-align: center; }
  #social .appcontainer > div { padding-bottom: 10px; }
  #legal .legal-row,
  #footer .footer-row {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
  #legal .helpline { text-align: center; }
}

@media (min-width: 1850px) {
  .course-grid, .certificates-grid { grid-template-columns: repeat(4, 380px); row-gap: 40px; column-gap: 32px; }
}
