@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
:root {
  --primary:       #1C6843;
  --primary-dark:  #144d31;
  --primary-light: #e8f4ed;
  --accent:        #E9A81D;
  --accent-light:  #fdf3d9;
  --bg:            #F5F7F5;
  --white:         #ffffff;
  --text:          #172b1f;
  --text-muted:    #5a7562;
  --border:        #cce0d4;
  --shadow-sm:     0 2px 8px rgba(28,104,67,.08);
  --shadow-md:     0 4px 20px rgba(28,104,67,.12);
  --shadow-lg:     0 8px 40px rgba(28,104,67,.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --font:          'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* --- Navbar --- */
.kalam-navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1040;
}
.kalam-navbar .navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem; color: var(--text);
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.brand-name span { color: var(--primary); }
.kalam-navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500; padding: 6px 14px !important;
  border-radius: var(--radius-sm); transition: all .2s;
}
.kalam-navbar .nav-link:hover, .kalam-navbar .nav-link.active {
  color: var(--primary) !important; background: var(--primary-light);
}
.kalam-navbar .navbar-toggler { border: none; font-size: 1.5rem; color: var(--text); }
.kalam-navbar .navbar-toggler:focus { box-shadow: none; }

/* --- Buttons --- */
.btn { font-family: var(--font); font-weight: 600; border-radius: var(--radius-sm); padding: 8px 20px; transition: all .2s; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
.btn-accent:hover { background: #d49519; border-color: #d49519; color: #1a1a1a; }
.btn-sm { padding: 5px 14px; font-size: .85rem; }
.btn-lg { padding: 11px 28px; font-size: 1rem; }

/* --- Avatar --- */
.avatar-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 700;
}

/* --- Cards --- */
.kalam-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.kalam-card:hover { box-shadow: var(--shadow-md); }

/* --- Stat Cards --- */
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.green  { background: var(--primary-light); color: var(--primary); }
.stat-icon.gold   { background: var(--accent-light);  color: #b37a00; }
.stat-icon.blue   { background: #e8f0fd; color: #1a56db; }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

/* --- Badges --- */
.badge-kalam { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-pending  { background: #fff8e1; color: #92400e; border: 1px solid #fcd34d; }
.badge-approved { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.badge-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- Forms --- */
.form-label { font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: 5px; }
.form-control, .form-select {
  border-color: var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-family: var(--font); font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28,104,67,.12);
}
.form-text { font-size: .8rem; color: var(--text-muted); }
.input-group-text { background: var(--primary-light); border-color: var(--border); color: var(--primary); }

/* --- Section Titles --- */
.section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.section-title { font-size: 2rem; font-weight: 800; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* --- Hero --- */
.kalam-hero {
  background: linear-gradient(135deg, #0d3820 0%, #1C6843 55%, #2a8a57 100%);
  color: #fff; padding: 90px 0; position: relative; overflow: hidden;
}
.kalam-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 450px; height: 450px;
  background: rgba(255,255,255,.03); border-radius: 50%;
}
.kalam-hero::after {
  content: ''; position: absolute; bottom: -120px; left: -60px;
  width: 380px; height: 380px; background: rgba(233,168,29,.05); border-radius: 50%;
}
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.15; color: #fff; }
.hero-title .highlight { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 5px 16px; border-radius: 30px;
  font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 44px 0;
}
.page-header h1 { color: #fff; font-size: 1.9rem; margin-bottom: 6px; }
.page-header p { color: rgba(255,255,255,.72); margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,.65); }
.breadcrumb-item.active { color: rgba(255,255,255,.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }

/* --- Impact --- */
.impact-section { background: var(--white); border-bottom: 1px solid var(--border); }
.impact-number { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.impact-label { color: var(--text-muted); font-size: .87rem; font-weight: 500; }

/* --- Auth --- */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0d3820 0%, var(--primary) 100%);
  padding: 40px 0;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; margin: 0 auto;
}
.auth-logo {
  width: 50px; height: 50px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.auth-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); font-size: .88rem; margin-bottom: 26px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: .83rem; margin: 18px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* --- Dashboard Layout --- */
.dashboard-wrapper { display: flex; min-height: calc(100vh - 70px); }
.kalam-sidebar {
  width: 248px; background: var(--white);
  border-right: 1px solid var(--border); padding: 20px 0;
  flex-shrink: 0; position: sticky; top: 70px;
  height: calc(100vh - 70px); overflow-y: auto;
}
.sidebar-user {
  padding: 0 18px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.sidebar-avatar {
  width: 46px; height: 46px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; margin-bottom: 8px;
}
.sidebar-name { font-weight: 700; font-size: .93rem; }
.sidebar-role { font-size: .78rem; color: var(--text-muted); }
.sidebar-section {
  padding: 4px 18px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); margin-top: 10px; margin-bottom: 2px;
}
.sidebar-section {
    margin-bottom: 8px; /* Reduce from default (usually 16px) */
}
.sidebar-nav { list-style: none; padding: 0 10px; margin: 0; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; color: var(--text-muted); font-weight: 500;
  font-size: .88rem; border-radius: var(--radius-sm); transition: all .2s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: var(--primary-light); color: var(--primary);
}
.sidebar-nav li a i { font-size: 1rem; width: 18px; }
.sidebar-nav li a.text-danger:hover { background: #fef2f2; color: #dc3545 !important; }
.dashboard-main { flex: 1; padding: 30px; min-width: 0; }
.dash-header { margin-bottom: 24px; }
.dash-header h2 { font-size: 1.55rem; font-weight: 800; }

/* --- Tables --- */
.kalam-table { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.kalam-table thead th {
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: .83rem;
  padding: 13px 16px; border: none; white-space: nowrap;
}
.kalam-table tbody td {
  padding: 11px 16px; border-color: var(--border);
  vertical-align: middle; font-size: .88rem;
}
.kalam-table tbody tr:hover { background: #f8fbf9; }

/* --- Certificates --- */
.cert-card {
  background: linear-gradient(135deg, #f9fdf9, #e8f4ed);
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; top: -25px; right: -25px;
  width: 80px; height: 80px; background: var(--accent-light); border-radius: 50%;
}
.cert-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 10px; }
.cert-title { font-weight: 700; font-size: .95rem; }
.cert-date { font-size: .8rem; color: var(--text-muted); }
.cert-hours { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

/* --- Projects --- */
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-card-top {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 18px 20px; color: #fff;
}
.project-card-body { padding: 18px 20px; }
.progress { height: 6px; border-radius: 3px; background: var(--border); }
.progress-bar { background: var(--primary); border-radius: 3px; }

/* --- Announcements --- */
.ann-item {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 10px; transition: all .2s;
}
.ann-item:hover { box-shadow: var(--shadow-sm); }
.ann-item.urgent { border-left-color: #dc3545; }
.ann-item.info   { border-left-color: #1a56db; }
.ann-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.ann-meta  { font-size: .78rem; color: var(--text-muted); }

/* --- Gallery --- */
.gallery-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-thumb {
  height: 170px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--primary);
}
.gallery-body { padding: 16px; }

/* --- Footer --- */
.kalam-footer { background: #0d3820; color: rgba(255,255,255,.65); padding: 52px 0 24px; margin-top: 0; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--accent); }
.footer-heading { color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.55); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-social { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-social:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 36px; padding-top: 20px;
  font-size: .82rem; color: rgba(255,255,255,.35);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .kalam-sidebar {
    position: fixed; left: -250px; top: 70px; z-index: 1030;
    height: calc(100vh - 70px); transition: left .3s; box-shadow: var(--shadow-lg);
  }
  .kalam-sidebar.open { left: 0; }
  .dashboard-main { padding: 20px 16px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .auth-card { padding: 28px 20px; }
}

/* --- Utilities --- */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.gap-2 { gap: .5rem; }

.pw-rule {
    color: var(--text-muted, #888);
    transition: color .2s;
    line-height: 1.8;
}
.pw-rule.valid {
    color: #1C6843;   /* your green */
}
.pw-rule.valid i::before {
    content: "\f26a"; /* bi-check-circle-fill */
}

/* ─────────────────────────────────────────────────────────────
   Social Share Icons  —  .kalam-share-icon
   Add to your main CSS file (e.g. assets/style.css)
   ───────────────────────────────────────────────────────────── */

.kalam-share-icon {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    border-radius:   9px;
    background:      var(--ic-bg, #555);
    color:           #fff;
    border:          none;
    cursor:          pointer;
    text-decoration: none;
    flex-shrink:     0;
    transition:      transform .15s, filter .15s, box-shadow .15s;
    box-shadow:      0 2px 6px rgba(0,0,0,.18);
}

.kalam-share-icon svg {
    width:  18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.kalam-share-icon:hover {
    transform:  translateY(-2px) scale(1.08);
    filter:     brightness(1.12);
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
    color:      #fff;
    text-decoration: none;
}

.kalam-share-icon:active {
    transform: scale(.94);
    filter:    brightness(.95);
}

/* "Copied!" flash state for copy-link button */
.kalam-share-icon--copy.copied {
    --ic-bg: #28a745;
}
/* ─────────────────────────────────────────────
   Horizontal-overflow guard (page + hero)
   ───────────────────────────────────────────── */
html, body {
  max-width: 100%;
  overflow-x: hidden;     /* page-level safety net */
}

.kalam-hero {
  overflow: hidden;       /* clips BOTH ::before and ::after */
}