.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 50px;
  margin-right: var(--space-md);
}
.logo h1,
.logo p {
  margin: 0;
  color: var(--text-primary);
  transition: color 0.3s;
}
.logo h1 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
}
.logo p {
  font-size: 0.8rem;
}
.main-nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li {
  margin-left: var(--space-md);
}
.main-nav a {
  position: relative;
  padding: var(--space-sm) 0;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-family-subheading);
  font-weight: 700;
  transition: var(--transition-fast);
}
.main-nav a i {
  margin-left: var(--space-sm);
  font-size: 0.8em;
}
.main-nav a:hover {
  color: var(--secondary-color);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after {
  transform: scaleX(1);
}
.dropdown {
  position: relative;
}
.dropdown > a {
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: var(--space-sm) 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  list-style: none;
  z-index: 100;
}
.dropdown.active > .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 10px var(--space-md);
  white-space: nowrap;
}
.dropdown-menu a::after {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-actions-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.theme-switcher {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}
.theme-switcher .fa-moon {
  display: none;
}
.dark-theme .theme-switcher .fa-sun {
  display: none;
}
.dark-theme .theme-switcher .fa-moon {
  display: block;
}
.hamburger {
  display: none;
}
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-family-heading);
  font-size: 4rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}
.hero .tagline {
  font-family: var(--font-family-special);
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: var(--space-lg);
}
.btn-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
}
.btn-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.btn-link:hover i {
  transform: translateX(5px);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-subtitle {
  margin: 0;
  font-family: var(--font-family-special);
  font-size: 1.5rem;
  color: var(--secondary-color);
}
.section-title {
  margin-top: var(--space-sm);
  font-family: var(--font-family-heading);
  font-size: 3rem;
  color: var(--text-primary);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.info-card {
  padding: var(--space-lg);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}
.info-card h3 {
  font-family: var(--font-family-subheading);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}
.core-values-section {
  background-color: rgba(0, 0, 0, 0.03);
}
.dark-theme .core-values-section {
  background-color: rgba(255, 255, 255, 0.03);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.value-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.value-image-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  background-color: #ffffff;
  box-sizing: border-box;
}
.value-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.value-content {
  flex-grow: 1;
  padding: var(--space-lg);
  text-align: center;
}
.value-content h4 {
  margin-top: 0;
  color: var(--text-primary);
  font-family: var(--font-family-subheading);
  font-weight: 700;
  font-size: 1.4rem;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}
.facility-card {
  transition: var(--transition-smooth);
}
.facility-card:hover {
  transform: translateY(-8px);
}
.facility-icon {
  display: inline-block;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease, color 0.3s ease;
}
.facility-card:hover .facility-icon {
  color: var(--secondary-color);
  transform: scale(1.2) rotate(5deg);
}
.facility-card h4 {
  color: var(--text-primary);
  font-family: var(--font-family-subheading);
  font-weight: 700;
  font-size: 1.4rem;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  perspective: 1500px;
}
.modal.show {
  display: block;
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, -50%) rotateY(-90deg);
  transform-origin: center;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.modal.modal-open .modal-content {
  opacity: 1;
  transform: translate(-50%, -50%) rotateY(0);
}
.modal.closing .modal-content {
  opacity: 0;
  transform: translate(-50%, -50%) rotateY(-90deg) !important;
  transition: transform 1s cubic-bezier(0.6, -0.28, 0.74, 0.05), opacity 1s ease-in;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
  margin: 0;
  font-family: var(--font-family-heading);
  color: var(--primary-color);
  font-size: 1.5rem;
}
.close-modal-btn {
  position: static;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
  color: var(--secondary-color);
  transform: scale(1.1);
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--space-lg);
  line-height: 1.8;
  overflow-y: auto;
}
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color);
}
.modal-body > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.modal.modal-open .modal-body > * {
  opacity: 1;
  transform: translateY(0);
}
.modal.modal-open .modal-body p:nth-of-type(1) {
  transition-delay: 0.3s;
}
.modal.modal-open .modal-body p:nth-of-type(2) {
  transition-delay: 0.4s;
}
.modal.modal-open .modal-body p:nth-of-type(3) {
  transition-delay: 0.5s;
}
.modal.modal-open .modal-body ul {
  transition-delay: 0.5s;
}
.modal.modal-open .modal-body .principal-text p:nth-of-type(4) {
  transition-delay: 0.6s;
}
.modal.modal-open .modal-body .principal-text p:nth-of-type(5) {
  transition-delay: 0.7s;
}
.principal-message-body {
  display: flow-root;
}
.principal-image {
  float: left;
  width: 150px;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}
