/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
   <3 thanks, Eric :-)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
/* Box sizing rules */
*, *::before, *::after {
  box-sizing: border-box;
}
/* blockquote */
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}


/* ........My styles...... */

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f4f4f9;
  color: #222;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
  padding: 2.5em 1.5em;
  min-height: 100vh;
}

/* ====== Left Section (Module Info) ====== */
section {
  background-color: #1f1f1f;
  color: #fff;
  padding: 1.5em;
  width: 300px;
  min-height: 480px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  text-align: center;
  border-top: 6px solid #4a90e2; /* blue accent */
  border-left: 4px solid #f0b429; /* golden accent */
  position: sticky;
  top: 2em;
}

section h2 {
  font-size: 1.3em;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: 0.5px;
}

/* ====== Figure + Image ====== */
figure {
  margin: 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid #4a90e2;
  box-shadow: 0px 5px 20px rgba(74, 144, 226, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure img:hover {
  transform: scale(1.03);
  box-shadow: 0px 10px 25px rgba(74, 144, 226, 0.3);
}

/* ====== Image Caption ====== */
figcaption {
  font-size: 0.7em;
  color: #bbb;
  margin-top: 0.5em;
}

figcaption a {
  color: #f0b429;
  text-decoration: none;
}

figcaption a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ====== Paragraph ====== */
section p {
  font-size: 0.92em;
  color: #ddd;
  text-align: left;
  line-height: 1.6;
}

/* ====== Back Button ====== */
.back-btn {
  align-self: flex-start;
  background-color: #4a90e2;
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1.3em;
  border-radius: 30px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.back-btn:hover {
  background-color: #fff;
  color: #1f1f1f;
  border: 2px solid #1f1f1f;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* ====== Right Side (Main Content) ====== */
main {
  background: #fff;
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.1);
  padding: 2em;
  max-width: 880px;
  flex: 1;
  border-top: 6px solid #4a90e2;
}

main h2 {
  font-size: 1.6em;
  color: #111;
  margin-bottom: 1.3em;
  display: inline-block;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 4px;
  font-weight: 600;
  text-align: center;
}

/* ====== Coursework List ====== */
ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2em;
}

ul li {
  background: #f9f9f9;
  padding: 1.2em;
  border: 1px solid #ddd;
  border-left: 5px solid #4a90e2;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

ul li:hover {
  transform: translateY(-4px);
  background: #f0f6ff;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #f0b429;
}

ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.03em;
}

ul li a:hover {
  color: #4a90e2;
}

/* ====== Responsive ====== */
@media (max-width: 950px) {
  body {
    flex-direction: column;
    align-items: center;
    padding: 2em 1.2em;
    gap: 1.8em;
  }

  section {
    width: 100%;
    max-width: 520px;
    position: static;
    text-align: center;
  }

  main {
    width: 100%;
    max-width: 820px;
    padding: 1.8em;
  }

  section img {
    max-width: 100%;
  }
}
