/**
 * BRAIN - Global CSS
 * Comprehensive styles based on design images for all pages
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
   :root {
    /* Colors */
    --orange: #FF8D4C;
    --orange-dark: #F15A29;
    --orange-hover: #d64907;
    --light-gray: #D9D9D9;
    --white: #FFFFFF;
    --black: #000000;
    --text-color: #333333;
    --footer-bg: #f6f6f6;
    --cornell-red: #A11E1F;
    --cornell-red-hover: #da6b6b;
    --new-tag-bg: #FFE8CD;
    --updated-tag-bg: #E1F5FE;
    --updated-tag-color: #0288D1;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, 'Roboto', 'Helvetica', sans-serif;
    
    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 80px;
    
    /* Other */
    --border-radius: 50px;
    --card-radius: 4px;
    --transition: 0.3s ease;
    --max-width: 1302px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.5;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.2;
    color: var(--black);
}

h1, .hero-title, .page-title {
    font-size: 52px;
    color: white;
    margin-bottom: 41px;
}

h2, .section-title {
    font-size: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    font-size: 20px;
}

.highlight-orange {
    color: var(--cornell-red);
}

.highlight-cornell {
    color: var(--cornell-red);
}

/* Ensure all hero titles are white */
.hero-title {
    color: #fff !important;
}

/* Ensure all h1 elements in hero sections are white */
.hero-section h1,
.page-hero h1,
.hero-container h1 {
    background-color: #a11e1e8b !important;
    width: fit-content;
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.brain-site {
    overflow: visible; /* test if this resolves the issue */
}

.section-container, 
.hero-container,
.header-container,
.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    padding-top: 0;
    background-color: var(--white);
    position: -webkit-sticky; /* for older Safari versions */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    will-change: top;
}

/* Add extra white space below the sticky header */
.site-header::after {
    content: "";
    display: block;
    height: 100px; /* adjust height as needed */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Update Header Logo Alignment */
.header-logo {
    display: flex;
    align-items: center;
    gap: 20px; /* adjust gap if needed */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brain-logo {
    width: 145px;
    vertical-align: middle;
}

.college-logo {
    height: 60px; /* adjust this value to match your design */
    vertical-align: middle;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: none; /* Hide nav menu by default on small screens */
    align-items: center;
    gap: 40px;
    font-size: 20px;
    justify-content: flex-end; /* Added to justify items to the right */
    z-index: 9999;
}

.nav-menu.active {
    display: block;
    z-index: 9999;
}

.nav-menu a {
    color: var(--black);
    text-decoration: none;
}

.nav-menu a.active,
.nav-menu a:hover:not(.btn) {
    color: var(--cornell-red);
}

/* Ensure the mobile toggle button is visible on small screens */
.nav-toggle {
    position: absolute;
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 900000 !important;
}

/* For larger screens, override to show the menu always */
@media (min-width: 768px) {
    .nav-menu { 
        display: flex; 
    }
    .nav-toggle { 
        display: none; 
    }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--cornell-red);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 13px 17px;
}

.btn-primary:hover {
    background-color: var(--cornell-red-hover);
}

.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--black);
}

.btn-circle::after {
    content: "→";
    display: inline-block;
    margin-left: 8px;
    font-size: 24px;
}

.btn-learn {
    padding: 17px 30px;
    font-size: 20px;
}

