/* ===================================================
   ADHD & ADD Awareness Website - Samra Zaheer
   APPL27670 - Multimedia Presentations
   =================================================== */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #222222;
  background-color: #f4f7fb;
  line-height: 1.7;
}

/* --- Header --- */
#header {
  background: linear-gradient(135deg, #1a3a6b 0%, #2e6db4 100%);
  color: #ffffff;
  padding: 30px 20px 20px 20px;
  text-align: center;
  border-bottom: 5px solid #ffc107;
}

#header h1 {
  font-size: 2.4em;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #ffffff;
}

#header p.tagline {
  font-size: 1.05em;
  color: #cce0ff;
  font-style: italic;
}

/* --- Navigation --- */
#navbar {
  background-color: #1a3a6b;
  text-align: center;
  padding: 0;
  border-bottom: 3px solid #ffc107;
}

#navbar a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  font-size: 0.97em;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

#navbar a:hover, #navbar a.active {
  background-color: #ffc107;
  color: #1a3a6b;
}

/* --- Layout --- */
#wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

#content {
  background: #ffffff;
  border-radius: 6px;
  padding: 36px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* --- Headings --- */
h1 { font-size: 2em; color: #1a3a6b; margin-bottom: 16px; }
h2 { font-size: 1.5em; color: #2e6db4; margin: 28px 0 12px 0; border-left: 5px solid #ffc107; padding-left: 12px; }
h3 { font-size: 1.15em; color: #1a3a6b; margin: 20px 0 8px 0; }

/* --- Paragraphs --- */
p { margin-bottom: 16px; text-align: justify; }

/* --- Intro Box --- */
.intro-box {
  background: linear-gradient(135deg, #e8f0fb, #f0f6ff);
  border-left: 6px solid #2e6db4;
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 28px;
  font-size: 1.05em;
}

/* --- Highlight / Callout Box --- */
.highlight-box {
  background-color: #fff8e1;
  border: 2px solid #ffc107;
  border-radius: 6px;
  padding: 18px 24px;
  margin: 24px 0;
}

.highlight-box h3 { color: #b8860b; margin-top: 0; }

/* --- Info Cards Row --- */
.card-row {
  display: table;
  width: 100%;
  border-spacing: 16px;
  margin: 20px 0;
}

.card {
  display: table-cell;
  background: #f0f6ff;
  border-top: 4px solid #2e6db4;
  border-radius: 4px;
  padding: 20px;
  vertical-align: top;
  width: 33%;
}

.card h3 { color: #1a3a6b; margin-top: 0; font-size: 1em; }
.card p  { font-size: 0.92em; margin-bottom: 0; }

/* --- Lists --- */
ul { margin: 10px 0 16px 30px; }
ul li { margin-bottom: 8px; }
ol { margin: 10px 0 16px 30px; }
ol li { margin-bottom: 8px; }

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  border: 3px solid #2e6db4;
  border-radius: 4px;
  margin: 10px;
}

.img-center { display: block; margin: 20px auto; }
.img-left   { float: left;  margin: 0 20px 10px 0; }
.img-right  { float: right; margin: 0 0 10px 20px; }
.img-thumb  { width: 120px; height: 90px; object-fit: cover; opacity: 0.92; }
.clearfix::after { content: ""; display: table; clear: both; }

/* --- Table --- */
table.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95em;
}

table.content-table caption {
  caption-side: top;
  font-weight: bold;
  font-size: 1.05em;
  color: #1a3a6b;
  margin-bottom: 8px;
  text-align: left;
}

table.content-table th {
  background-color: #1a3a6b;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #ccc;
}

table.content-table td {
  padding: 10px 16px;
  border: 1px solid #ccc;
  vertical-align: top;
}

table.content-table tr:nth-child(even) td { background-color: #f0f6ff; }
table.content-table tr:hover td { background-color: #ddeeff; }

/* Merged header cell */
table.content-table td.merged { font-weight: bold; color: #2e6db4; }

/* --- Bookmark anchor offset --- */
.anchor { padding-top: 70px; margin-top: -70px; display: block; }

/* --- Indent text utility --- */
.indent { margin-left: 30px; }

/* --- Footer --- */
#footer {
  background-color: #1a3a6b;
  color: #cce0ff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.88em;
  border-top: 4px solid #ffc107;
}

#footer a { color: #ffc107; }
#footer p { margin-bottom: 4px; text-align: center; }

/* --- References page --- */
.ref-entry { margin-bottom: 18px; padding-left: 30px; text-indent: -30px; font-size: 0.95em; }

/* --- Divider --- */
hr.section-divider {
  border: none;
  border-top: 2px solid #2e6db4;
  margin: 30px 0;
  opacity: 0.3;
}
