/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --red: #b30000;
  --black: #1a1a1a;
  --white: #ffffff;
  --nav-height: 70px;
}


/* ===== BASE ===== */
html, body { height: 100%; }
body {
  background-color: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--red);
  padding: 8px 18px;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
  border-radius: 9999px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.logo:hover,
.logo.active {
  background-color: var(--white);
  color: var(--red);
}

.menu-toggle {
  font-size: 1.8rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

/* ===== NAV LINKS ===== */
.nav-links {
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  background-color: var(--red);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.6s cubic-bezier(0.25,0.8,0.25,1),
              opacity 0.5s cubic-bezier(0.25,0.8,0.25,1),
              transform 0.5s cubic-bezier(0.25,0.8,0.25,1);
  z-index: 9999;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.nav-links.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.nav-links li {
  text-align: center;
  margin: 6px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-links.open li {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  font-size: 1.1rem;
  display: inline-block;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--white);
  color: var(--red);
}

/* ===== HOME PAGE ===== */
/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }

.socials a { color: var(--red); font-size: 1.5rem; margin: 0 10px; transition: color 0.3s ease; }

.socials a:hover { color: var(--black); }

/* ----- Hero Image ----- */
.hero-photo { width: 100vw; position: relative; left: 50%; margin-left: -50vw; overflow: hidden; }

.hero-photo img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 500px; }

.hero-photo-caption {
  text-align: center;
  color: black;
  font-size: 1.2rem;
  margin: 0 0 20px;
  padding-left: 10%;
  padding-right: 10%;
}


.intro {
  display: flex;
  flex-direction: column;
  padding: 20px 0px;
  background-color: var(--white);
}

.intro-para p { line-height: 1.6; text-align: center; font-size: 1.5rem; font-style: italic; max-width: 1100px; margin: 0 auto; padding-left: 5%; padding-right: 5%;}

 





.photo-section {
  width: 100%;
  margin: 120px auto;
}

.photo-gallery {
  display: flex;
  gap: 70px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.photo-gallery::-webkit-scrollbar {
  display: none;
}

.photo-gallery img {
  flex: 0 0 calc((100% - 210px) / 4);
  width: calc((100% - 210px) / 4);
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

/* Tablets: two photos across */
@media (max-width: 900px) {
  .photo-gallery {
    gap: 70px;
  }

  .photo-gallery img {
    flex-basis: calc((100% - 140px) / 3);
    width: calc((100% - 140px) / 3);
  }
}

/* Phones: one photo plus a preview */
@media (max-width: 600px) {
  .photo-gallery {
    gap: 5%;

  }

  .photo-gallery img {
    flex-basis: 80%;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }


  .hero-photo-caption {
  padding-left: 5%;
  padding-right: 5%;
  }
}







/* Professional Journey */
.journey-section {
  margin: 100px 0;
}

.journey-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  margin: 45px 125px 0;
}

/* Horizontal connecting line */
.journey-timeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(16.6667% - 150px);
  right: calc(16.6667% - 150px);
  height: 3px;
  background: #d5d5d5;
}

.journey-item {
  position: relative;
  padding-top: 30px;
  text-align: center;
}

/* Timeline markers */
.journey-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bs-body-bg);
  border: 3px solid #b3262d;
  z-index: 1;
}

.journey-content {
  padding: 0 10px;
}

.journey-category {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #777;
  margin-bottom: 10px;
}

.journey-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.journey-content p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
  .journey-timeline {
    grid-template-columns: 1fr;
    gap: 55px;
    margin: 45px 8% 0;
    padding-left: 25px;
  }

  .journey-timeline::before {
    top: -15px;
    bottom: -11px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .journey-item {
    padding-top: 0;
    text-align: left;
  }

  .journey-marker {
    left: -25px;
    top: 15px;
    transform: none;
  }

  .journey-content {
    padding: 0;
  }

  .journey-content h3 {
    font-size: 1.2rem;
  }

  .journey-category {
  font-size: 0.95rem;
}
}






/* ----- Articles Section ----- */
.articles {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 30px 5%;
}

.articles-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(1);
}

.articles-overlay {
  position: relative;
  z-index: 1;
  color: white;
}

/* ----- Cards ----- */
.card-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
}

.card {
  width: 240px;
  height: 230px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
}

.card:hover {
  transform: scale(1.03);
}

.card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0px 0px;
  font-size: 1rem;
  color: var(--white); 
  height: 3.5em; /* two lines */
  line-height: 1.5em;
  overflow: hidden;


  background: #CC0000cc; /* transparent overlay */
  backdrop-filter: blur(4px);     /* optional, modern */
  z-index: 2;
}


