/* Main Grid Layout */

.main-grid {           /*Desktop View */
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.panel-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #0c0c0c, #0e0f10);
  margin: 10px 0 15px;
}


/* =================== CENTER PANEL =================== */
.center-panel{
  background-color:#ACC8E5;
  padding: 30px;  /* ⬅️ increase padding */
  border-radius: 10px;
  border: 2px solid #000000;
  box-shadow: 0 2px 6px rgba(28, 24, 24, 0.1);
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px; /* increase spacing between cards */
  aspect-ratio: 1/1;
  text-align: center;
}

.card {
  background-color: #f9f9f9;
  min-height: 80px;
  padding: 20px;        /* ⬅️ more padding inside each card */
  font-size: 18px;      /* ⬅️ slightly bigger text */
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  word-wrap: break-word;
}

.card:hover {
  transform: scale(1.05);
}


/* =================== LEFT PANEL =================== */
.left-panel{
  padding: 20px;
  border-radius: 10px;
  background-color: #8faab3;
  border: 2px solid #212529;
  border-right: 2px solid #000;
}


/* =================== RIGHT PANEL =================== */
.right-panel {
  background-color: #8faab3;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #212529;
  box-shadow: 0 2px 6px gray(0,0,0,0.1);
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}


/* 5. Quick Links */
.quick-links {
  padding: 30px 20px;
  background: #fefefe;
}

.quick-links h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  padding: 25px;
  font-size: 18px;
  text-align: initial;
  border-radius: 8px;
  border: 2px solid #333;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  background-color:goldenrod;
}


.left-panel h1,
.right-panel h3,
.center-panel h2 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color:#1706d6;
  margin-bottom: 10px;
  margin-top: auto;
}


.left-panel h1{
  font-size: 18px;
  margin-bottom: 15px;
  color: #1706d6;
  text-align: center;
  font-weight: bold;
}

.right-panel h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #1706d6;
  font-weight: bold;
}

.left-panel ul{
   list-style: none;
   padding: 0;
}

.right-panel ul {
  list-style: none;
  list-style-type: disc; /* circle bullets */
  padding-left: 20px;
}

.left-panel li{
  margin-bottom: 10px;
  font-size: 15px;
}

.right-panel li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #333;
}

.right-panel .card{
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}

.center-panel .card {
  width: 100%;
  padding: 20px;
  margin: 10px 0;
  background: #1a1a1a; /* dark background */
  color: #000000;       /* light text */
  transition: transform 0.3s ease, background 0.5s ease, color 0.4s ease;
  cursor: pointer;
  font-weight: 800;
  text-align: #112A46;

}


/* Hover effect: dark gradient & text color inverse */
.center-panel .card:hover:nth-child(1) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2290ef55, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
}

.center-panel .card:hover:nth-child(2) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #38d3eb, #020c62); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(3) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a68fa, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(4) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a68fa, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(5) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2290ef55, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(6) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #38d3eb, #020c62); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(7) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #38d3eb, #020c62); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(8) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a68fa, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.center-panel .card:hover:nth-child(9) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2290ef55, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
  .center-panel .card {
    font-size: 16px;
    padding: 15px;
  }
}

/* ✅ Mobile: Stack panels vertically */
@media screen and (max-width: 768px) {
  .main-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .left-panel,
  .center-panel,
  .right-panel {
    margin-bottom: 20px;
  }
}

.right-panel .card:hover:nth-child(1) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ab7ef5, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.right-panel .card:hover:nth-child(2) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #c2f3cc, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.right-panel .card:hover:nth-child(3) {
  transform: scale(1.05);
  background: linear-gradient(135deg, #efc9d8, #000428); /* dark blue gradient */
  color: #ffea00; /* opposite highlight color */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.updates-list {
  list-style: disc;
  padding-left: 20px;
}

.updates-list li {
  margin-bottom: 10px;
}

.updates-list a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  background-color: transparent;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.updates-list a .panel-divider {
  border: none;
  height: 3px;
  background: linear-gradient(to right, #0c0c0c, #0e0f10);
  margin: 15px 15px 15px;
}

.updates-list a:hover {
  color:var(--accent);
  text-decoration: underline;
}


/* =================== OFFICER LIST DISPLAY =================== */
.officer-name {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  transition: background 0.3s ease;
  background: #f0f0f0;
  border: 2px solid black;       /* 🔲 black border */
  border-radius: 8px;             /* optional rounded corners */
  background-color: #E6E6FA;   /* keeps content white inside */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* optional shadow */
  text-align: #112A46;
}

.officer-name:hover {
  background: linear-gradient(to right, #715df2, #ffffff25);
  transform: scale(1.05);
}

.officer-name img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border-color: #1a1a1a;
}

.officer-name h4 {
  font-size: 15px;
  margin: 0;
  color: #000000;
  font-weight: bold;
}

.clickable-officer {
  color: #0b5394;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

.clickable-officer:hover {
  color: #0c3c69;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}


@media (max-width: 600px) {
  .officer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .officer-label, .officer-name {
    margin: 3px 0;
  }
}


.card:nth-child(1) {
  background-color: #D3D3FF; /* Light Yellow */

}

.card:nth-child(2) {
  background-color: #f6dcf7; /* Light Blue */
}

.card:nth-child(3) {
  background-color: rgb(221, 240, 243); /* Light Green */
}

.card:nth-child(4) {
  background-color: rgb(221, 240, 243); /* Light Red */
}

.card:nth-child(5) {
  background-color: rgb(247, 232, 244); /* Light Purple */
}

.card:nth-child(6) {
  background-color: #f6dcf7; /* Light Pink */
}

.card:nth-child(7) {
  background-color:#f6dcf7; 
}

.card:nth-child(8) {
  background-color:rgb(221, 240, 243); /* Light Pink */
}

.card:nth-child(9) {
  background-color:rgb(247, 232, 244); /* Light grey */
}