/* style_index.css
   Extracted styles for index.php (rachana page)
   Place this file in your project's css/ or asset/css/ folder and link with:
   <link rel="stylesheet" href="css/style_index.css"> (adjust path as needed)
*/

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #24343f;
}

/* Header / hero */
.ps-header {
  background: linear-gradient(90deg, #0d6efd, #4c82ff);
  padding: 25px 0;
  text-align: center;
  color: #fff;
}

/* common info card */
.info-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.title {
  font-weight: 700;
  color: #0d6efd;
}

/* Carousel */
.carousel-item img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #e9ecef;
}

.current-desc {
  margin-top: 12px;
  color: #333;
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  word-break: break-word;
  min-height: 1.5em;
}

/* Minister / member cards */
.minister-card {
  border-radius: 12px;
  padding: .6rem;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(13, 110, 253, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.minister-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.minister-photo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 18%;
  overflow: hidden;
  display: inline-block;
  background: #f1f3f5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  border: 3px solid #fff;
}

.minister-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.minister-name {
  margin-top: .6rem;
  font-weight: 600;
  color: #0d3d7a;
  line-height: 1.1;
  text-align: center;
  font-size: .95rem;
}

.minister-designation {
  margin-top: .25rem;
  color: #4a5568;
  font-size: .82rem;
  text-align: center;
}

/* responsive grid for ministers */
.ministers-responsive>div {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  padding: 0 .25rem;
  box-sizing: border-box;
}

@media (min-width:768px) {
  .ministers-responsive>div {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (min-width:1200px) {
  .ministers-responsive>div {
    flex: 0 0 16.666%;
    max-width: 16.666%;
  }
}

@media (max-width:576px) {
  .minister-photo-wrap {
    width: 90px;
    height: 90px;
  }

  .minister-name {
    font-size: .92rem
  }
}

/* decorative cards (RTI / Sanad / RTS) */
.decor-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15), inset 0 0 12px rgba(255, 255, 255, 0.4);
  transition: all .28s ease-in-out;
}

.decor-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.5);
  border-color: #0d6efd;
}

.decor-inner {
  text-align: center;
  padding: 12px 5px;
}

.decor-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d3d7a;
}

.decor-subtitle {
  font-size: .95rem;
  color: #1d4e89;
  margin-top: 4px;
}

.decor-link {
  text-decoration: none;
}

.decor-warning {
  font-weight: 700;
  color: #c0392b;
  font-size: .95rem;
  line-height: 1.4
}

/* small utility tweaks */
.info-card.p-3 {
  padding: 1rem;
}

/* Stats card cells */
.small-muted {
  color: #6c757d;
  font-size: .85rem;
}

/* Department buttons (glossy) */
.department-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: .75rem;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  box-shadow: 0 6px 16px rgba(11, 21, 40, 0.07);
  width: 100%;
  white-space: normal;
  line-height: 1.1;
  min-height: 56px;
  position: relative;
  overflow: hidden;
}

.department-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0) 60%);
  transform: rotate(20deg) translateX(-60%);
  transition: transform .9s ease;
  pointer-events: none;
}

.department-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(12, 42, 99, 0.18);
  filter: saturate(1.03);
}

.department-btn:hover::after {
  transform: rotate(20deg) translateX(30%);
}

.department-btn .bi {
  font-size: 1.15rem;
  opacity: .95
}

.department-label {
  font-size: .95rem
}

/* gradient color classes for department buttons */
.grad-info {
  background: linear-gradient(135deg, #37a6ff, #1e90ff);
}

.grad-primary {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.grad-danger {
  background: linear-gradient(135deg, #ff6b6b, #ff3d00);
}

.grad-success {
  background: linear-gradient(135deg, #16a34a, #06b6d4);
}

.grad-dark {
  background: linear-gradient(135deg, #374151, #111827);
}

.grad-warning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

@media (max-width:576px) {
  .department-btn {
    padding: .65rem .75rem;
    min-height: 60px
  }

  .department-label {
    font-size: .98rem
  }
}

/* Important Links box */
.important-box {
  border-radius: 18px;
  padding: 25px;
  background: #faffff;
  border: 2px solid #6ec9ff;
  box-shadow: 0 8px 25px rgba(0, 90, 150, 0.18);
  position: relative;
  overflow: hidden
}

.important-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #007bff, #00c6ff);
}

.important-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #d80032;
  text-align: center;
  margin-bottom: 22px
}

/* 4 links in 1 row grid */
.links-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

@media (max-width:992px) {
  .links-row {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:576px) {
  .links-row {
    grid-template-columns: repeat(1, 1fr)
  }
}

.link-card {
  background: #eef9ff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid #bde6ff;
  transition: .3s ease
}

.link-card:hover {
  background: #d9f2ff;
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 90, 150, 0.25)
}

.link-card a {
  text-decoration: none;
  color: #004085;
  font-weight: 600;
  font-size: 1rem
}

.link-card i {
  margin-right: 5px;
  color: #007bff
}

/* Footer basic styling (if you want to tweak) */
.site-footer {
  background: #0d1b2a;
  color: #f2f6fb;
  padding: 28px 0;
  font-size: .95rem
}

.site-footer a {
  color: #dcefff;
  text-decoration: none
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

@media (max-width:992px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:576px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr
  }
}

/* small helpers */
.text-muted-small {
  color: #6c757d;

  font-size: .9rem
}

.center {
  text-align: center
}







/* End of style_index.css */