.articles-title h2 {
  text-align: center;
  color: black;
  font-size: 2.2rem;
  margin: 0 0 35px;
  padding-left: 10%;
  padding-right: 10%;
}


/* ----- Quotes Section ----- */
.quotes-section {
  background: var(--white);           
  padding: 100px 5% 0px;
}

.quotes-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quotes-heading {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 24px;
}

.quote-card {
  position: relative;
  margin: 0 auto 28px;
  padding: 4px 22px 14px 26px;
  max-width: 900px;
  background: #f3f1f1;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-left: 4px solid var(--red);
  border-right: 4px solid var(--red);
  font-style: italic;
  color: #333;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* subtle red quote mark */
.quote-card::before {
  content: "“";
  position: absolute;
  left: 10px;
  top: 4px;
  font-size: 2rem;
  color: rgba(179,0,0,0.25);
  pointer-events: none;
}






/* Final Four Feature */
.final-four-section {
  margin: 80px 0 0px;
}


.final-four-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.final-four-image picture,
.final-four-image img {
  display: block;
  width: 100%;
}

.final-four-image img {
  height: auto;
}

/* Left-side gradient */
.final-four-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
}

/* Headline overlay */
.final-four-overlay {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: 4%;
  color: white;
  width: fit-content;
}

/* Headline typography */
.final-four-overlay h2 {
  display: flex;
  flex-direction: column;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 1px;
  margin: 0;
}

.final-four-overlay h2,
.final-four-overlay h2 span {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
}

.final-four-white {
  color: white;
}

.final-four-red {
  color: var(--white);
}


/* Red divider */
.final-four-line {
  width: 100%;
  height: 3px;
  background: var(--red);
  margin: 10px 0 10px;
}

/* Championship details */
.final-four-details {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.final-four-details span {
  white-space: nowrap;
}

/* Final Four Statistics */
.final-four-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 15px;
  margin: 0;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-right: 1px solid var(--white);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--black);
}

.stat-label {
  margin-top: 8px;
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
}


/* Mobile */
@media (max-width: 768px) {
  .final-four-overlay h2 {
    font-size: clamp(1.9rem, 7vw, 3rem);
  }

  .final-four-line {
    width: 100%;
    height: 2px;
    margin: 6px 0 6px;
    color: var(--white);
  }

  .final-four-details {
    gap: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.8px;
  }

  .detail-divider {
    height: 11px;
    color: var(--white);
  }

  .final-four-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px 8px;
  }

  .stat-item {
    padding: 5px 8px;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--white);
  }

  .stat-number {
    font-size: 2.7rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.8px;
  }
}







/* ----- Footer ----- */
footer {
  background-color: var(--red);
  color: var(--white);
  text-align: center;
  padding: 15px 10px;
  font-size: 0.85rem;
}

