/* ---------- HOME PAGE (Service Portal) ---------- */

/* NEW: News Ticker */
.news-ticker {
  background: #fff;
  color: #333;
  padding: 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  position: relative;
  z-index: 1; /* common.css body::before ke upar */
}
.ticker-label {
  background: #0f3d91;
  color: white;
  padding: 5px 12px;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
  margin-right: 15px;
  flex-shrink: 0; /* Shrink na ho */
}
.ticker-container {
  flex-grow: 1;
  overflow: hidden;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-ticker 20s linear infinite;
}
.ticker-content span {
  margin-right: 50px;
  font-size: 0.9rem;
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Half par reset */
}
/* End News Ticker */


main {
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  color: #0f3d91;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* NEW: About Us Section Styles */
.about-us-container {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.about-text {
  flex: 2;
}

.about-text h3 {
  color: #0f3d91;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-text p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-image {
  flex: 1; /* Image ko kam jagah */
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive (phone ke liye) */
@media (max-width: 768px) {
  .about-us-container {
    flex-direction: column;
  }
}
/* End About Us Styles */


/* --- Service Grid --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}
.service-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(15,61,145,0.15);
  border-color: #0f3d91;
}
.service-card i {
  font-size: 2.5rem;
  color: #0f3d91;
  margin-bottom: 15px;
}
.service-card h3 {
  font-size: 1.25rem;
  color: #0f3d91;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* NEW: Statistics Counter */
.stats-container {
  background: rgba(15, 61, 145, 0.9); /* Theme color */
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 1200px;
  margin: 40px auto;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.stats-container h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item i {
  font-size: 2.5rem;
  color: #ffdd57; /* Yellow highlight */
  margin-bottom: 10px;
}
.stat-item .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.stat-item p {
  font-size: 1rem;
  color: #ddd;
}
/* End Statistics */


/* --- FAQ Section --- */
.faq {
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(255,255,255,0.9);
  padding: 30px 35px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.faq h2 {
  color: #0f3d91;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.8rem;
}
.faq-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
  cursor: pointer;
}
.faq-item h3 {
  font-size: 1.1rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 600;
}
.faq-item p {
  display: none;
  font-size: 0.95rem;
  color: #444;
  padding-bottom: 15px;
  line-height: 1.6;
}

/* ---------- NEW: Scroll Animation Classes ---------- */

/* Yeh class element ko shuru mein chupa degi */
.hidden-fade {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.hidden-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 0.8s ease-out;
}
.hidden-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 0.8s ease-out;
}
.hidden-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 0.8s ease-out;
}

/* Jab 'show' class add hogi, tab element dikhega */
.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}