.principal-image img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.principal-text b {
  font-family: var(--font-family-subheading);
  font-weight: 700;
}
.footer {
  padding-top: var(--space-xl);
  background-color: var(--text-dark);
  color: var(--text-light);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  text-align: center;
}
.footer h4 {
  margin-bottom: var(--space-md);
  color: var(--accent-color);
  font-family: var(--font-family-subheading);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer p,
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer a:hover {
  color: var(--accent-color);
}
.footer-social a {
  font-size: 1.5rem;
  margin-right: var(--space-md);
  color: #ccc;
}
.footer-bottom {
  padding: var(--space-md) 0;
  background-color: #000;
  text-align: center;
  font-size: 0.9rem;
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.info-card.animate-on-scroll:nth-child(2),
.value-card.animate-on-scroll:nth-child(2),
.facility-card.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}
.info-card.animate-on-scroll:nth-child(3),
.value-card.animate-on-scroll:nth-child(3),
.facility-card.animate-on-scroll:nth-child(3) {
  transition-delay: 0.4s;
}
.page-section {
  padding: var(--space-xl) 0;
}
.contact-hero .hero-content {
  max-width: 800px;
}
.contact-section {
  padding: var(--space-xl) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}
.contact-form-container {
  padding: var(--space-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.contact-form-container h3 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}
.contact-form .form-group {
  margin-bottom: var(--space-md);
}
.contact-form label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  transition: var(--transition-fast);
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .form-buttons {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}
.contact-form .form-buttons .btn {
    flex: 1;
}
#contact-message-container:not(:empty) {
    margin-bottom: var(--space-md);
}
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border: 3px dashed var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.file-drop-area:hover {
    border-color: var(--primary-color);
}
.file-drop-area.drag-over {
    border-color: var(--secondary-color);
    background-color: rgba(216, 27, 96, 0.05);
}
.dark-theme .file-drop-area.drag-over {
    background-color: rgba(216, 27, 96, 0.1);
}
.file-drop-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}
.file-drop-area p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 700;
}
.file-drop-area input[type="file"] {
    display: none;
}
#file-name-display {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}
.contact-map-container {
    padding: var(--space-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}
.contact-map-container h3 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}
.contact-map iframe {
  display: block;
}
.facilities-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-section-alt {
  background-color: rgba(0, 0, 0, 0.03);
}
.dark-theme .feature-section-alt {
  background-color: rgba(255, 255, 255, 0.03);
}
.feature-section {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.feature-section:last-child {
  margin-bottom: 0;
}
.feature-section.reverse {
  flex-direction: row-reverse;
}
.feature-content {
  flex: 1;
}
.feature-content .section-title {
  margin-top: 0;
  text-align: left;
}
.feature-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.feature-image:hover img {
    transform: scale(1.05);
}
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}
.lab-grid .value-card {
    text-align: center;
}
.lab-grid .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    transition: var(--transition-fast);
}
.lab-grid .value-card:hover .card-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}
.disclosure-container {
    max-width: 900px;
    margin: 0 auto;
}
.disclosure-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    background-color: var(--card-bg);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-family: var(--font-family-subheading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.dark-theme .accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.accordion-header i {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.1rem;
    color: var(--primary-color);
}
.accordion-header.active i {
    transform: rotate(135deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    padding: 0 var(--space-lg);
}
.accordion-content > *:last-child {
    padding-bottom: var(--space-lg);
}
.disclosure-subheading {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: var(--space-sm);
}
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-md);
}
.info-list li:last-child {
    border-bottom: none;
}
.info-list li span:first-child {
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}
.info-list li span:last-child {
    text-align: right;
    color: var(--text-secondary);
}
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.document-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
}
.document-list .btn-link {
    white-space: nowrap;
}
.table-responsive-wrapper {
    overflow-x: auto;
}
.responsive-table {
    width: 100%;
    border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
    padding: var(--space-md);
    text-align: left;
}
.responsive-table thead {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.responsive-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.responsive-table tbody tr:last-child {
    border-bottom: none;
}
.responsive-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}
.dark-theme .responsive-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}
.form-message {
    padding: var(--space-md);
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: opacity 0.5s ease-out;
}
.form-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}
.form-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.form-message.fade-out {
    opacity: 0;
}
#search-message-container:not(:empty) {
    margin-bottom: var(--space-lg);
    margin-top: var(--space-lg);
}
.tc-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}
.tc-form-container.compact {
    padding: var(--space-lg);
}
.tc-form-container.compact .form-group {
    margin-bottom: var(--space-md);
}
.tc-form-container h3 {
    text-align: center;
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--space-lg);
}
.tc-form .form-row {
    display: flex;
    gap: var(--space-md);
}
.tc-form .form-row .form-group {
    flex: 1;
}
.tc-form .form-group {
  margin-bottom: var(--space-md);
}
.tc-form .form-buttons {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}
.tc-form .form-buttons .btn {
    flex: 1;
}
.tc-form label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tc-form input,
.tc-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  box-sizing: border-box;
}
.tc-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}
.dark-theme .tc-form select {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8f9fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.tc-form input:focus,
.tc-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}
.tc-form .dob-inputs {
    display: flex;
    gap: var(--space-md);
}
.tc-form .dob-inputs select {
    flex: 1;
}
.results-wrapper {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.results-wrapper h3 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--space-lg);
}
.gallery-controls {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
}
.gallery-controls .search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.gallery-controls .search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition-fast);
}
.gallery-controls .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}
.gallery-controls .search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.gallery-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}
.gallery-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
}
.gallery-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card-thumbnail img {
    transform: scale(1.1);
}
.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: var(--transition-fast);
}
.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}
.gallery-card-content {
    padding: var(--space-md);
}
.gallery-card-content h4 {
    margin: 0 0 5px 0;
    font-family: var(--font-family-subheading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-card-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.gallery-card-content p i {
    margin-right: 5px;
    color: var(--secondary-color);
}
.gallery-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gallery-modal-content {
    display: flex;
    flex-direction: column;
    width: 95vw;
    height: 95vh;
    max-width: 1600px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}
.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}
#gallery-modal-title-container {
    font-family: var(--font-family-heading);
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}
.modal-title-line {
    margin: 0;
}
.modal-title-label {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--space-sm);
}
.gallery-modal-close {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.gallery-modal-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}
.gallery-modal-body {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    overflow: hidden;
}
#gallery-modal-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out, transform 0.1s linear;
    cursor: zoom-in;
}
.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-md) var(--space-sm);
    border-radius: 8px;
    z-index: 10;
    transition: background-color 0.2s;
}
.gallery-modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
#gallery-modal-prev {
    left: var(--space-md);
}
#gallery-modal-next {
    right: var(--space-md);
}
#gallery-modal-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}
.gallery-modal-footer {
    padding: 12px 24px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}
