/* -------------------------------------------------------------
 * Custom Stylesheet for Andhra Pradesh Portal - Inner Pages
 * Extends the existing design system without modifying style.css
 * ------------------------------------------------------------- */

/* 1. Common Elements */
.inner-hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 20px;
  border-radius: 0 0 20px 20px;
  margin-bottom: 20px;
}
.inner-hero .breadcrumb {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 500;
}
.inner-hero .breadcrumb-item a {
  color: var(--yellow);
  text-decoration: none;
  transition: opacity 0.2s;
}
.inner-hero .breadcrumb-item a:hover {
  opacity: 0.85;
}
.inner-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}
.inner-hero .breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  color: rgba(255, 255, 255, 0.4);
}
.inner-hero h2 {
  font-weight: 800;
  font-size: 20px;
  margin: 6px 0 2px 0;
  letter-spacing: 0.5px;
}
.inner-hero p {
  font-size: 10.5px;
  margin: 0;
  opacity: 0.85;
  line-height: 1.3;
}

/* Badge styles */
.badge-appt { background-color: rgba(7, 131, 70, 0.1); color: var(--primary-green); }
.badge-blue { background-color: rgba(23, 105, 194, 0.1); color: var(--blue); }
.badge-purple { background-color: rgba(103, 58, 183, 0.1); color: var(--purple); }
.badge-orange { background-color: rgba(239, 152, 0, 0.1); color: var(--orange); }

/* 2. Team listing Page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 80px;
}
@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 479px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 41, 66, 0.06);
}
.team-photo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.team-card:hover .team-photo {
  transform: scale(1.04);
}
.team-info {
  padding: 12px;
  text-align: center;
}
.team-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.team-designation {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

/* 3. Jobs Page Layout */
.jobs-layout {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}
.jobs-sidebar {
  flex: 0 0 240px;
}
.jobs-main {
  flex: 1;
}
@media (max-width: 767px) {
  .jobs-layout {
    flex-direction: column;
  }
  .jobs-sidebar {
    flex: 1;
  }
}

/* Job Filters Card */
.filter-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
}
.filter-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-group {
  margin-bottom: 10px;
}
.filter-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.filter-control {
  font-size: 10.5px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--navy);
  background-color: var(--light-gray);
  width: 100%;
}
.filter-control:focus {
  outline: none;
  border-color: var(--primary-green);
  background-color: var(--white);
}
.filter-btn {
  font-size: 10.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 20px;
  width: 100%;
  margin-top: 6px;
}

/* Job Cards Stack */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 41, 66, 0.04);
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dept-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.job-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 2px 0;
  line-height: 1.3;
}
.job-org {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0;
}
.job-meta-item {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.job-meta-item i {
  font-size: 10px;
}
.job-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}
.job-last-date {
  font-size: 9px;
  font-weight: 600;
  color: #dc3545;
}
.job-btn {
  font-size: 10px;
  font-weight: 400;
  padding: 5px 12px;
  color: #fff;
  border-radius: 20px;
}
.job-card-footer a:hover {
    background-color: #1e3f61;
    color: #fff;
}
/* 4. Job Details View Layout */
.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background-color: var(--light-blue);
  border: 1px solid rgba(23, 105, 194, 0.1);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
@media (max-width: 479px) {
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
}
.detail-item {
  display: flex;
  flex-direction: column;
}
.detail-label {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.detail-val {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1px;
}
.detail-section {
  margin-bottom: 14px;
}
.detail-sec-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  border-left: 3px solid var(--blue);
  padding-left: 6px;
  margin-bottom: 6px;
}
.detail-text {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.detail-list {
  padding-left: 14px;
  margin-bottom: 0;
}
.detail-list li {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}

/* 5. Trending listing Page */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 80px;
}
@media (max-width: 991px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }
}

.trending-list-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trending-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background-color: var(--light-gray);
}
.trending-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.trending-list-card:hover .trending-img {
  transform: scale(1.04);
}
.trending-cat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 7.5px;
  font-weight: 700;
  background-color: rgba(16, 41, 66, 0.85);
  color: var(--white);
  padding: 3px 6px;
  border-radius: 20px;
  text-transform: uppercase;
}
.trending-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trending-card-excerpt {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 9px;
  font-weight: 600;
}
.trending-card-date {
  color: var(--text-muted);
}
.trending-card-link {
  color: var(--blue);
  text-decoration: none;
}
.trending-card-link:hover {
  color: var(--navy);
}

