/* ============================
   ROOT VARIABLES (THEME COLORS)
   ============================ */

:root {
  --primary-bg: #131313;
  --secondary-bg: #242424;
  --header-bg: linear-gradient(360deg, black, #39352588);
  --border-color: #f5e7b82a;
  --text-color: #f5e7b8;
  --text-color--light: #fffbe5;

  --accent-color: #d4af37;
  --logo: #d8bc5b;
  --gold: #ffd700;
  --dark-gray: #333;
  --medium-gray: #525252;
  --footer-bg: #171717;
  --darkbg: black;
}
/* ============================
     FONTS
     ============================ */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "OldEnglish";
  src: url("/assets/fonts/OldEnglish.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "RomandeADFNo2Std-DemiBold";
  src: url("/assets/fonts/RomandeADFNo2Std-DemiBold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
* {
  list-style: NONE;
  padding: 0;
}
/* ============================
     GLOBAL STYLES
     ============================ */

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--darkbg);
  color: var(--text-color);
}

/* ============================
     SCROLL BAR
     ============================ */

/* WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 10px;
  border: 2px solid var(--dark-gray);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--dark-gray);
}

/* Internet Explorer & Edge */
body {
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

::-ms-scrollbar {
  width: 8px;
}

::-ms-scrollbar-track {
  background: var(--dark-gray);
}

::-ms-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 10px;
  border: 2px solid var(--dark-gray);
}

/* ============================
       HEADER & NAVIGATION
       ============================ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--header-bg);
  box-shadow: 0px 10px 20px 0px #0000007d;
}

.header-img {
  width: 100%;
  display: flex;
  margin-top: 50px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--logo);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-color);
}

/* ============================
       HERO SECTION
       ============================ */

.hero-image {
  width: 50%;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto;
}

/* ============================
       CONTAINER & LAYOUT
       ============================ */

/* ===== MAIN PAGE ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
}

/* ===== ARTICLE PAGE ===== */

.article-container {
  margin: 0 auto;
  padding: 2rem 20rem;
  min-height: 100vh;
  position: relative;
  color: var(--text-color--light);
  font-size: 18px;
}

.article-container h1 {
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
  font-family: "RomandeADFNo2Std-DemiBold";
  font-size: 50px;
  font-weight: 100;
  margin-bottom: 80px;
}

.image-container {
  position: absolute;
  top: 0;
  left: 2%;
  width: 10%;
  height: 100%;
  z-index: -1;
  display: flex;
  flex-direction: column;
}

.column-top {
  width: 100%;
  height: auto; /* Let the image maintain its natural height */
}

.column-middle {
  flex: 1;
  width: 100%;
  background-image: url("/assets/images/column/middle.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.column-bottom {
  width: 100%;
  height: auto; /* Let the image maintain its natural height */
  margin-top: auto; /* Push to the bottom */
}

body > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul > li > a {
  color: lightblue;
  transition: 0.3s;
}

body > div > ul > li > a:hover {
  color: rgb(0, 169, 226);
}
body > div > ul > li > a:active {
  color: rgb(0, 129, 173);
}
/* ============================
       INTRO & TEXT STYLING
       ============================ */

.intro-text {
  text-align: center;
  margin: 2rem 0;
  line-height: 1.6;
}

/* ============================
       SECTION SEPARATOR
       ============================ */

.separator {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  font-size: 20px;
  text-transform: uppercase;
}

.separator:before,
.separator:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background-color: var(--medium-gray);
}

.separator:before {
  left: 0;
}

.separator:after {
  right: 0;
}

.separator-text {
  display: inline-block;
  padding: 0 15px;
  color: var(--accent-color);
}

/* ============================
       CARD GRID & CARDS
       ============================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 300px;
}

.card:hover {
  transform: translateY(-5px);
  filter: brightness(120%);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--text-color);
}

/* ============================
       LINK STYLING
       ============================ */

body > header > a,
body > div.container > div.card-grid > a {
  text-decoration: none;
}

/* ============================
       FOOTER SECTION
       ============================ */

.closing-text {
  text-align: center;
  margin: 2rem 0;
}

.footer {
  background-color: var(--footer-bg);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--dark-gray);
}
.footer p {
  opacity: 0.7;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer ul li {
  display: inline;
}

footer > p > a {
  text-decoration: none;
  font-weight: 600;
  color: var(--logo);
}
.footer ul li a {
  color: var(--logo);
  text-decoration: none;
  font-weight: 600;
}

footer > p > a:hover,
.footer ul li a:hover {
  text-decoration: underline;
}
