/* ===============================
   GLOBAL THEME VARIABLES
   =============================== */

:root {
    --primary: #1b4e9b; /* UGent blue */
    --secondary: #7f1d1d; /* UAntwerpen red */
    --accent: #ffcc00; /* Flemish government yellow */
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --bg-gray: #ececec;
    --border-color: #ddd;
    --radius: 6px;
}


/* ===============================
   GLOBAL RESET + TYPOGRAPHY
   =============================== */

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    background-color: white;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #0d2e5e;
}


/* ===============================
   NAVBAR STYLING
   =============================== */

.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: white !important;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    color: var(--text-dark) !important;
}

/* Underline on hover */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active tab */
.nav-link.active {
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}


/* ===============================
   FOOTER STYLING
   =============================== */

footer.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

footer img {
    height: 40px;
    object-fit: contain;
}

footer a.logo-link:hover img {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}


/* ===============================
   BUTTONS
   =============================== */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #103871;
    border-color: #103871;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #5c1515;
    border-color: #5c1515;
}


/* ===============================
   TABLES (LEADERBOARDS)
   =============================== */

.table {
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead {
    background-color: var(--primary);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.table-hover tbody tr:hover {
    background-color: #e7f0ff;
}


/* ===============================
   FORMS
   =============================== */

.form-control {
    border-radius: var(--radius);
    border: 1px solid #ccc;
    padding: 10px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1rem rgba(27, 78, 155, 0.25);
}

form.card {
    border-radius: var(--radius);
}


/* ===============================
   LOGOS (UNIVERSITY / GOVERNMENT)
   =============================== */

.partner-logo {
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}


/* ===============================
   UTILITY CLASSES
   =============================== */

.bg-gray {
    background-color: var(--bg-gray);
}

.rounded {
    border-radius: var(--radius) !important;
}

.shadow-soft {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.max-600 {
    max-width: 600px;
}

.centered {
    margin-left: auto;
    margin-right: auto;
}


/* ===============================
   RESPONSIVE TWEAKS
   =============================== */

@media (max-width: 768px) {
    footer img {
        height: 32px;
    }

    .nav-link {
        padding: 0.5rem 0.5rem !important;
    }
}

/* Layout helpers */
:root{
  --bg: #0f2942;            /* deep blue */
  --text: #ffffff;
  --muted: #4a5872;
  --brand: #2aa8ff;         /* speech bubble blue */
  --accent: #f4c21f;        /* heritage yellow */
  --radius: 16px;
  --container: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
}

body { background: var(--bg); color: var(--text); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* Hero */
.hero {
  padding-block: clamp(48px, 8vw, 120px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0;
}

.hero__subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  margin: 0;
}

.hero__cta { display: flex; gap: var(--space-2); }

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.btn--primary { background: var(--brand); color: #001522; }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid #4b5b70; }

.hero__media {
  position: relative;
  /* visually group image with content */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* focus-left composition: keeps the title area clear on small screens */
  object-position: left center;
}

/* Responsive: single column on small screens */
@media (max-width: 900px){
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; } /* image above text on mobile */
}
