/**
 * CSS Variables
 * This file contains global CSS variables used throughout the site
 */

:root {
  /* Color Palette */
  --color-primary: #1a4b8c; /* Darker blue for headers */
  --color-primary-light: #4285F4;
  --color-primary-dark: #0d3a7a;
  
  --color-text-light: #FFFFFF;
  --color-text-dark: #333333;
  --color-text-muted: #666666;
  
  --color-background-light: #FFFFFF;
  --color-background-gray: #F5F5F5;
  
  /* Spacing */
  --spacing-xs: 3px;
  --spacing-sm: 5px;
  --spacing-md: 10px;
  --spacing-lg: 15px;
  --spacing-xl: 20px;
  --spacing-xxl: 30px;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  
  /* Box Shadow */
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Font Sizes */
  --font-size-xs: 0.65rem;
  --font-size-sm: 0.8rem;
  --font-size-md: 0.9rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.2rem;
  --font-size-xxl: 1.5rem;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* Header styles */
header {
  background-color: #0d3a7a; /* Dark blue - explicitly set */
  padding: calc(var(--spacing-xxl) * 1.2) 0;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-light);
}

.header-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.logo-container {
  flex: 0 0 180px;
  background-color: white;
  border-radius: var(--border-radius-sm);
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-right: var(--spacing-md);
}

.logo {
  max-width: 100%;
  height: auto;
}

.school-info {
  flex: 1;
}

.school-info h1 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  font-weight: normal;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.school-info h2 {
  font-size: calc(var(--font-size-xxl) * 1.5);
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: var(--spacing-sm) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.school-info h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.school-info h4 {
  font-size: var(--font-size-md);
  font-weight: normal;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--spacing-xs);
  letter-spacing: 0.3px;
}

/* Add a subtle separator between school name and department */
.school-info h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 0px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 5px auto 8px;
}

/* Home button styles */
.home-button-container {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.home-icon {
  width: 24px;
  height: 24px;
}

/* Header link styles */
header a {
  color: var(--color-text-light) !important; /* White color for header links */
text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .school-info h1 {
    font-size: var(--font-size-xs);
  }
  
  .school-info h2 {
    font-size: var(--font-size-xl);
    letter-spacing: 1.5px;
  }
  
  .school-info h3 {
    font-size: var(--font-size-lg);
    margin-top: var(--spacing-md);
  }
  
  .school-info h4 {
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
  }
  
  .school-info h1::after {
    width: 30px;
    margin: 4px auto 6px;
  }
  
  .logo-container {
    flex: 0 0 140px;
  }
  
  .container {
    padding: var(--spacing-md);
  }
  
  .home-button-container {
    margin: var(--spacing-md) auto 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }
}