/**
 * MumbaiSkillZone - Master Custom Stylesheet
 * Brand Colors:
 * Navy Blue: #0A2B63, #0E5BB7
 * Amber/Orange: #F59E0B, #F97316
 * Forest Green: #15803D, #22C55E
 * Light Slate: #F8FAFC, #F1F5F9
 */

:root {
  --msz-navy-dark: #071E43;
  --msz-navy: #0A2B63;
  --msz-navy-light: #0E5BB7;
  --msz-orange: #F59E0B;
  --msz-orange-dark: #EA580C;
  --msz-green: #15803D;
  --msz-green-light: #22C55E;
  --msz-bg-light: #F8FAFC;
  --msz-card-bg: #FFFFFF;
  --msz-border: #E2E8F0;
  --msz-text-dark: #0F172A;
  --msz-text-muted: #64748B;
  --msz-shadow-sm: 0 2px 8px rgba(10, 43, 99, 0.05);
  --msz-shadow-md: 0 8px 24px rgba(10, 43, 99, 0.08);
  --msz-shadow-lg: 0 16px 36px rgba(10, 43, 99, 0.12);
  --msz-radius-sm: 8px;
  --msz-radius-md: 14px;
  --msz-radius-lg: 20px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--msz-text-dark);
  background-color: var(--msz-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--msz-navy-light);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--msz-navy);
}

/* Utilities */
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }

/* Announcement Topbar */
.msz-topbar {
  background-color: var(--msz-navy-dark);
  color: #CBD5E1;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.msz-topbar a {
  color: #E2E8F0;
  white-space: nowrap;
}
.msz-topbar a:hover {
  color: #FCD34D;
}
.msz-topbar-left,
.msz-topbar-right {
  min-width: 0;
  white-space: nowrap;
}
.msz-topbar-item {
  white-space: nowrap;
  font-size: 12px;
}
.msz-topbar-tagline {
  white-space: nowrap;
  font-size: 12px;
}

/* Main Navigation */
.msz-navbar {
  background: #FFFFFF;
  box-shadow: var(--msz-shadow-sm);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: padding 0.2s ease;
}

.msz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

/* Logo Area */
.msz-logo-area {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.msz-logo-area img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height 0.2s ease;
}

/* Mobile & Tablet Action Buttons (< 1200px) */
.msz-mobile-actions {
  flex: 0 0 auto;
}
.msz-cart-btn-mobile {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--msz-border);
  background: #F8FAFC;
}
.msz-cart-btn-mobile:hover {
  background: #EFF6FF;
}
.msz-toggler-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
}

/* Desktop Navigation (>= 1200px) */
@media (min-width: 1200px) {
  .msz-navbar {
    padding: 10px 0;
  }
  .msz-navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 10px;
  }
  .msz-main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
  }
  .msz-navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
  }
  .msz-navbar .nav-item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }
  .msz-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    white-space: nowrap !important;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    line-height: 1;
    font-size: 13px;
    padding: 0 7px !important;
    transition: all 0.2s ease;
  }
  .msz-navbar .nav-link:hover,
  .msz-navbar .nav-link.active {
    color: var(--msz-navy-light);
    background-color: #EFF6FF;
  }

  /* Desktop Actions Group */
  .msz-header-actions {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 8px;
  }
  .msz-cart-btn-desktop {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0 !important;
    background: #F8FAFC;
    border: 1px solid var(--msz-border) !important;
    transition: all 0.2s ease;
  }
  .msz-cart-btn-desktop:hover {
    background: #EFF6FF;
  }
  .msz-btn-login {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    line-height: 1;
    font-size: 13.5px;
    padding: 0 13px !important;
    border-radius: 8px !important;
  }
  .msz-btn-join {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    line-height: 1;
    font-size: 13.5px;
    padding: 0 14px !important;
    border-radius: 8px !important;
  }
  .msz-user-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

/* Medium Desktop / Laptop (1200px - 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .msz-logo-area img {
    height: 38px;
  }
  .msz-navbar .navbar-nav {
    gap: 2px;
  }
  .msz-navbar .nav-link {
    font-size: 13px;
    padding: 0 6px !important;
  }
  .msz-header-actions {
    gap: 6px;
    margin-left: 6px;
  }
  .msz-btn-login {
    font-size: 13px;
    padding: 0 12px !important;
  }
  .msz-btn-join {
    font-size: 13px;
    padding: 0 13px !important;
  }
}

/* Large Desktop (>= 1400px) */
@media (min-width: 1400px) {
  .msz-navbar {
    padding: 12px 0;
  }
  .msz-logo-area img {
    height: 42px;
  }
  .msz-navbar-collapse {
    margin-left: 16px;
  }
  .msz-navbar .navbar-nav {
    gap: 5px;
  }
  .msz-navbar .nav-link {
    font-size: 14.5px;
    padding: 0 10px !important;
  }
  .msz-header-actions {
    gap: 8px;
    margin-left: 12px;
  }
  .msz-btn-login {
    font-size: 14px;
    padding: 0 16px !important;
  }
  .msz-btn-join {
    font-size: 14px;
    padding: 0 18px !important;
  }
}

