/* Fonts */
.dm-serif-text-regular {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: normal;
}

.dm-serif-text-regular-italic {
  font-family: "DM Serif Text", serif;
  font-weight: 400;
  font-style: italic;
}

.namdhinggo-medium {
  font-family: "Namdhinggo", serif;
  font-weight: 500;
  font-style: normal;
}

.old-standard-tt-regular {
  font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;
}

.gabarito-800 {
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.gabarito-400 {
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

:root {
    --ks-red: #bf0d3e;
    --ks-green: #215732;
    --ks-gold: #c99700;
    --ks-grey: #636466;
}

/* Header */
header {
    background-image: url('/images/ks_banner.png');
    background-size: cover;
    height: 150px;
    color: white;

}

.banner-image {
    max-width: 40%;
    max-height: 40%;
    padding-right: 1rem;
}

.desktop-header {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: space-between;
    padding: clamp(5px 10px, 10px 20px, 15px 25px);
    text-align: left;
}

.logo-image-small {
    display: none;
}

.fraternity-name {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 300%;
}

.chapter-school-name {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 110%;
}

.header-text {
    padding-left: clamp(50px, 15vw, 150px);
    
}

/* NAVIGATION BAR */
nav ul {
    list-style: none; /* Remove bullets */
    display: flex; /* Align list items in a row */
    justify-content: center; /* Center Horizontally */
    padding: 0;
    margin: 0;
}

nav li {
    margin: 0 15px; /* Space between links */
}

nav a {
    text-decoration: none; /* Remove underline */
    color: black; /* Text Color */
    padding: 0 2rem 0 2rem;

    font-family: "Namdhinggo", serif;
    font-weight: 500;
    font-style: normal;

    position: relative;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

nav a:hover {
    /* color: var(--ks-red) */
    transform: scale(1.1);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ks-gold);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-links {
    font-size: 20px;
}

.nav-links li {
    padding: 0 1vw 0 1vw;
}

.desktop-nav {
    padding: 1rem 0 1rem 0;
    background-color: white;
    border-top: 2px solid black;
    /* border-bottom: 2px solid black; */
}

/* Burger menu hidden by default */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: black;
  margin: 4px;
  
}

.burger.toggle div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle div:nth-child(2) {
  opacity: 0;
}

.burger.toggle div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.burger div {
  transition: all 0.3s ease;
}


/* Footer */
.desktop-footer {
    border-top: 2px solid black 
}

.insta-logo{
    height: 40px;          /* fixed base size */
    max-height: 5vh;       /* won’t get taller than 5% of viewport height */
    width: auto;           /* keeps aspect ratio */
    margin: 10px;        /* spacing between logos and text */
}

.insta-banner {
    display: flex;
    justify-content: center;

    background: linear-gradient(270deg, var(--ks-red), var(--ks-gold), var(--ks-green));
    background-size: 800% 800%;
    animation: gradientShift 12s infinite;
    text-align: center;
    padding: 10px;
    color: white;
    font-weight: bold;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.insta-link {
    display: block; /* Makes the <a> act like a full-width container */
    text-decoration: none;
    color: inherit; /* Retains color from .insta-banner */
}

.block-footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.808);
    color: white;
}

/* Body */
html, body {
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
}

.scroll-container {
    scroll-snap-type: y proximity;
    scroll-padding-top: 30px;
    overflow-y: scroll;
    height: 100vh;
}

.page {
    scroll-snap-align: start;
}


/* Home Page */

.ks-colony-induction{
    width: 100%;
    max-width: 100vw; /* Never exceed the viewport width */
    height: auto;
    opacity: .7;
}

.welcome {
    padding-top: clamp(30px, 3vw, 70px);
}

.welcome-text hr {
    border: none; /* Remove default border */
    height: 1px; /* Set desired thickness */
    background-color: grey; 
    margin: 20px 0;
}

.welcome-banner {
    display: flex; 
    justify-content: center;
    text-align: center;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    padding: 0 20vw;
    
    font-family: "Old Standard TT", serif;
    font-weight: 400;
    font-style: normal;
}

.more-info a {
    color:black;
}

.home-about-link, .home-rush-link {
  padding-bottom: 4vw;
}

.home-about-link {
    display: flex;
    justify-content: center;
}

.home-about, .home-rush {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-about {
    padding-left: 5vw;
}

.ks-hq {
    height: 25vw;
}

.home-rush-link {
    display: flex;
    justify-content: center;    
}

.ks-brotherhood-slogan {
    height: 15vw;
}

.home-rush {
    padding-right: 5vw;
}

/* General Page Styling */
.outer-page {
    display: flex;
    flex-direction: column;
    padding: 4vw 16vw 4vw 16vw;
}

.inner-page {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 0 3vw 0 3vw;
}

p {
  font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;

  font-size: 1.2rem;
}

h1 {
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

h2, h3 {
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* About Us */
.ks-founder-img {
    width: 100%;
}

.the-golden-virginian {
    display: flex;
    flex-direction: row;
}

.about-the-virginian {
    padding-right: 5vw;
}

.quote-virginian {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quote-symbol {
    opacity: 70%;
    height: 40px;
}

.mission-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns of equal width */
  gap: 20px; /* space between boxes */
}

.mission-grid-container > div {
  border: 1px solid #ccc; /* adds a border to each box */
  padding: 20px;
  background-color: #f9f9f9; /* subtle background */
  border-radius: 8px; /* orounded corners */  
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mission-grid-container > div:hover, .mission-grid-container > div:active, .mission-grid-container > div:focus{
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.mission-grid-container h2 {
    margin: 0;
}

.mission-grid-container img {
    margin-right: 1vw;
}

.leadership-icon, .scholarship-icon, .service-icon, .fellowship-icon {
    height: 40px;
}

.facts {
  padding: 40px 20px;
  text-align: center;
}

.fact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px; /* space between cards */
  margin-top: 20px;
}

.fact-card {
  background-color: #f7f7f7; /* light gray background */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-card:hover, .fact-card:active, .fact-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.timeline {
  border-left: 4px solid var(--ks-red); /* fraternity red */
  padding-left: 20px;
}

.timeline-entry {
  margin-bottom: 30px;
}

.timeline-entry h3 {
  color: var(--ks-red);
  margin-bottom: 5px;
}

.timeline-entry p {
    margin-left: 3px;
    border-left: 2px solid var(--ks-grey);
    padding-left: 7px;
}

/* --- Layout: rows & cards --- */
.officers {
  padding: 24px 0 64px;          /* bottom padding keeps clear of the footer */
}

.officer-row {
  display: grid;
  gap: 24px;                      /* space between cards */
  justify-content: center;        /* center the whole row */
  margin-bottom: 24px;
}

/* Row 1: 3 cards */
.officer-row.three {
  grid-template-columns: repeat(3, 320px);
}

/* Row 2: 2 cards (centered) */
.officer-row.two {
  grid-template-columns: repeat(2, 320px);
}

/* --- Flip card --- */
.officers .card {
  width: 320px;                   /* must match grid column width */
  height: 360px;                  /* fixed height so the row reserves space */
  perspective: 1000px;
}

.officers .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.officers .card:hover .card-inner {
  transform: rotateY(180deg);
}

.officers .card-front,
.officers .card-back {
  position: absolute;
  inset: 0;                       /* top/right/bottom/left: 0 */
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  justify-content: center;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  backface-visibility: hidden;
}

.officers .card-back {
  transform: rotateY(180deg);
}

/* Rush */
.outer-page.rush-page {
   /* background: repeating-linear-gradient(
        45deg,          
        black,        
        grey 10px,   
        black 50px   
    ); 
    padding-bottom: 10vw; */
  /* background-image: url('images/ks_rush_poster.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; */
}

.inner-page.rush-page {
  background-color: white;
  padding-bottom: 5vw;
}

.rush-poster {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fall-rush-poster {
  width: 60%;
  padding-bottom: 6vw;
  padding-top: 3vw;
}

.rush-form {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rush-form-button {
    background: linear-gradient(270deg, var(--ks-green), #455a4c, #395b44); 
    background-size: 500% 500%;
    animation: gradientShift 4s ease infinite;
    color: white;
    padding: 24px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    
    transition: transform 0.2s;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rush-form-button:hover {
    transform: translateY(-5px);
}


/* Brothers */
.brothers-outer-page {
    display: flex;
    flex-direction: column;
    padding: 4vw 6vw 0 6vw;
}

.brothers-inner-page {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 0 3vw 0 3vw;
}

.brothers h1 {
  text-align: center;
}

.profiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
    padding: 20px;
}

.profile {
    background: repeating-linear-gradient( /* This background isn't used */
        45deg,          /* Angle of stripes */
        var(--ks-green),        /* Light green */
        var(--ks-green) 2px,   /* Width of stripe */
        var(--ks-red) 30px    /* Alternate color and spacing */
    ); 

    background-image: url('/images/crest-transparent.png');
    background-repeat: no-repeat;
    background-position: center center;
    border: 4px solid black;

    /* background: #f9f9f9; Light card background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.profile:hover {
    transform: translateY(-5px);
}

.profile img {
    width: 100%;
    max-width: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile h2 {
    font-size: 1.3rem;
    margin: 0;
    background: white;
}

.profile p {
    color: black;
    font-size: 1.1rem;
    margin-top: 5px;
    background: white;
}

/* Alumni */
.alumni-about {
  padding-bottom: 2vw;
}

.alumni {
  text-align: center;
}

.alumni p {
  text-align: left;
}

.alumni-volunteer, .alumni-chapter, .alumni-donate {
  display: flex;
  padding: 3vw 5vw;
}

.alumni p {
  padding-left: 5vw;
}

.alumni-donate a {
  color: black;
}

