:root {
  --yellow-dark: #ffcb00;
  --blue-dark: #1a2238;
  --white: #ffffff;
  --header: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:not(i) {
  font-family: CPN, sans-serif;
}

body {
  overflow-x: hidden;
  background-color: var(--white);
  color: var(--blue-dark);
}

.header {
  background-color: var(--header);
  color: var(--blue-dark);
  padding: 10px 0;
  box-shadow: 2px 2px 2px #00000025;
}

.header h1 i {
  padding-right: 5px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

[data-header] {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  padding: 1rem 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li > a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #111;
  text-decoration: none;
}

/* ========== SUBMENU ========== */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1000;
}

.submenu .submenu {
    background: #efefef;
}

.has-submenu.open > .submenu {
  display: block;
}

.nav-links .submenu li {
  white-space: nowrap;
}

.nav-links .submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-align: left;
  color: #111;
  text-decoration: none;
}

.nav-links .submenu li a:hover {
  background-color: #f0f0f0;
  color: #007BFF;
}

.submenu .submenu a {
    padding-left: 1.5em !important;
}

[data-first] {
  display: block;
}

[data-sec] {
  display: none;
}

@media (max-width: 500px) {
  .nav-links {
    gap: 16px;
  }

  header {
    font-size: 12px;
  }

  .executives h2 {
    font-size: 16px !important;
  }
}


.main-content {
  padding-top: 0 !important;
  padding: 2rem 0;
}

.hero {
  background-color: #f1f1f1;
  padding: 2rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

.hero button {
  padding: 0.6rem 1.2rem;
  background-color: var(--blue-dark);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero button:hover {
  background-color: #111c34;
}

.about-court,
.news {
  padding: 2rem 0;
}

.about-court h3,
.news h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.news-list {
  list-style: none;
  padding-left: 1rem;
}

.news-list li {
  margin-bottom: 0.5rem;
}

.news-list a {
  color: var(--blue-dark);
  text-decoration: none;
}

.news-list a:hover {
  color: #007BFF;
}

.news-date {
  color: #888;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.footer {
  background-color: var(--header);
  padding: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--blue-dark);
  border-top: 1px solid #ddd;
}

.footer .footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.footer-left p {
  margin: 0.2rem 0;
}

.footer-right a {
  margin-left: 1rem;
  color: var(--blue-dark);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--yellow-dark);
}

@media (max-width: 600px) {
  .footer .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .footer-right {
    margin-top: 0.5rem;
  }
}

.main-content h1 {
  font-size: 24px;
  margin-bottom: 1rem;
}

label, select {
  font-size: 16px;
  margin-bottom: 1rem;
}

select {
  padding: 8px;
  width: 100%;
  max-width: 300px; 
  float: right;
}

.judgment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.judgment-item a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.judgment-item a:hover {
  color: #005eff;
}

/* Responsive */
@media (max-width: 500px) {
  .main-content {
    padding: 1rem 0.5rem;
  }

  .judgment-item a {
    font-size: 14px;
  }
}

.container-a { width: 100%; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; } 
@media (min-width: 576px) { .container-a { max-width: 540px; } } 
@media (min-width: 768px) { .container-a { max-width: 720px; } } 
@media (min-width: 992px) { .container-a { max-width: 960px; } } 
@media (min-width: 1200px) { .container-a { max-width: 1140px; } } 
@media (min-width: 1400px) { .container-a { max-width: 1320px; } }

.judgment-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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