/* Modern Educational Website Theme - News Layout Style */
/* For College Student Project - Simeon Nedev */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: #1a2a3a;
  background: #f0f2f5;
  padding: 2rem 1rem;
}

/* News-style container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styling - News Style */
h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e3c72 0%, #2b4c7c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #c41e3a;
  margin-bottom: 2rem;
  font-style: normal;
  border-left: 4px solid #c41e3a;
  padding-left: 1rem;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* News Layout - Article Sections */
.article-section {
  margin-bottom: 3rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.article-section:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

/* Image on RIGHT (default) */
.article-content.image-right {
  flex-direction: row;
}

/* Image on LEFT - swaps order */
.article-content.image-left {
  flex-direction: row;
}

.article-content.image-left .article-image {
  order: 1;
}

.article-content.image-left .article-text {
  order: 2;
}

.article-text {
  flex: 2;
  min-width: 280px;
}

.article-image {
  flex: 1.2;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1.5rem;
}

/* LARGER IMAGES - main fix */
.article-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  min-height: 220px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.image-caption {
  font-size: 0.85rem;
  color: #5a6e7c;
  text-align: center;
  font-style: italic;
  margin-top: 0.75rem;
}

/* Headline styling within articles */
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c41e3a;
  display: inline-block;
}

/* Paragraph styling - news style */
p {
  font-size: 1.05rem;
  color: #2c3e4e;
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: left;
}

/* Citation styling */
.citation {
  background: #f8f9fc;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #c41e3a;
}

/* Navigation Bar - News Style */
.nav-bar {
  background: white;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  position: sticky;
  top: 1rem;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.nav-button {
  background: transparent;
  color: #1e3c72;
  border: 2px solid #1e3c72;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.nav-button:hover {
  background: #1e3c72;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.nav-button:active {
  transform: translateY(1px);
}

/* Back to Top Button - News Style */
.top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #c41e3a;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 100;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.top-button:hover {
  background: #1e3c72;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Full-width section for intro (no image side) */
.full-width-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* About Me Section with profile */
.profile-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-text {
  flex: 3;
}

.profile-image-box {
  flex: 1;
  text-align: center;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Profile image - larger */
.profile-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem auto;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 3px solid #1e3c72;
}

.profile-img:hover {
  transform: scale(1.03);
  border-color: #c41e3a;
}

/* Citations Section */
.citations-section {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #c41e3a;
}

.citations-section p {
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.citations-section h2 {
  border-bottom: none;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .article-content {
    flex-direction: column !important;
    padding: 1rem;
  }
  
  .article-content.image-left .article-image,
  .article-content.image-left .article-text,
  .article-content.image-right .article-image,
  .article-content.image-right .article-text {
    order: 0;
  }
  
  .article-image {
    order: -1 !important;
    margin-bottom: 1rem;
  }
  
  .nav-bar {
    position: relative;
    top: 0;
    border-radius: 12px;
  }
  
  .nav-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .top-button {
    bottom: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .profile-section {
    flex-direction: column;
  }
  
  .article-img {
    max-width: 100%;
    min-height: auto;
  }
}
/* Add this to your existing Styles.css file */

/* APA 7th Edition Citation Styling */
.citations-section {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #c41e3a;
}

.citations-section h2 {
  border-bottom: none;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: #1e3c72;
}

.apa-reference {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e4e8;
}

.apa-reference p {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #2c3e4e;
  text-align: left;
  box-shadow: none;
}

.apa-reference p:hover {
  transform: none;
  box-shadow: none;
}

.apa-reference em {
  font-style: italic;
  background: transparent;
  padding: 0;
}

/* Remove first-letter styling for citations */
.apa-reference p::first-letter {
  font-size: inherit;
  color: inherit;
  float: none;
  margin-right: 0;
}

/* Hanging indent for APA 7 format */
.apa-reference {
  margin-left: 2rem;
  text-indent: -2rem;
}

/* Responsive adjustment for citations */
@media (max-width: 768px) {
  .apa-reference {
    margin-left: 1.5rem;
    text-indent: -1.5rem;
  }
  
  .apa-reference p {
    font-size: 0.75rem;
  }
}

/* Print-friendly citations */
@media print {
  .citations-section {
    background: white;
    border-left: 2px solid #333;
  }
  
  .apa-reference {
    margin-left: 2rem;
    text-indent: -2rem;
  }
}

/* Print-friendly styling */
@media print {
  body {
    background: white;
    padding: 0.5in;
  }
  
  .article-section, .full-width-section, .profile-section, .citations-section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  .nav-bar, .top-button {
    display: none;
  }
}

/* Remove first-letter styling for news layout */
p::first-letter {
  font-size: 1rem;
  color: inherit;
  margin-right: 0;
}

/* First paragraph in full-width section gets special treatment */
.full-width-section p:first-of-type::first-letter {
  font-size: 2rem;
  font-weight: 700;
  color: #c41e3a;
  float: left;
  margin-right: 0.5rem;
  line-height: 1;
}