.btn-explore {
    padding: 17px 30px;
    font-size: 20px;
    margin: 20px auto;
    display: block;
    width: fit-content;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-section, .page-hero {
    background-color: var(--light-gray);
    padding: 140px 80px;
    margin-top: 0px;
}

.hero-section {
    text-align: center;
}

.page-hero {
    text-align: left;
}

.hero-title, .page-title {
    font-size: 52px;
    font-weight: 500;
    margin-bottom: 41px;
}

.hero-text, .page-description {
    font-size: 20px;
    max-width: 698px;
    margin: 0 auto 41px;
    line-height: 1.5;
}

.page-hero .page-description {
    margin: 0;
    max-width: 700px;
}

/* ==========================================================================
   Home Page - Resource Cards & Sections
   ========================================================================== */
.resources-section,
.recommended-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-text {
    text-align: center;
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Resource Grid - Homepage */

.ai-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: var(--max-width);
}

.resource-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.resource-button {
    display: inline-flex;
    align-items: center;
    color: var(--cornell-red);
    font-weight: 500;
    transition: color var(--transition);
    margin-top: auto;
}

.ai-resources-grid .resource-card {
    position: relative;
    padding-bottom: 20%; /* Create space for the link at bottom */
}

.ai-resources-grid .resource-button,
.ai-resources-grid a[href] {
    position: absolute;
    bottom: 20px;
    padding-left: 3%;
}

.resource-button:hover {
    color: var(--cornell-red-hover);
}

.resource-button .arrow {
    margin-left: 5px;
    transition: transform var(--transition);
}

.resource-button:hover .arrow {
    transform: translateX(4px);
}

/* ai inventory resource button */
.resource-button.ai-inventory {
    display: inline-flex;
    background-color: #A11E1F; /* Red background */
    align-items: center;
    color: #ffffff; /* White text */
    padding: 10px 20px; /* Padding for the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: color var(--transition);
}
/* 
.resource-button.ai-inventory:hover {
    color: var(--cornell-red-hover);
} */

.resource-button.ai-inventory .arrow {
    margin-left: 5px; /* Add spacing between text and arrow */
}


.ai-resources-grid .resource-card .card-description {
    font-size: 14px !important;
    line-height: 1.4;
}

.ai-resources-grid .resource-card .card-title {
    font-size: 16px !important;
    margin-bottom: 10px;
}

.ai-resources-grid a[href] {
    margin-left: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    display: inline-block;
}

.ai-resources-grid p {
    padding-right: 5%;
    padding-left: 5%;
}

.card-title {
    padding-right: 5%;
    padding-left: 5%;
}

/* .resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
} */

/* .resource-card { */
    /* background-color: var(--light-gray); */
    /* border-radius: var(--card-radius);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
} */

/* Update resource cards to display text below the image */
/* .resource-card {
    flex-direction: column !important;
    height: auto !important;
    /* Optional: adjust padding/margin as needed */
/* }

.resource-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.card-content {
    text-align: center;
    padding: 20px;
} */

/* Optional: Tweak card content padding for a tighter layout */
/* .resource-card .card-content {
    padding: 15px;
}

.card-title {
    font-size: 30px;
    margin: 0;
    color: var(--black);
} */

/* Revert changes in .card-description */
.card-description {
    font-size: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Recommended Slider - Homepage */
.recommended-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--cornell-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    left: -60px;
}

.slider-btn.next {
    right: -60px;
}

.arrow-left,
.arrow-right {
    font-size: 20px;
}

.course-card {
    background-color: var(--light-gray);
    height: 150px;
    border-radius: var(--card-radius);
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */
/* Mission Section */
.mission-section {
    padding: 20px;
    text-align: center;
    
}

.mission-points {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mission-point {
    flex: 1;
    text-align: center;
}

.mission-description {
    padding-left: 15%; 
    padding-right: 15%; 
    padding-bottom: 1%;
}

.point-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.point-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.point-description {
    font-size: 16px;
}

/* Features Section */
.features-section {
    padding: 1% 0 0 0;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    border-radius: var (--card-radius);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition);
    border-left-style: double;
}

.feature-card:hover {
    transform: translateX(-1px);
    box-shadow: var(--shadow);
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-description {
    font-size: 16px;
}

/* Testimonial Section */
.testimonial-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.testimonial {
    font-size: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-text {
    font-weight: 700;
    margin-bottom: 20px;
}

.testimonial-author {
    font-style: normal;
    display: block;
}

/* Contact Form */
.contact-form-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.contact-intro {
    font-size: 20px;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    background-color: var(--light-gray);
    border-radius: 25px;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Career Tools Page Styles
   ========================================================================== */
.career-steps-section {
    padding: var(--spacing-md) 0;
}

.career-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.career-step.reverse {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.step-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.step-image {
    flex: 1;
    height: 300px;
    background-color: var(--light-gray);
    border-radius: var (--card-radius);
}

/* Related Tools Section */
.related-tools-section,
.johnson-tools-section {
    padding: var(--spacing-lg) 0;
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--card-radius);
    padding: 30px;
    height: auto;
    display: block;
}

.tool-title {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Revert changes in .tool-description */
.tool-description {
    font-size: 16px;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: break-word;
}

.johnson-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.johnson-tool {
    background-color: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.tool-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
}

/* ==========================================================================
   Resume & Cover Letter Page
   ========================================================================== */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var (--text-color);
}

.breadcrumb a:hover {
    color: var(--cornell-red);
}

.breadcrumb .separator {
    color: var(--text-color);
}

.breadcrumb .current {
    color: var(--cornell-red);
}

.resume-section,
.cover-letter-section {
    padding: var(--spacing-md) 0;
}

.resume-grid,
.cover-letter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.resume-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--card-radius);
    padding: 20px;
}

.resume-status {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.status-new {
    background-color: var(--new-tag-bg);
    color: var(--cornell-red);
}

.status-updated {
    background-color: var(--updated-tag-bg);
    color: var (--updated-tag-color);
}

.resume-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.resume-description {
    font-size: 16px;
    margin-bottom: 15px;
}

.resume-source {
    font-size: 16px;
    color: var(--text-color);
}

.resume-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5%;
    padding-bottom: 10%;
}

.pagination-text {
    color: var(--cornell-red);
    font-size: 18px;
}

/* ==========================================================================
   AI Academy Page
   ========================================================================== */
.resources-tabs-section {
    padding: 0 0 0 0;
    position: sticky;
    z-index: 2000;
}

.resources-tabs {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 0 auto 40px;
    background-color: var(--cornell-red);
    padding: 10px;
    border-radius: 100px;
    max-width: 500px;
}

.resource-tab {
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.resource-tab:hover {
    color: var(--light-gray);
}

.resource-tab.active {
    color: var(--cornell-red);
}

.cornell-resources-section,
.ai-news-section,
.podcasts-section,
.skills-section,
.articles-section {
    padding: var(--spacing-md) 0;
}

.ai-resources-grid,
.podcasts-grid,
.skills-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 40px;
    color: var(--text-color);
    font-size: 16px;
}

.view-all-link:hover {
    color: var(--cornell-red);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading .view-all {
    font-size: 16px;
    color: var(--cornell-red);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    margin-bottom: 15px;
}

/* ==========================================================================
   Cornell AI Resources Page
   ========================================================================== */
.courses-section,
.organizations-section,
.research-section,
.services-section {
    padding: var(--spacing-md) 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.course-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--card-radius);
    padding: 20px;
}

.course-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.course-description {
    font-size: 16px;
}

.organizations-grid,
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.organization-item,
.research-item {
    background-color: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.organization-image,
.research-image {
    height: 200px;
    background-color: var(--light-gray);
    margin-bottom: 15px;
}

.organization-title,
.research-title {
    font-size: 20px;
    margin: 0 15px 10px;
    font-weight: 500;
}

.organization-description,
.research-description {
    font-size: 16px;
    margin: 0 15px 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
}

.service-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--card-radius);
    padding: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-description {
    font-size: 16px;
}

.see-more-btn {
    display: block;
    text-align: center;
    margin: 20px auto 60px;
    width: fit-content;
}

.next-page-link {
    display: block;
    background-color: var(--footer-bg);
    padding: 20px;
    border-radius: var(--card-radius);
    margin: 0 auto 60px;
    max-width: 600px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

.next-page-link:hover {
    background-color: var(--cornell-red);
    color: var(--white);
}

/* ==========================================================================
   Job Radar Page
   ========================================================================== */
.company-section,
.categories-section,
.get-ready-section {
    padding: 10px;
    padding-top: 3%;
}

.company-heading {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.company-heading h2 {
    margin-bottom: 0;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.company-card {
    border: 1px solid var(--light-gray);
    border-radius: var(--card-radius);
    padding-bottom: 15px;
    overflow: hidden;
}

.company-logo {
    height: 150px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 24px;
}

.company-name {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    /* margin-bottom: 5px; */
    padding-top: 5%;
}

.company-position {
    font-size: 14px;
    color: var(--text-color);
    text-align: left;
    padding: 5%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.job-skills {
    font-size: 14px;
    color: var (--text-color);
    margin-bottom: 5px;
}

.get-ready-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    margin: 40px auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    padding: 50px 0;
    margin-top: 0;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 400px;
    max-width: 90%;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.logo-column {
    width: 21%;
}

.contact-column {
    width: 51%;
}

.links-column {
    width: 28%;
}

.footer-logo {
    width: 80%;
    aspect-ratio: 1.58;
    object-fit: contain;
    border-radius: 5px;
}

.footer-heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

.address,
.contact-phone,
.contact-email {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: left;
}

.contact-email a {
    color: var(--text-color);
    text-decoration: underline;
}

.contact-email a:hover {
    color: var(--cornell-red);
}

.footer-links li {
    margin-bottom: 10px;
    text-align: left;
}

.footer-links a:hover {
    color: var(--cornell-red);
}

/* Add this to your styles.css file */
.footer-column.logo-column a{
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Grid Layout */

.text-grid-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.text-grid-section .section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.text-grid {
    display: grid;
    grid-template-columns: .75fr 2.25fr; /* 2 columns */
    grid-gap: 10px; /* Space between grid items */
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* podcast grid */
.text-grid.single-column {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Add spacing between links */
}

.text-grid.single-column .grid-item {
    text-align: left; /* Align text to the left */
    font-size: 16px; /* Adjust font size if needed */
    text-decoration: none; /* Remove underline */
    color: #A11E1F; /* Link color */
    transition: color 0.3s ease; /* Add hover effect */
}

.text-grid.single-column .grid-item:hover {
    color: #da6b6b; /* Darker color on hover */
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .section-container, 
    .hero-container,
    .header-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 991px) {
    h1, .hero-title, .page-title {
        font-size: 40px;
    }
    
    h2, .section-title {
        font-size: 32px;
    }
    
    .hero-section, .page-hero {
        padding: 100px 20px;
    }
    
    .resources-grid,
    .recommended-grid,
    .ai-resources-grid,
    .podcasts-grid,
    .skills-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-points {
        flex-direction: column;
    }
    
    .career-step,
    .career-step.reverse {
        flex-direction: column;
    }
    
    .step-image {
        width: 100%;
    }
    
    .johnson-tools-grid,
    .tool-cards,
    .courses-grid,
    .organizations-grid,
    .research-grid,
    .company-grid,
    .get-ready-cards {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resume-grid,
    .cover-letter-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-column,
    .logo-column,
    .contact-column,
    .links-column {
        width: 100%;
    }

    /* Add this to your styles.css file */
    .footer-column.logo-column {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Responsive fixes */
@media (max-width: 768px) {
    /* Keep the toggle visible on mobile */
    .nav-toggle {
      display: block;
      position: absolute;
      top: 20px;
      right: 20px;
    }
    
    /* Header should maintain the same height on mobile */
    .site-header {
      min-height: 80px;
    }
    
    /* Fix for the nav overlay positioning */
    .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 999;
    }
    
    /* Make the toggle button white when overlay is active */
    body:has(.nav-overlay[style*="visibility: visible"]) .nav-toggle {
      color: var(--cornell-red);
    }
  }
    
    .resources-grid,
    .recommended-grid,
    .ai-resources-grid,
    .podcasts-grid,
    .skills-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-btn {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-tabs {
        flex-wrap: wrap;
    }
    
    .section-heading {
        flex-direction: column;
        gap: 10px;
    }
    
    .company-heading {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-toggle {
        position: absolute;
        top: 15px;   /* adjust as needed */
        right: 15px; /* adjust as needed */
        z-index: 999999;
        color: var(--cornell-red);
    }
}

@media (max-width: 480px) {
    .hero-section, .page-hero {
        padding: 80px 20px;
    }
    
    h1, .hero-title, .page-title {
        font-size: 32px;
    }
    
    h2, .section-title {
        font-size: 28px;
    }
    
    .hero-text, .page-description {
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 10px 15px;
        font-size: 16px;
    }
}