/* 6. Trending Article Detail View Layout */
.article-detail-layout {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}
.article-main-content {
  flex: 1;
  max-width: 100%;
}
.article-sidebar {
  flex: 0 0 240px;
}
@media (max-width: 767px) {
  .article-detail-layout {
    flex-direction: column;
  }
  .article-sidebar {
    flex: 1;
  }
}

.article-header {
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.article-main-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.article-hero-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  font-size: 11px;
  color: var(--navy);
  line-height: 1.5;
}
.article-body h2 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 8px 0;
}
.article-body h3 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 6px 0;
}
.article-body p {
  margin-bottom: 10px;
}
.article-body ul, .article-body ol {
  padding-left: 16px;
  margin-bottom: 10px;
}
.article-body li {
  margin-bottom: 4px;
}
.info-box {
  background-color: var(--light-green);
  border: 1px solid rgba(7, 131, 70, 0.15);
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
}
.info-box-title {
  font-weight: 700;
  color: var(--dark-green);
  font-size: 10.5px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar Widgets */
.sidebar-widget {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
}
.widget-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 3px;
}
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget-item-link {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.3;
}
.widget-item-link:hover {
  color: var(--primary-green);
}
.widget-item-date {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Related section */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* 7. Schemes Listing Layout */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 80px;
}
@media (max-width: 575px) {
  .scheme-grid {
    grid-template-columns: 1fr;
  }
}

.scheme-list-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(16, 41, 66, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.scheme-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 41, 66, 0.04);
}
.scheme-card-header {
  margin-bottom: 6px;
}
.scheme-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin: 4px 0 2px 0;
}
.scheme-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* 8. PDF Action Card Box */
.pdf-action-card {
  background-color: var(--light-yellow);
  border: 1px dashed var(--orange);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 575px) {
  .pdf-action-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
.pdf-action-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 575px) {
  .pdf-action-info {
    flex-direction: column;
  }
}
.pdf-icon-box {
  width: 34px;
  height: 34px;
  background-color: #ffeebc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--orange);
}
.pdf-action-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1px;
}
.pdf-action-desc {
  font-size: 9px;
  color: var(--text-muted);
}
.pdf-btn-group {
  display: flex;
  gap: 6px;
}
@media (max-width: 479px) {
  .pdf-btn-group {
    flex-direction: column;
    width: 100%;
  }
}
.btn-pdf-view {
  font-size: 9px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--orange) !important;
  border: 1.5px solid var(--orange);
  background-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pdf-view:hover {
  background-color: var(--orange);
  color: var(--white) !important;
}
.btn-pdf-download {
  font-size: 9px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: var(--orange);
  border: 1.5px solid var(--orange);
  color: var(--white) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-pdf-download:hover {
  background-color: #cc7d00;
  border-color: #cc7d00;
}
.team-info small {
    background-color: #102942;
    padding: 4px 24px;
    border-radius: 50px;
    margin-bottom: 5px;
    display: inline-block;
    color: #fff;
    letter-spacing: 1px;
}

/* -------------------------------------------------------------
 * Detail Pages Styles (Jobs & Team Details)
 * ------------------------------------------------------------- */
.text-navy {
  color: var(--navy) !important;
}
.text-green-dark {
  color: var(--primary-green) !important;
}
.text-orange-dark {
  color: var(--orange) !important;
}
.fs-7 {
  font-size: 0.85rem !important;
}
.fs-8 {
  font-size: 0.75rem !important;
}
.fs-9 {
  font-size: 0.65rem !important;
}
.leading-relaxed {
  line-height: 1.6 !important;
}
.hover-text-blue:hover {
  color: #0d6efd !important;
}

/* -------------------------------------------------------------
 * Job Filter Pills Styles
 * ------------------------------------------------------------- */
.job-filter-pills .nav-link {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  transition: all 0.2s ease;
}

.job-filter-pills .nav-link.active {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}

.job-filter-pills .nav-link:hover:not(.active) {
  background-color: var(--light-blue);
  color: var(--navy);
  border-color: rgba(16, 41, 66, 0.2);
}