/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #d4d4d4 0%, #a8a8a8 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  flex-wrap: wrap;
}

.logo h1 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 2px;
}

.logo-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: normal;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  margin: -5px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 5px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #e0e0e0 0%, #d4d4d4 50%, #a8a8a8 100%);
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
}

.hero-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: -20px;
}

.hero-content > * {
  margin: 20px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  margin: -7px;
}

.hero-buttons > * {
  margin: 7px;
}

.hero-logos {
  display: flex;
  flex-direction: column;
  min-width: 250px;
  margin: -7px;
}

.hero-logos > * {
  margin: 7px 0;
}

.logo-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo-card:hover {
  transform: translateX(-5px);
}

.logo-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-icon {
  font-size: 18px;
  margin-right: 8px;
}

.btn-arrow {
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
}

.btn-primary {
  background-color: #8c8c8c;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #6a6a6a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: #fff;
  color: #8c8c8c;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background-color: transparent;
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Main Cards Section */
.main-cards {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.cards-grid > * {
  margin: 15px;
  flex: 1 1 300px;
  min-width: 300px;
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  padding: 15px 20px;
}

.card-title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.card-body {
  padding: 20px;
}

.card-text {
  font-size: 16px;
  color: #8c8c8c;
  margin-bottom: 15px;
  font-weight: 500;
}

.card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.card-footer {
  padding: 0 20px 20px;
}

.card-btn {
  display: block;
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background: linear-gradient(135deg, #212121 0%, #000 100%);
  transform: scale(1.02);
}

/* Directory Section */
.directory {
  padding: 60px 0;
  background-color: #fff;
}

.directory-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.directory-title {
  font-size: 28px;
  color: #8c8c8c;
  margin-bottom: 15px;
  text-align: center;
}

.directory-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #8c8c8c;
}

/* Quick Access Section */
.quick-access {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.section-title {
  font-size: 32px;
  color: #8c8c8c;
  text-align: center;
  margin-bottom: 40px;
}

.quick-access-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.quick-access-grid > * {
  margin: 15px;
  flex: 1 1 300px;
  min-width: 300px;
}

.quick-access-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-access-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.quick-access-icon {
  font-size: 24px;
  margin-right: 10px;
}

.quick-access-title {
  font-size: 20px;
  color: #8c8c8c;
  font-weight: bold;
}

.quick-access-list {
  list-style: none;
}

.quick-access-list li {
  margin-bottom: 10px;
}

.quick-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.quick-link:hover {
  color: #8c8c8c;
  padding-left: 10px;
}

/* Support Section */
.support {
  padding: 60px 0;
  background: linear-gradient(135deg, #d4d4d4 0%, #a8a8a8 100%);
}

.support-card {
  text-align: center;
  color: #fff;
}

.support-title {
  font-size: 28px;
  margin-bottom: 15px;
}

.support-text {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.95);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
  padding: 30px 0;
  text-align: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: -5px;
}

.breadcrumb-content > * {
  margin: 0 5px;
}

.breadcrumb-link {
  color: #8c8c8c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #6a6a6a;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
}

.breadcrumb-current {
  color: #666;
  font-weight: 500;
}

/* Entities Section */
.entities-section {
  padding: 60px 0;
  background-color: #f5f5f5;
  min-height: 60vh;
}

.entities-header {
  text-align: center;
  margin-bottom: 40px;
}

.entities-title {
  font-size: 36px;
  color: #8c8c8c;
  margin-bottom: 15px;
}

.entities-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.entities-filter {
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  margin-left: -7px;
  margin-right: -7px;
}

.entities-filter > * {
  margin: 7px;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #8c8c8c;
}

.entities-filter .form-select {
  min-width: 250px;
}

.entities-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-left: -12px;
  margin-right: -12px;
}

.entities-grid > * {
  margin: 12px;
}

.entity-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 100%;
}

.entity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.entity-card-header {
  background: linear-gradient(135deg, #d4d4d4 0%, #a8a8a8 100%);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.entity-card-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  flex: 1;
  margin-right: 10px;
}

.entity-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.entity-card-body {
  padding: 20px;
}

.entity-department {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
}

.entity-icon {
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.entity-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.entity-card-footer {
  padding: 0 20px 20px;
}

.entity-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.entity-link:hover {
  background: linear-gradient(135deg, #212121 0%, #000 100%);
  transform: scale(1.02);
}

.entities-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
  background-color: #f5f5f5;
  min-height: 70vh;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  margin-left: -20px;
  margin-right: -20px;
}

.contact-content > * {
  margin: 20px;
}

.contact-info {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  padding: 40px;
  border-radius: 12px;
  color: #fff;
  flex: 1 1 300px;
  min-width: 300px;
}

.contact-form-container {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  flex: 1.5 1 400px;
  min-width: 300px;
}

.contact-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-description {
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.contact-details {
  display: flex;
  flex-direction: column;
  margin: -12px 0;
}

.contact-details > * {
  margin: 12px 0;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-right: 15px;
}

.contact-detail-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-detail-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form {
  display: flex;
  flex-direction: column;
  margin: -10px 0;
}

.contact-form > * {
  margin: 10px 0;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.form-row > * {
  margin: 10px;
  flex: 1 1 200px;
  min-width: 200px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #8c8c8c;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-logos {
    width: 100%;
    min-width: auto;
  }

  .cards-grid > * {
    min-width: 100%;
  }

  .directory-card {
    padding: 25px;
  }

  .quick-access-grid > * {
    min-width: 100%;
  }

  .entities-filter {
    flex-direction: column;
  }

  .search-input,
  .entities-filter .form-select {
    width: 100%;
    min-width: auto;
  }

  .entities-grid > * {
    min-width: 100%;
  }

  .contact-info,
  .contact-form-container {
    min-width: 100%;
  }

  .form-row > * {
    min-width: 100%;
  }

  .breadcrumb-content {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .main-cards,
body.dark-mode .quick-access,
body.dark-mode .entities-section,
body.dark-mode .contact-section {
  background-color: #1a1a1a;
}

body.dark-mode .directory {
  background-color: #2a2a2a;
}

body.dark-mode .card {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
}

body.dark-mode .directory-card,
body.dark-mode .quick-access-card {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .directory-title,
body.dark-mode .section-title,
body.dark-mode .entities-title,
body.dark-mode .quick-access-title {
  color: #d4d4d4;
}

body.dark-mode .directory-description,
body.dark-mode .entities-description,
body.dark-mode .entities-empty {
  color: #b0b0b0;
}

body.dark-mode .form-label {
  color: #e0e0e0;
}

body.dark-mode .form-select {
  background-color: #333;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .quick-link {
  color: #e0e0e0;
}

body.dark-mode .quick-link:hover {
  color: #d4d4d4;
}

body.dark-mode .breadcrumb {
  background-color: #2a2a2a;
  border-bottom-color: #444;
}

body.dark-mode .breadcrumb-link {
  color: #d4d4d4;
}

body.dark-mode .breadcrumb-current {
  color: #e0e0e0;
}

body.dark-mode .entity-card,
body.dark-mode .contact-form-container {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .entity-department {
  color: #b0b0b0;
}

body.dark-mode .search-input,
body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background-color: #333;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .card-text {
  color: #d4d4d4;
}

body.dark-mode .contact-title {
  color: #fff;
}

body.dark-mode .contact-description {
  color: rgba(255, 255, 255, 0.95);
}

.theme-icon {
  font-size: 20px;
  display: inline-block;
  line-height: 1;
  font-weight: bold;
}
