@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

:root {
  --primary-color: #2C2C54;
  --secondary-color: #c62828;
  --accent-color: #ffc107;
  --light-color: #f5f5f5;
  --dark-color: #212121;
  --text-color: #333333;
  --hover-transition: all 0.3s ease;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* Header */
header {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 14px;
  color: var(--primary-color);
  margin: 0;
}

.top-right {
  display: flex;
  align-items: center;
}

.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.language-switcher button {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0;
  border: none;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--hover-transition);
  cursor: pointer;
}

.language-switcher button:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Main Navigation */
.main-nav {
  background-color: var(--primary-color);
  padding: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.nav-links li {
  margin: 0;
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 15px 20px;
  display: block;
  transition: var(--hover-transition);
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  animation: backgroundChange 4s infinite;
}

@keyframes backgroundChange {
  0%, 100% {
    background: linear-gradient(
      rgba(255, 153, 51, 0.7) 33.33%,
      rgba(255, 255, 255, 0.7) 33.33% 66.66%,
      rgba(19, 136, 8, 0.7) 66.66%
    ), url('https://www.livelaw.in/h-upload/2021/02/24/389644-gujarat-police-live-law.jpg');
    background-size: cover;
    background-position: center;
  }
  50% {
    background: linear-gradient(
      rgba(255, 153, 51, 0.7) 33.33%,
      rgba(255, 255, 255, 0.7) 33.33% 66.66%,
      rgba(19, 136, 8, 0.7) 66.66%
    ), url('https://cdn1.expresscomputer.in/wp-content/uploads/2015/01/16174716/Gujarat-Police.jpg');
    background-size: cover;
    background-position: center;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--hover-transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #b71c1c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Today's Tribute Section */
.today-tribute {
  padding: 40px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 153, 51, 0.9),
    rgba(255, 255, 255, 0.9),
    rgba(19, 136, 8, 0.9)
  );
  position: relative;
  overflow: hidden;
}

.tribute-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.tribute-container h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.tribute-container h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tribute-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.tribute-slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  padding: 0 10px;
}

.tribute-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: tributeFadeIn 1s ease-in;
  flex-shrink: 0;
  width: calc(33.33% - 13.33px);
}

.tribute-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
  animation: tributeShine 3s infinite;
}

.tribute-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid var(--accent-color);
}

.tribute-card h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 10px;
}

.tribute-card .rank {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.tribute-card .date {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.tribute-card .tribute-message {
  font-style: italic;
  color: var(--text-color);
  font-size: 16px;
  background: rgba(255, 193, 7, 0.1);
  padding: 10px;
  border-radius: 5px;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  z-index: 3;
  opacity: 1;
}

.slider-controls button {
  background-color: rgba(44, 44, 84, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: var(--hover-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background-color: var(--secondary-color);
}

.slider-controls .prev-btn {
  margin-left: -50px;
}

.slider-controls .next-btn {
  margin-right: -50px;
}

@keyframes tributeFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tributeShine {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 576px) {
  .tribute-slider-wrapper {
    min-height: 300px;
  }
  .tribute-card {
    width: calc(100% - 20px);
  }
}

/* Martyrs Section */
.martyrs {
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  animation: martyrsBackgroundChange 4s infinite;
}

@keyframes martyrsBackgroundChange {
  0%, 100% {
    background: linear-gradient(
      to right,
      rgba(255, 153, 51, 0.2),
      rgba(255, 255, 255, 0.5),
      rgba(19, 136, 8, 0.2)
    ), url('https://cdn1.expresscomputer.in/wp-content/uploads/2015/01/16174716/Gujarat-Police.jpg');
    background-size: cover;
    background-position: center;
  }
  50% {
    background: linear-gradient(
      to right,
      rgba(255, 153, 51, 0.2),
      rgba(255arget="_blank", 255, 255, 0.5),
      rgba(19, 136, 8, 0.2)
    ), url('https://www.livelaw.in/h-upload/2021/02/24/389644-gujarat-police-live-law.jpg');
    background-size: cover;
    background-position: center;
  }
}

.martyrs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.section-title,
.martyrs-grid {
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 100px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.martyrs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.martyr-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
  cursor: pointer;
  position: relative;
}

.martyr-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.martyr-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background-color: rgba(235, 241, 245, 0.842);
}

.martyr-info {
  padding: 20px;
}

.martyr-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.martyr-info .rank {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.martyr-info p {
  margin-bottom: 10px;
}

.martyr-info .date {
  color: #666;
  font-size: 14px;
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  font-size: 14px;
}

/* Pagination Controls */
.pagination-controls {
  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
}

.pagination-controls button {
  padding: 8px 15px;
  margin: 0 5px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--hover-transition);
}

.pagination-controls button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination-controls button:hover:not(:disabled) {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-numbers {
  display: inline-block;
  margin: 0 10px;
}

.page-numbers button {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  min-width: 35px;
}

.page-numbers button.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.page-numbers button:hover:not(.active) {
  background-color: var(--light-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  left: 0;
}

.footer-column p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #bdbdbd;
  text-decoration: none;
  transition: var(--hover-transition);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--hover-transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

.social-links i {
  color: white;
  font-size: 18px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #bdbdbd;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--hover-transition);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: var(--hover-transition);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b71c1c;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
  font-size: 24px;
}