/* === BASE RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Serif JP', 'Georgia', 'Times New Roman', serif;
  background-color: #d3d3d3;
  color: #1a1f2b;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 100vh;
  flex-direction: column;
}

/* === CONTAINER === */
.container {
  max-width: 1140px;
  width: 100%;
  background: #f0f8ff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* === HEADER === */
header {
  background-color: white;
  color: #001f3f;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.logo-text h1 {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.4rem);
  color: #1a2a48;
  margin: 0;
  letter-spacing: 1px;
}

.logo-text .tagline {
  font-size: 0.9rem;
  color: #7c8a9a;
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* === LANGUAGE SELECTOR === */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-weight: bold;
}

#language-select {
  padding: 0.3rem;
  font-size: 1rem;
}

/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #001f3f;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-weight: bold;
  font-size: 1rem;
  color: #e4e7ef;
  white-space: nowrap;
}

.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* or reduce this if needed */
  flex-wrap: nowrap; /* prevent wrapping */
  overflow-x: auto; /* optional: allow scrolling if really needed */
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #d3d3d3;
  padding: 0.5rem 0.75rem; /* narrower */
  flex-shrink: 1; /* allow shrinking */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #0056a1;
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* === ATTORNEY INFO === */
.attorney-info {
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #1a1f2b;
  font-family: 'Georgia', serif;
}

.attorney-info a {
  color: #0056b3;
  text-decoration: none;
}

/* === MAIN CONTENT === */
main {
  padding: 4rem 2rem;
  text-align: center;
}

/* === CARD STYLING === */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  background-color: white;
}

.card-header {
  background-color: #001f3f;
  color: white;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.card-body {
  padding: 2rem;
}

.card img {
  max-width: 50%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* === REMOVE BULLETS === */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
}

/* === FOOTER === */
.social-links {
  margin-top: 1rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #0077b5;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.linkedin-btn img {
  width: 20px;
  height: 20px;
}

.linkedin-btn:hover {
  background-color: #005e93;
}
footer {
  background-color: #001f3f;
  color: #d3dce6;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: #d3dce6;
  margin: 0 0.5rem;
  text-decoration: none;
}

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

.designer-credit {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-family: 'Georgia', serif;
  color: #b5bcc8;
  letter-spacing: 0.4px;
  opacity: 0.4;
}

.designer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.designer-link:hover {
  opacity: 0.8;
  border-bottom: 1px solid #ffffff;
}
.ip-logos {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}

.ip-logos img {
  display: inline !important; /* forcibly override global img display:block */
  max-width: none !important; /* stop them trying to fill container */
  height: 100px !important;
  width: auto !important;
  margin: 0 !important; /* kill auto centering */
  flex: 0 0 auto !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

footer .ip-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

footer .ip-logos img {
  display: inline-block;
  margin: 0;
  max-width: none;
  height: 100px;
  width: auto;
  flex: 0 0 auto;
}




.ip-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* === RESPONSIVE ADJUSTMENTS === */

@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    gap: 1rem;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  main {
    flex: 1;
    width: 100%;
    padding: 2rem 1rem;
    box-sizing: border-box;
  }

  .logo-text h1 {
    font-size: 1rem;
    text-align: center;
  }
   .ip-logo {
    height: 70px; /* or whatever you want */
  }
  .clock-container,
  .logo-row,
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: #001f3f;
    border-radius: 8px;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    text-align: center;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .language-toggle {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  body {
    padding: 20px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .logo-text h1 {
    font-size: 0.9rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .lang-label {
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-header {
    font-size: 1.25rem;
  }

  .attorney-subheading,
  .textstyle,
  .nav-links a {
    font-size: 1rem;
  }

  .attorney-info {
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-links a {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .logo-text h1 {
    font-size: 0.85rem;
  }
}
@media (max-width: 400px) {
  footer .ip-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  footer .ip-logos img {
    height: 60px;
    width: auto;
  }
}

@media (max-width: 375px) {
  main {
    padding: 1.5rem 1rem;
  }

  .logo-text h1 {
    font-size: 0.8rem;
  }

  .tagline {
    font-size: 0.75rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .attorney-info {
    font-size: 0.9rem;
    padding: 1.2rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1.5rem;
  }
}

@media (max-width: 320px) {
  .logo-text h1 {
    font-size: 0.75rem;
  }

  .tagline {
    font-size: 0.7rem;
  }

  .attorney-info,
  .textstyle,
  .nav-links a {
    font-size: 0.85rem;
  }

  footer {
    font-size: 0.75rem;
  }
}

@media print {
  nav,
  footer,
  .hamburger,
  .language-toggle {
    display: none;
  }
}