/* Tablet & Mobile Collapsible Menu (< 1200px) */
@media (max-width: 1199.98px) {
  .msz-navbar-collapse {
    margin-top: 12px;
    padding: 14px 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 43, 99, 0.12);
    border: 1px solid var(--msz-border);
  }
  .msz-navbar .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
  }
  .msz-navbar .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    line-height: 1.4;
    transition: all 0.2s ease;
  }
  .msz-navbar .nav-link:hover,
  .msz-navbar .nav-link.active {
    color: var(--msz-navy-light);
    background-color: #EFF6FF;
  }
  .msz-mobile-collapse-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--msz-border);
  }
  .msz-mobile-collapse-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
  }
}

/* Small mobile devices (< 576px) */
@media (max-width: 575.98px) {
  .msz-navbar {
    padding: 8px 0;
  }
  .msz-logo-area img {
    height: 33px;
  }
  .msz-mobile-actions {
    gap: 6px !important;
  }
  .msz-cart-btn-mobile,
  .msz-toggler-btn {
    width: 36px;
    height: 36px;
  }
  .msz-toggler-btn i {
    font-size: 1.15rem !important;
  }
}

/* Buttons */
.btn-msz-primary {
  background: linear-gradient(135deg, var(--msz-navy-light) 0%, var(--msz-navy) 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  box-shadow: 0 4px 14px rgba(10, 43, 99, 0.25);
  transition: all 0.25s ease;
}
.btn-msz-primary:hover {
  background: linear-gradient(135deg, var(--msz-navy) 0%, #061B3D 100%);
  box-shadow: 0 6px 18px rgba(10, 43, 99, 0.35);
  transform: translateY(-1px);
}

.btn-msz-secondary {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
}
.btn-msz-secondary:hover {
  background: linear-gradient(135deg, #D97706 0%, #C2410C 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-msz-outline {
  border: 1.5px solid var(--msz-navy-light);
  color: var(--msz-navy-light) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 20px;
  background: transparent;
  transition: all 0.25s ease;
}
.btn-msz-outline:hover {
  background-color: var(--msz-navy-light);
  color: #FFFFFF !important;
}

/* Badges */
.badge-primary { background-color: #DBEAFE; color: #1E40AF; }
.badge-success { background-color: #DCFCE7; color: #166534; }
.badge-warning { background-color: #FEF3C7; color: #92400E; }
.badge-danger  { background-color: #FEE2E2; color: #991B1B; }
.badge-info    { background-color: #E0F2FE; color: #075985; }
.badge-secondary{ background-color: #F1F5F9; color: #475569; }

/* Cards */
.msz-card {
  background: var(--msz-card-bg);
  border: 1px solid var(--msz-border);
  border-radius: var(--msz-radius-md);
  box-shadow: var(--msz-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.msz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--msz-shadow-md);
}

/* Hero Section */
.msz-hero {
  background: linear-gradient(135deg, #071E43 0%, #0A2B63 60%, #0E5BB7 100%);
  color: #FFFFFF;
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
}
.msz-hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.msz-hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FCD34D;
  margin-bottom: 18px;
}
.msz-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .msz-hero-title {
    font-size: 2rem;
  }
}
.msz-hero-img-box {
  position: relative;
  border-radius: var(--msz-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.msz-hero-img-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Floating Badges */
.msz-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: var(--msz-navy-dark);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

/* Stat Floating Bar */
.msz-stat-bar {
  margin-top: -45px;
  position: relative;
  z-index: 10;
}
.msz-stat-card {
  background: #FFFFFF;
  border-radius: var(--msz-radius-md);
  padding: 24px 20px;
  box-shadow: var(--msz-shadow-md);
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.msz-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--msz-navy);
  line-height: 1;
}

/* Section Headers */
.msz-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--msz-navy-dark);
  margin-bottom: 10px;
}
.msz-section-subtitle {
  color: var(--msz-text-muted);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto;
}

/* Icon Badges */
.msz-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 26px;
}
.msz-icon-circle.trust { background: #FEF3C7; color: #D97706; }
.msz-icon-circle.business { background: #DBEAFE; color: #1D4ED8; }
.msz-icon-circle.membership { background: #DCFCE7; color: #15803D; }
.msz-icon-circle.courses { background: #F3E8FF; color: #7E22CE; }

/* Membership Pricing Cards */
.msz-plan-card {
  background: #FFFFFF;
  border: 2px solid var(--msz-border);
  border-radius: var(--msz-radius-lg);
  padding: 32px 24px;
  box-shadow: var(--msz-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.msz-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--msz-shadow-lg);
}
.msz-plan-card.featured {
  border-color: var(--msz-orange);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.18);
}
.msz-plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--msz-navy-dark);
}
.msz-plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}
.msz-plan-features li {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
}
.msz-plan-features li i {
  color: var(--msz-green);
  margin-top: 3px;
}

/* Product Cards */
.msz-product-card {
  background: #FFFFFF;
  border-radius: var(--msz-radius-md);
  border: 1px solid var(--msz-border);
  overflow: hidden;
  box-shadow: var(--msz-shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.msz-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--msz-shadow-md);
}
.msz-product-thumb {
  position: relative;
  background: #F8FAFC;
  padding: 20px;
  text-align: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msz-product-thumb img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.msz-product-card:hover .msz-product-thumb img {
  transform: scale(1.06);
}
.msz-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.msz-product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}
.msz-product-wishlist:hover {
  color: #EF4444;
  transform: scale(1.1);
}

/* Course Cards */
.msz-course-card {
  background: #FFFFFF;
  border-radius: var(--msz-radius-md);
  border: 1px solid var(--msz-border);
  overflow: hidden;
  box-shadow: var(--msz-shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.msz-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--msz-shadow-md);
}
.msz-course-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.msz-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.msz-course-card:hover .msz-course-thumb img {
  transform: scale(1.05);
}

/* News Cards */
.msz-news-card {
  background: #FFFFFF;
  border-radius: var(--msz-radius-md);
  border: 1px solid var(--msz-border);
  overflow: hidden;
  box-shadow: var(--msz-shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.msz-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--msz-shadow-md);
}
.msz-news-thumb {
  height: 180px;
  overflow: hidden;
}
.msz-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
.msz-footer {
  background: var(--msz-navy-dark);
  color: #94A3B8;
  padding: 70px 0 0 0;
  font-size: 14px;
}
.msz-footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
}
.msz-footer a {
  color: #CBD5E1;
  text-decoration: none;
}
.msz-footer a:hover {
  color: #F59E0B;
  padding-left: 3px;
}
.msz-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.msz-footer-links li {
  margin-bottom: 10px;
}
.msz-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  margin-top: 50px;
  color: #64748B;
  font-size: 13px;
}
.msz-social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  margin-right: 8px;
  transition: all 0.2s ease;
}
.msz-social-icon:hover {
  background: var(--msz-orange);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* User & Admin Layout */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 65px);
}
.dashboard-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-right: 1px solid var(--msz-border);
  padding: 24px 16px;
  flex-shrink: 0;
}
.dashboard-sidebar.admin-sidebar {
  background: #0A192F;
  border-right: 1px solid #1E293B;
  color: #94A3B8;
}
.dashboard-sidebar .nav-item {
  margin-bottom: 4px;
}
.dashboard-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.dashboard-sidebar .nav-link:hover {
  background: #F1F5F9;
  color: var(--msz-navy);
}
.dashboard-sidebar .nav-link.active {
  background: #EFF6FF;
  color: var(--msz-navy-light);
  font-weight: 600;
}
.dashboard-sidebar.admin-sidebar .nav-link {
  color: #94A3B8;
}
.dashboard-sidebar.admin-sidebar .nav-link:hover {
  background: #1E293B;
  color: #FFFFFF;
}
.dashboard-sidebar.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--msz-navy-light) 0%, var(--msz-navy) 100%);
  color: #FFFFFF;
}
.dashboard-content {
  flex-grow: 1;
  padding: 30px;
  background: var(--msz-bg-light);
  min-width: 0;
}

/* User Profile Header Crop Match */
.user-profile-bar {
  background: #FFFFFF;
  border-radius: var(--msz-radius-md);
  padding: 20px 24px;
  border: 1px solid var(--msz-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.user-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F59E0B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Certificate Card Frame */
.certificate-preview-box {
  background: #FFFAF0;
  border: 8px solid #D4AF37;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.certificate-preview-box::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed #996515;
  pointer-events: none;
}

/* Responsive utilities */
@media (max-width: 991.98px) {
  .dashboard-container {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--msz-border);
  }
  .dashboard-content {
    padding: 20px 15px;
  }
}