footer a.footer-email {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a.footer-email:hover {
  color: #747474; /* matches your theme red */
}


/* ----- Mobile ----- */
@media (max-width: 939px) {
  .articles-overlay {
    grid-template-columns: 1fr; /* single column */
    justify-items: center;       /* center each card horizontally */
    gap: 40px;                   /* spacing between cards */
  }

  .article-column {
    width: 250px;   /* fixed width */
    height: 235px;  /* fixed height */
  }

  .article-img {
    width: 100%;
    height: 73%;   /* make image fill the column */
    object-fit: cover;
  }

  .articles-image {
  object-position: left;
  object-fit: contain;
  width: 800%;
}

}


/* ----- Desktop ----- */
@media (min-width: 940px) {
  .menu-toggle { display: none; }

  .navbar { height: 70px; }

  .nav-links {
    flex-direction: row;
    position: static;
    max-height: none;
    opacity: 1;
    display: flex;
    gap: 20px;
    background: none;
    width: auto;
  }

  .nav-links li { opacity: 1 !important; 
    transform: translateY(0) !important; 
    transition: none !important; 
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    position: relative;
    height: 90%;
    line-height: 1;
    top: 10px;
  }

  .logo { font-size: 1.6rem; }

  .about-section { flex-direction: row; padding: 50px 50px; }

  .articles-overlay { 
    grid-template-columns: repeat(3, 1fr); gap: 30px; 
    gap: 60px;
    padding-bottom: 20px;
  }
}


/* ===== PROFESSIONAL PROJECTS PAGE ===== */
.subpage-banner {
  text-align: center;
  background: #ffffff;
  padding: 60px 20px 10px;
}

.subpage-banner h1 {
  font-size: 2rem;
  color: #b30000;
  margin-bottom: 10px;
}

.subpage-banner p {
  color: #000000;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Article Feed Layout --- */
.article-feed {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.article-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding-bottom: 32px;
}

.article-thumb {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}



.article-title {
  font-size: 1.4rem;
  margin: 0 0 6px 0;
}

.article-title a {
  text-decoration: none;
  color: var(--black); /* Accent color */
}

.article-title a:hover {
  text-decoration: underline;
}

.article-tags {
  margin-bottom: 10px;
}

/*----- Article Tag Filter ----- */
.tag-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 14px;
  line-height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.tag:hover {
  background: #ddd;
}

.tag.active {
  background-color: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.article-description {
  margin: 10px 0;
  color: var(--black);
  line-height: 1.5;
}

.article-meta {
  font-size: 0.85rem;
  color: #777;
}












/* --- Mobile Adjustments --- */
@media (max-width: 939px) {
  .article-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Keep image same size as desktop */
  .article-thumb {
    width: 170px;
    height: 170px;
    object-fit: cover;
  }

  .article-content {
    text-align: center;
  }
}






/* ===== PROFILE PAGE ===== */
.profile-layout {
  display: flex;
  flex-direction: row;
  max-width: 1250px;
  margin: 60px auto;
  padding: 0 20px;
  gap: 40px;
  box-sizing: border-box; /* important so padding is included in widths */
  align-items: flex-start;
}

/* --- Sidebar --- */
.profile-sidebar {
  flex: 0 0 33%;
  min-width: 240px;      /* prevents the sidebar from shrinking too small */
  max-width: 420px;      /* prevents it from becoming too large at odd widths */
  background-color: #dbdbdb;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  border-radius: 20px;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  height: auto;          /* allow natural height (keeps aspect ratio) */
  aspect-ratio: 3 / 4.5;   /* portrait orientation locked (adjust if you like) */
  border-radius: 20px;
  object-fit: cover;
  box-sizing: border-box;
}

.profile-bio {
  text-align: center;
  line-height: 1.6;
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.profile-socials a {
  color: var(--red);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.profile-socials a:hover {
  color: var(--black);
}


/* --- Timeline --- */
.profile-timeline {
  flex: 1;               /* uses remaining space (safer than a % basis) */
  min-width: 360px;      /* at narrow widths this forces wrap/stack earlier */
  position: relative;
  padding: 0 10px;       /* internal padding — accounted by box-sizing */
  box-sizing: border-box;
  overflow: visible;     /* keep children visible but we control widths */
}

/* ----- Timeline Item Structure ----- */
.timeline-item {
  background: none;
  border-radius: 0px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: none;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  margin-right: 15px;
  min-width: 60px;
}

.timeline-info {
  flex: 1;
}

.timeline-role {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--red);
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 0;
  font-weight: 500;
}

.timeline-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* ----- Body ----- */
.timeline-intro,
.timeline-outro {
  margin: 12px 0;
  line-height: 1.6;
}

/* ----- Media ----- */

.article-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 1rem;
  color: #000;
  background: #e1e1e1;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}

.article-badge:hover {
  background: var(--red);
  color: var(--white);
}

.timeline-media {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 15px 0;
}

.timeline-photo,
.timeline-photo-link img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-photo-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-photo-link {
  position: relative;
  display: inline-block;
}

.timeline-photo-link::after {
  content: "\f35d"; /* Font Awesome external-link-alt icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 6px;
  border-radius: 4px;
  opacity: 0.8;
}


/* --- Profile Cards and Divider --- */
.timeline-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.timeline-card {
  flex: 0 0 auto;
  width: 200px;
  height: 190px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 7px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
}

.timeline-card img {
  width: 90%;
  height: 68%;
  object-fit: contain;
  transform: scale(0.9);
}

.timeline-card p {
  padding: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--black);
}

.timeline-separator {
  position: relative;
  text-align: center;
  margin: 40px 0;
  padding: 20px 0;
}

.timeline-separator::before,
.timeline-separator::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #111;
}

.timeline-separator::before {
  top: 0; /* top line */
}

.timeline-separator::after {
  bottom: 0; /* bottom line */
}

.timeline-separator p {
  margin: 0;
  color: #111;
  font-size: 1.1rem;
  line-height: 1.6;
  background: transparent;
}



/* --- Mobile Adjustments --- */
@media (max-width: 939px) {
  .profile-layout { flex-direction: column; align-items: center; }
  .profile-sidebar { width: 100%; max-width: none; padding: 20px; }
  .profile-timeline { padding-left: 0; padding-right: 0; min-width: 0; margin-top: 30px; }

  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    padding-left: 0%;
    padding-right: 0%;
  }
}


