/* Page Title */
.page-title {
    color: skyblue;
    text-decoration: underline 4px;
    text-align: center;
    font-size: 40px;
    flex: 1;
}

/* Content Layout */
.content-section {
    width: 75%;
    margin: auto;
}

/* Container for the logos and title */
.header-visual-wrapper {
    display: flex;
    justify-content: center; /* Centers the whole group */
    align-items: center;     /* Aligns items vertically in the middle */
    gap: 30px;               /* Adds space between logos and text */
    margin: 40px 0;          /* Adds space above and below the whole header */
}

/* Individual logo styling */
.header-logo {
    height: 60px;            /* Keeps size consistent */
    width: auto;             /* Maintains aspect ratio */
    flex-shrink: 0;          /* Prevents logos from squishing on small screens */
}

.main-heading {
    text-align: center;
    text-decoration: underline 3px;
    margin: 0;
    padding: 0;
}

.list-columns {
    column-count: 2;
    column-gap: 80px;
    margin-left: 50px;
    font-size: 20px;
    list-style-type: disc; /* Added to keep bullets visible */
}

.sub-heading {
    margin-left: 30px; 
    text-shadow: 2px 2px 4px grey;
    font-size: 28px;
}

.highlight-text {
    font-weight: bold;
    color: var(--primary);
}

/* Bio Section Flexbox */
.profile-section {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    width: 80%;
    margin: 20px auto;
}

.profile-photo-frame { 
    background: white;
    padding: 20px;
    width: 240px;
    height: 300px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: var(--card-radius);
}

.profile-photo-frame img {
    box-shadow: 4px 4px 6px rgba(0,0,0,0.5); 
    border-radius: var(--card-radius);
}

.profile-bio-card {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: var(--card-radius);
    flex: 1;
}

.bio-text {
    font-size: 20px;
    margin: 20px;
    line-height: 1.6;
}

/* Coursework Layout */
.coursework-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 80%;
    gap: 20px;
    margin: 40px auto;
}

.course-card-former, 
.course-card-current {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: var(--card-radius);
}

.course-card-former { flex: 2; }
.course-card-current { flex: 1; }

.course-list-columns {
    column-count: 2;
    margin-left: 25px;
}

.course-list {
    margin-left: 25px;
}

.coursework-grid li {
    font-size: 16px;
    margin-bottom: 5px;
}

.header-link-highlight {
    color: black;
    text-decoration: none;
}

/* Titles with Shadows */
.section-title-shadow {
    font-size: 30px;
    margin-left: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hidden-secret-link {
    font-size: 30px;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.list-columns-two {
    font-size: 20px;
    column-count: 2;
    column-gap: 50px;
    margin-left: 50px;
}

/* Section Spacing */
.assignment-section {
    width: 80%;
    margin: 20px auto;
}

.section-note {
    margin-left: 20px;
    font-style: italic;
}

.double-divider {
    border: 0;
    border-top: 3px double var(--border);
    margin: 40px 0;
}

/*----- Updated Resume Section -----*/
/* Forces the container to center and respect the max width */
.resume-container {
    width: 70%;
    margin: 40px auto;
    display: block;
}

/* Hero Header: Dark contrast section */
.resume-hero {
    background-color: #333 !important; /* Force the dark background */
    color: white !important;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: left;
}

.hero-left { flex: 1.5; min-width: 300px; }
.hero-right { 
    flex: 1.5; 
    background: rgba(255,255,255,0.1); 
    padding: 25px; 
    border-radius: 15px; 
    min-width: 250px;
}

.hero-name { 
    font-size: 3rem; 
    margin: 10px 0; 
    font-family: Verdana, sans-serif; 
    text-shadow: none; /* Removing the old shadow for a cleaner look */
}

.hero-role {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary); /* Uses your pink variable */
}



/* The Main Content Area - now expanding to full width */
.resume-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px; /* Space between Education and Skills row */
}

.grid-main { 
    flex: 1; /* Allows the main block to take up the full available width */
}

/* NEW: Style for the bottom horizontal container */
.resume-bottom-row {
    display: flex !important;       /* Forces flexbox layout to apply */
    flex-direction: row !important; /* Forces items side-by-side */
    gap: 30px;
    align-items: stretch;           /* Keeps both cards exactly the same height */
    width: 100%;
    margin-top: 10px;               /* Adds a little space below the education block */
}

.bottom-card-linksSkills {
    flex: 3 !important; margin-bottom: 0;
}

.bottom-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 7 !important;                      /* Controls width ratio of left side */
}

.bottom-left-col .resume-card {
    margin-bottom: 0 !important;    /* Let the flex gap handle card spacing */
}

.bottom-card-certs {
    flex: 6 !important;
    margin-bottom: 0 !important;
}

.skills-list { column-count: 2; }

.cert-list li {
    margin-bottom: 12px;
}

/* Ensure cards are visible against the background */
.resume-card {
    background: white !important;
    padding: 30px;
    border-radius: var(--card-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #333;
}

.project-grid { 
	display: grid; 
	grid-template-columns: 1fr; 
	gap: 30px; 
}

@media (min-width: 900px) {
    .project-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

.project-card {
    background: white !important;
    padding: 30px;
    border-radius: var(--card-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333;
}

.card-title {
    font-size: 24px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.project-card .card-title { min-height: 80px; }

/* List Spacing */
li {
    margin-top: 10px;
    margin-left: 20px;
}

/* Prevent top margins from pushing column tops down */
.skills-list,
.list-columns,
.list-columns-two,
.list-columns-three,
.resume-coursework-list {
    /* Ensures clean top alignment for the column container */
    padding-top: 0;
    margin-top: 0;
}

/* Ensure individual items don't fragment or push down column tops */
.skills-list li,
.list-columns li,
.list-columns-two li,
.list-columns-three li,
.resume-coursework-list li {
    break-inside: avoid;             /* Prevents an item from splitting across columns */
    -webkit-column-break-inside: avoid;
}

/* Strip top margin from the very first items */
.skills-list li:first-child,
.list-columns li:first-child,
.list-columns-two li:first-child,
.list-columns-three li:first-child,
.resume-coursework-list li:first-child {
    margin-top: 0;
}

.experience-list li,
.resume-coursework-list li,
.resume-project-details li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.resume-coursework-list {column-count: 3;}

.js-icon {
    width: 20px;            /* Small enough to match font size */
    height: 20px;
    vertical-align: middle; /* Aligns it vertically with the text */
    margin-left: 5px;       /* Adds a tiny gap after the arrow */
    border-radius: 2px;     /* Mimics the square shape of the logo */
    background:white;
    padding:1px;
}



/* ==========================================================================
   Stat-Line Roulette Game Styles
   ========================================================================== */
/* Game Body / Outer Layout */
.roulette-body {
    background-color: #121212 !important;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.roulette-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.roulette-score {
    font-size: 1rem;
    color: #aaaaaa;
    margin-top: 0;
}

/* Question Card */
.roulette-stat-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-top: 5px solid #ff5722;
}

.roulette-stats {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 15px 0;
}

/* Button Layout & Styling */
.roulette-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.roulette-btn {
    background-color: #2a2a2a;
    color: white;
    border: 2px solid #3a3a3a;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.roulette-btn:hover {
    background-color: #3a3a3a;
    border-color: #ff5722;
}

.roulette-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.roulette-next-btn {
    width: 100%;
    margin-top: 15px;
}

.roulette-feedback {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 30px;
}