/* InCoPsy - Institute of Cognitive Psychology Styles */

:root {
  --primary-blue: #051d60;
  --secondary-blue: #1a4ba0;
  --light-blue: #4a90d9;
  --accent-blue: #7bb3f0;
  --pale-blue: #e8f1fc;
  --text-dark: #2c3e50;
  --text-light: #666;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-gray: #dee2e6;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

/* Header Styles */
.header {
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(5, 29, 96, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-blue);
  font-size: 24px;
}

.org-info h1 {
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 600;
}

.org-info .subtitle {
  font-size: 16px;
  opacity: 0.9;
  font-style: italic;
}

.contact-info {
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.contact-info div {
  margin-bottom: 5px;
}

/* Navigation */
.nav {
  background-color: var(--secondary-blue);
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--primary-blue);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 280px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  border-radius: 0 0 8px 8px;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--border-gray);
  font-size: 14px;
}

.dropdown-link:hover {
  background-color: var(--pale-blue);
  color: var(--primary-blue);
}

.dropdown-link:last-child {
  border-bottom: none;
}

/* Main Content */
.main-content {
  padding: 40px 0;
  min-height: 60vh;
}

.page-title {
  color: var(--primary-blue);
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.section {
  margin-bottom: 40px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
}

.section-content {
  padding: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 30px;
  margin-bottom: 30px;
}

.info-flow {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
}

.info-label {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-dark);
  font-size: 16px;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th {
  background: var(--primary-blue);
  color: var(--white);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-gray);
}

.data-table tr:nth-child(even) {
  background-color: var(--pale-blue);
}

.data-table tr:hover {
  background-color: var(--light-blue);
  color: var(--white);
}

/* Document Links */
.document-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.doc-link {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.doc-link:hover {
  border-color: var(--primary-blue);
  background: var(--pale-blue);
  transform: translateY(-2px);
}

.doc-icon {
  font-size: 24px;
  margin-right: 15px;
  color: var(--primary-blue);
}

.doc-info h4 {
  margin-bottom: 5px;
  color: var(--primary-blue);
}

.doc-info small {
  color: var(--text-light);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.card-header {
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* Staff Cards */
.staff-card {
  text-align: center;
  padding: 30px 20px;
}

.staff-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--light-blue);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  font-weight: bold;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.staff-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.staff-position {
  color: var(--text-light);
  margin-bottom: 15px;
  font-style: italic;
}

.staff-contact {
  font-size: 14px;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--accent-blue);
}

.footer-section p,
.footer-section li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--secondary-blue);
  opacity: 0.8;
  font-size: 14px;
}

/* Accessibility Version */
.accessibility-version {
  padding: 10px;
  text-align: center;
  font-weight: 600;
}

.accessibility-version a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
	flex-direction: column;
	text-align: center;
  }
  
  .contact-info {
	text-align: center;
  }
  
  .nav-menu {
	flex-direction: column;
  }
  
  .dropdown {
	position: static;
	box-shadow: none;
	background: var(--light-blue);
  }
  
  .dropdown-link {
	color: var(--white);
	border-color: var(--secondary-blue);
  }
  
  .info-grid {
	grid-template-columns: 1fr;
  }
  
  .page-title {
	font-size: 24px;
  }
}

/* Print Styles */
@media print {
  .nav, .footer {
	display: none;
  }
  
  .section {
	box-shadow: none;
	border: 1px solid var(--border-gray);
  }
  
  .page-title, .section-header {
	color: black !important;
  }
}

/* Focus States for Accessibility */
.nav-link:focus,
.dropdown-link:focus,
.doc-link:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-gray);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status Indicators */
.status-active {
  color: var(--success);
  font-weight: 600;
}

.status-pending {
  color: var(--warning);
  font-weight: 600;
}

.status-inactive {
  color: var(--danger);
  font-weight: 600;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--pale-blue) 0%, var(--white) 100%);
  border-left: 4px solid var(--primary-blue);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}
