/* =========================================================
   TuxHost.org - Custom Bootstrap 5.3.x stylesheet
   ========================================================= */

/* Base layout */
:root {
  --tux-blue-dark: #061a33;
  --tux-blue: #0b2f5b;
  --tux-blue-mid: #144c88;
  --tux-blue-soft: #eaf2fb;
  --tux-text: #162033;
  --tux-muted: #607086;
  --tux-border: #dbe7f4;
  --tux-light: #f5f8fc;
  --tux-white: #ffffff;
  --tux-accent: #0d6efd;
  --tux-shadow: 0 14px 36px rgba(6, 26, 51, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--tux-light);
  color: var(--tux-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Navigation */
.tux-navbar {
  background: linear-gradient(135deg, var(--tux-blue-dark), var(--tux-blue));
  box-shadow: 0 8px 22px rgba(6, 26, 51, 0.22);
}

.navbar-brand {
  letter-spacing: 0.2px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.tux-navbar .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

.tux-navbar .nav-link:hover,
.tux-navbar .nav-link:focus {
  color: #ffffff;
}

.tux-navbar .dropdown-menu {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--tux-shadow);
  padding: 10px;
}

.tux-navbar .dropdown-item {
  border-radius: 10px;
  padding: 9px 12px;
}

.tux-navbar .dropdown-item:hover {
  background: var(--tux-blue-soft);
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.22), transparent 30%),
    linear-gradient(135deg, var(--tux-blue-dark), var(--tux-blue-mid));
  color: #ffffff;
  padding: 92px 0;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
}

.hero-image {
  max-width: 100%;
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.image-placeholder {
  min-height: 320px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* Section typography */
.section-title {
  color: var(--tux-blue-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--tux-muted) !important;
}

/* Cards */
.service-card,
.project-card,
.feed-box {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(10, 35, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.feed-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(10, 35, 70, 0.14);
}

.service-card p,
.project-card p {
  color: var(--tux-muted);
  margin-bottom: 0;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--tux-blue-soft);
  color: var(--tux-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

/* Feed cards */
.feed-topic-card {
  background: #f5f8fc;
  border: 1px solid #e1eaf5;
  border-radius: 16px;
  padding: 16px;
  min-height: 120px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(10, 35, 70, 0.12);
}

.feed-topic-card h4 {
  color: var(--tux-blue-dark);
  line-height: 1.35;
}

.feed-unavailable {
  background: #f5f8fc;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  padding: 14px;
  color: #5f748f;
  font-size: 0.9rem;
}

/* Older feed list support */
.feed-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.feed-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e8eef6;
}

.feed-list li:last-child {
  border-bottom: 0;
}

.feed-list a {
  display: block;
  color: var(--tux-blue-dark);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}

.feed-list a:hover {
  color: var(--tux-accent);
  text-decoration: underline;
}

.feed-list span {
  display: block;
  margin-top: 4px;
  color: var(--tux-muted);
  font-size: 0.82rem;
}

/* Lists */
.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tux-accent);
  font-weight: 800;
}

/* CTA */
.cta {
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, var(--tux-blue-dark), var(--tux-blue-mid));
  color: #ffffff;
  box-shadow: var(--tux-shadow);
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
}

/* Footer */
footer {
  background: var(--tux-blue-dark);
  color: rgba(255, 255, 255, 0.76);
}

footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-line {
  border-color: rgba(255, 255, 255, 0.14);
  margin: 32px 0 20px;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: var(--tux-accent);
  border-color: var(--tux-accent);
}

.btn-outline-primary {
  border-color: var(--tux-accent);
  color: var(--tux-accent);
}

.btn-outline-primary:hover {
  background: var(--tux-accent);
  border-color: var(--tux-accent);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero {
    padding: 70px 0;
  }

  .hero .display-4 {
    font-size: 2.35rem;
  }

  .navbar-nav {
    padding-top: 16px;
  }

  .navbar-nav .btn {
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 56px 0;
  }

  .hero .display-4 {
    font-size: 2rem;
  }

  .cta {
    padding: 2rem !important;
  }

  .feed-topic-card {
    min-height: auto;
  }
}