#gallery-modal-description-container {
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    max-height: 50px;
    overflow-y: auto;
}
#gallery-modal-description-container .modal-title-label {
    font-family: var(--font-family-subheading);
    font-weight: 700;
    color: var(--text-primary);
}
#gallery-modal-description-container #gallery-modal-description {
    color: var(--text-secondary);
}
.pagination-controls { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: var(--space-xl); 
    flex-wrap: wrap; 
    gap: var(--space-md);
    color: var(--text-secondary);
}
.pagination-controls .btn { 
    padding: 8px 15px; 
}
.page-buttons { 
    display: flex; 
    align-items: center; 
    gap: var(--space-sm); 
}
#page-numbers {
    font-weight: 700;
    color: var(--text-primary);
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-actions-wrapper {
        gap: var(--space-md);
    }
}
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map-container {
        min-height: 450px;
    }
}
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
  .collapsible-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
  }
  .collapsible-nav.active {
    display: block;
  }
  .collapsible-nav > ul, .secondary-nav {
    flex-direction: column;
    padding: var(--space-sm) 0;
  }
  .collapsible-nav li, .secondary-nav a {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .collapsible-nav a {
    display: block;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav a::after, .secondary-nav a::after {
    display: none;
  }
  .dropdown > a {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
  }
  .dark-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.1);
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  .hamburger {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }
  .hamburger.active span:nth-of-type(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-of-type(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero .tagline {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .section-subtitle {
    font-size: 1.3rem;
  }
  .feature-section,
  .feature-section.reverse {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .feature-content .section-title {
    text-align: center;
  }
  .info-list li, .document-list li {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
  }
  .info-list li span:last-child {
      text-align: left;
  }
  .responsive-table thead, .data-table thead {
      display: none;
  }
  .responsive-table tr, .data-table tr {
      display: block;
      margin-bottom: var(--space-md);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: var(--space-sm);
  }
  .responsive-table td, .data-table td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: right;
      padding: 10px;
      border-bottom: 1px dotted var(--border-color);
  }
  .responsive-table td:last-child, .data-table td:last-child {
      border-bottom: 0;
  }
  .responsive-table td::before, .data-table td::before {
      content: attr(data-label);
      font-weight: bold;
      text-align: left;
      color: var(--text-primary);
  }
  .data-table td:last-child {
      flex-direction: column;
      align-items: flex-end;
  }
  .data-table td .actions-cell {
      justify-content: flex-end;
      width: 100%;
  }
}
@media (max-width: 576px) {
  .principal-message-body {
    text-align: center;
  }
  .principal-image {
    float: none;
    width: 120px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: var(--space-lg);
  }
  .tc-form .form-row {
    flex-direction: column;
  }
  .tc-form .form-buttons {
      flex-direction: column;
  }
  .contact-form .form-buttons {
      flex-direction: column;
  }
  .tc-form .dob-inputs {
    gap: var(--space-sm);
  }
}
.gallery-controls {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}
.gallery-controls .search-box {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
    min-width: 250px;
}
.show-entries {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-family: var(--font-family-subheading);
}
.show-entries select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-family-body);
    font-size: 1rem;
}