/* =========================================
   BASE & TYPOGRAPHY
   ========================================= */
body {
  background-color: #f0f2f5;       
  color: #333333;                  
  font-family: Arial, sans-serif;  
}

h1, h2, h3 {
  color: #5375c5;                  
  margin-top: 30px;
  margin-bottom: 15px;
}

h1 { 
  color: #000000; 
  margin-top: 0; 
  text-align: center;
}

a {
  color: #5375c5;                  
  text-decoration: none;           
  font-weight: bold;
}

a:hover {
  text-decoration: underline;      
}

p {
  line-height: 1.6;
  margin-bottom: 15px;
}

ul {
  margin-top: 5px;
  padding-left: 20px;
  line-height: 1.6;
}

/* =========================================
   MAIN LAYOUT & NAVIGATION
   ========================================= */
.main-content {
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  margin: 20px auto 40px auto;
  background-color: #ffffff;
  padding: 15px 40px 40px 40px;
  border-radius: 8px;              
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); 
}

.logo-container {
  text-align: center;
  padding-top: 40px; 
}

.main-logo {
  max-width: 260px;
  height: auto;
  display: block;
  margin-bottom: 20px; 
}

.nav-bar {
  background-color: #5375c5;
  text-align: center;
  padding: 12px 0;
  border-radius: 4px;
  margin-bottom: 30px;
}

.nav-bar a {
  color: #ffffff;          
  margin: 0 20px;          
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-bar a:hover {
  color: #e2e8f0;          
  text-decoration: none;
}

/* =========================================
   IMAGES & GRIDS
   ========================================= */
.case-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 30px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.image-placeholder {
  width: 100%;
  height: 250px;
  background-color: #e5e7eb;
  border: 2px dashed #9ca3af;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  margin: 20px 0;
  font-style: italic;
}

/* 2-Column Uniform Image Grid */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.two-col-grid a {
  display: block;
  width: 100%;
}

.two-col-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;     
  object-fit: cover;       
  object-position: center; 
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* 3-Column Uniform Image Grid */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.three-col-grid a {
  display: block;
  width: 100%;
}

.three-col-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;     
  object-fit: cover;       
  object-position: center; 
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* =========================================
   PROJECT CARDS (projects.html)
   ========================================= */
.project-card {
  display: flex;                     
  border: 1px solid #e5e7eb;         
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;                  
  transition: box-shadow 0.2s;       
  align-items: center; 
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.project-thumb-container {
  width: 220px;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; 
  border-right: 1px solid #e5e7eb; 
}

.project-thumb {
  width: 100%;
  height: auto;
  max-height: 160px; 
  object-fit: cover; 
  display: block;
}

.project-details {
  padding: 20px;
  flex-grow: 1;
}

.project-details h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  color: #000000;
}

.project-details h2 a {
  color: #000000;
}

.project-details p {
  margin: 0 0 15px 0;
  color: #555555;
  line-height: 1.5;
}

.view-project {
  font-size: 14px;
  text-transform: uppercase;
}

/* =========================================
   VIDEO EMBEDS
   ========================================= */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px 0;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.copyright-content {
  font-size: 12px;       
  color: #777777;        
  text-align: center;
  padding-top: 40px;     
  border-top: 1px solid #eeeeee;
  margin-top: 30px;
  position: relative;
}

.ca-flag {
  position: absolute;    
  right: 0;              
  bottom: -5px;             
  width: 35px;           
  border: 1px solid #d1d5db; 
  border-radius: 2px;
}
