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

/* Ministry strip */
.top-section {
  background: #003987;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 7px 10px;
}

/* Header */
.modified-container { margin-top: 0; }
.mv-swayam-image-wrap { --w: 12%; }
.mv-swayam-image { 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); }
.display-flex-space-btn { display: flex; justify-content: space-between; align-items: center; }
.HeaderBanner { font-size: 14px; }
.HeaderBanner a { color: #1c1d1f; text-decoration: none; margin: 0 4px; }
.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; }

/* ========== 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;
  margin-left: 60px;
  margin-right: auto;
  padding: 0 24px;
}

.top-nav .breadcrumb-text {
  color: rgba(0,0,0,0.60);
  font-family: Roboto-Regular;
  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;
}

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

.search-box .search-functional-icons {
  position: absolute;
  right: 12px;
  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-Regular;
  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-Regular;
  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;
  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-Regular;
  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; }

/* 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-Regular;
  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-Regular, 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-Regular, 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-Regular;
  font-size: 24px;
  font-weight: 400;
}

.no-courses-message p {
  color: rgba(0,0,0,0.60);
  font-family: Roboto-Regular;
  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-Regular;
  font-size: 24px;
  font-weight: 400;
}

.no-certificates-message p {
  color: rgba(0,0,0,0.60);
  font-family: Roboto-Regular;
  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: min(1000px, calc(100vw - 48px));
  max-width: none;
  margin: 86px auto 30px;
}
#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 {
  min-height: 104px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #187AE2;
  border: 0;
  border-radius: 0;
}
#payment_status .modal-title {
  margin: 0;
  color: #fff;
  font-family: Roboto-Light, Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}
#payment_status .close {
  position: static;
  float: none;
  width: 52px;
  height: 52px;
  margin: 0 -18px 0 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; }
#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: auto;
    margin: 28px 16px;
  }
  #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-Light;
  font-size: 18px;
  line-height: 24px;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
}
.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-Regular;
}
.continue-btn { background: #0099cc; color: #fff; }
.close-btn { background: #eee; color: #333; }

/* Social icons footer */
.social_icons { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.social_icons li { display: inline-block; }

/* 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; }
.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: 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%; }
  .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; }
  .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; }
  .web-display { display: none; }
  .mv-display { display: block; }
  .redirect-popup-content { min-width: 300px; max-width: 90%; }
}

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