/* components.css — one slice of the site stylesheet, split by concern.
   Load order is fixed in base.html and mirrors the old single-file
   source order; do not reorder the <link> tags. tokens.css holds
   every colour and must load first. */
/*********************************************************************


                                CONTENT


**********************************************************************/
img {
  max-width: 100%;
}
.btn {
  font-size: 12px;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Open sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  -webkit-border-radius: 0px;
  -webkit-background-clip: padding-box;
  -moz-border-radius: 0px;
  -moz-background-clip: padding;
  border-radius: 0px;
  background-clip: padding-box;
  -webkit-transition-property: all;
  -moz-transition-property: all;
  -o-transition-property: all;
  -ms-transition-property: all;
  transition-property: all;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  -o-transition-duration: 0.2s;
  transition-duration: 0.2s;
  border: 0 none;
  padding: 12px 35px;
  text-shadow: none;
}
.btn-primary {
  color: var(--bg);
  background-color: var(--accent);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  color: var(--bg);
  background-color: var(--accent-hover);
}
.btn-action {
  font-weight: bold;
  background: transparent!important;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-shadow: none;
}
.btn-action:hover,
.btn-action:focus,
.btn-action:active,
.btn-action.active {
  color: var(--bg)!important;
  background: var(--accent)!important;
  border-color: var(--accent);
}
.btn-lg {
  padding: 15px 60px;
  font-size: 12px;
  line-height: 1.33;
  font-weight: bold;
}
.panel-cta {
  box-shadow: 0 0 0 1px var(--border), 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
  background: var(--bg-elev);
  -webkit-border-radius: 0;
  -webkit-background-clip: padding-box;
  -moz-border-radius: 0;
  -moz-background-clip: padding;
  border-radius: 0;
  background-clip: padding-box;
}
.panel-cta p,
.panel-cta h3,
.panel-cta h4,
.panel-cta h5,
.panel-cta h6 {
  margin: 0;
}
.panel-cta .panel-body {
  padding: 15px 35px;
}
@media (min-width: 1200px) {
.panel-cta .panel-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
/* Section - Featured */
.featured {
  font-size: 13px;
  font-size: 0.8125rem;
}
/* Card titles keep the casing from content.py — no text-transform. These are
   product names, and forcing caps loses real information: "Dingi Map APIs"
   became "DINGI MAP APIS" and the PyPI package "stocksurferbd" shouted. */
.featured h3 {
  font-weight: bold;
  font-family: "Open sans", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-size: 1.5rem;
  line-height: 1.4em;
  vertical-align: middle;
  margin: 0 0 25px 0;
}
/* Section - Services & Projects cards */
#services > .row > div,
#recent-works > .row > div {
  margin-bottom: 20px;
}
.service-card,
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover,
.project-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.service-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.project-thumb {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-inset);
}
.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card h3,
.project-card h3 {
  margin-top: 0;
}
.service-card p,
.project-card p {
  flex: 1 1 auto;
}
.cards-more {
  margin-top: 20px;
}
/*********************************************************************


                       SECTION TITLES & PAGE HEADERS


**********************************************************************/
.section-title {
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0px 0 25px;
  text-align: center;
  font-weight: 300;
  font-size: 36px;
  font-size: 2.25rem;
}
.section-title a {
  color: var(--text-strong);
}
.section-title span {
  display: inline-block;
  position: relative;
}
.section-title span:before,
.section-title span:after {
  content: "";
  position: absolute;
  height: 4px;
  top: .53em;
  width: 400%;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.section-title span:before {
  right: 100%;
  margin-right: 45px;
}
.section-title span:after {
  left: 100%;
  margin-left: 45px;
}
.page-header {
  padding-bottom: 0;
  margin: 0;
  border-bottom: none;
  text-align: left;
}
.page-header .page-title {
  margin-top: 0;
  margin-bottom: 30px;
}
/*********************************************************************


                                FOOTER


**********************************************************************/
#footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 30px 0 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
#footer a {
  color: var(--text);
}
#footer a:hover {
  color: var(--accent);
}
#footer h3.widget-title {
  font-size: 15px;
  font-size: 0.9375rem;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 20px;
}
#underfooter {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 15px 0;
  color: var(--text-faint);
  font-size: 12px;
}
#underfooter a {
  color: var(--text-muted);
}
#underfooter a:hover {
  color: var(--accent);
}
#underfooter p {
  margin: 0;
}
.follow-me-icons {
  font-size: 30px;
}
.follow-me-icons i {
  display: inline-block;
  margin: 0 10px;
}
/* Services — simple "Read more" text link + even card rows
/////////////////////////////////////////////////////////////////////*/
.read-more {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}
.read-more:hover {
  text-decoration: none;
}
@media (min-width: 768px) {
#services > .row,
#recent-works > .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Timeline — Experience & Education
/////////////////////////////////////////////////////////////////////*/
.timeline {
  position: relative;
  margin-top: 10px;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-marker {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
}
.timeline-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.timeline-marker::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: -36px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--border);
}
.timeline-item:last-child .timeline-marker::after {
  display: none;
}
.timeline-content {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  padding: 22px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.timeline-content:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}
.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.timeline-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}
.timeline-title a {
  color: var(--text-strong);
  text-decoration: none;
}
.timeline-title a:hover {
  color: var(--accent);
}
.timeline-subtitle {
  flex: 0 0 100%;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.timeline-date {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
.timeline-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 12px;
}
.timeline-body p:last-child {
  margin-bottom: 0;
}
.timeline-media {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.timeline-media figure {
  flex: 1 1 220px;
  margin: 0;
}
.timeline-media img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.timeline-media figcaption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}
/* Publications list
/////////////////////////////////////////////////////////////////////*/
.publication-list {
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.publication-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.publication-item:hover {
  background: var(--bg-elev);
}
.publication-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
}
.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.publication-meta span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--bg-elev-2);
  color: var(--text);
}
.publication-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 12px;
}
/* Max page width
/////////////////////////////////////////////////////////////////////*/
@media (min-width: 1200px) {
.container {
    max-width: 1080px;
  }
}
