/* ====================== */
/* VARIABLES & RESET */
/* ====================== */
:root {
    --primary-blue: #001f4d;
    --secondary-blue: #003366;
    --accent-blue: #9bc4ee;
    --accent-orange: #ff6600;
    --text-dark: #333;
    --text-light: #666;
    --white: white;
}

* {
    box-sizing: border-box;
}

/* ====================== */
/* BASE STYLES */
/* ====================== */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    padding-top: 70px;
    line-height: 1.6;
    color: var(--text-dark);
}

h1, h2 {
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
}

.container {
    padding: 1rem 2rem 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.accent {
    color: var(--accent-orange);
    font-weight: 700;
}

/* ====================== */
/* LAYOUT COMPONENTS */
/* ====================== */

/* HEADER & NAVIGATION */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding-bottom: 1rem;
    width: 100%;
}

.header-inner {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-title-logo img {
    height: 40px;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.header-nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.header-nav-item a:hover {
    color: #007acc;
}

.header-nav-item--active a {
    border-bottom: 2px solid #007acc;
    padding-bottom: 0.3rem;
    color: #007acc;
}

.header-social {
    display: flex;
    gap: 1rem;
}

.header-social a img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.burger {
    display: none;
    background: none;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.header-collapse {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 100px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

.hero-text {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    padding: 6rem 1rem 2rem;
    color: var(--white);
    text-align: center;
    z-index: 10;
    background: linear-gradient(to top, var(--primary-blue) 40%, transparent 100%);
}

.hero-text .container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* CONTENT SECTIONS */
.info-section {
    padding: 0rem 1rem;
    background-color: var(--white);
    margin-bottom: 0rem;
}

.section-title {
    font-size: 2rem;
    margin-top: 0px;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--primary-blue);
}

.info-point {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.info-point p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* BUTTON COMPONENTS */
.central-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--accent-blue);
    padding: 1rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--secondary-blue);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    width: auto;
    max-width: 300px;
    height: 15px;
}

.central-button:hover {
    background-color: var(--accent-blue);
    transform: scale(1.02);
}

.overview-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--white);
    border: 2px solid var(--accent-blue);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--secondary-blue);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.overview-button-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--white);
    border: 3px solid var(--secondary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--secondary-blue);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.overview-button:hover {
    background-color: var(--accent-blue);
    transform: scale(1.02);
}

.overview-button-register:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: scale(1.02);
}

.overview-button img {
    width: 24px;
    height: 24px;
}

.login-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    background-color: var(--white);
    color: var(--secondary-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: var(--accent-blue);
    transform: scale(1.02);
}

/* GRID COMPONENTS */
.image-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0rem;
}

.image-button-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0rem;
}

.image-button {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-button-small {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-button .overlay,
.image-button-small .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 31, 77, 0.8), rgba(0, 31, 77, 0.1));
    transition: opacity 0.3s ease;
}

.image-button:hover,
.image-button-small:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.image-button:hover .overlay,
.image-button-small:hover .overlay {
    opacity: 0.6;
}

.text-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.text-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    margin-top: 0px;
    font-weight: bold;
}

.text-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0px;
}

/* BOARD MEMBERS */
.board-section {
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
    color: var(--secondary-blue);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.board-member {
    background-color: var(--white);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
}

.board-member:hover {
    transform: scale(1.05);
}

.board-member img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.board-member h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0px;
    margin-top: 10px;
    color: var(--secondary-blue);
}

.board-member h4 {
    font-size: 1.2rem;
    margin-top: -10px;
    margin-bottom: 0;
    font-weight: bold;
    color: var(--secondary-blue);
}

.board-member .function {
    font-weight: bold;
    color: var(--accent-blue);
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.board-member .education {
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin-top: 0px;
    margin-bottom: 1rem;
}

/* PAGE SPECIFIC STYLES */
.overview-section {
    background-color: var(--white);
}

.overview-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.overview-column {
    flex: 1;
    min-width: 250px;
}

.overview-column-small {
    flex: 1;
    min-width: 230px;
    max-width: 230px;
    padding: 20px;
    margin-top: 0px;
}

.overview-column h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.overview-column h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.overview-column-small h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--secondary-blue);
}

.login-section {
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: top;
    background-color: var(--white);
}

.login-content {
    max-width: 1000px;
}

.login-text {
    margin-top: 1rem;
    font-size: 1rem;
}

.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-container h1 {
    text-align: center;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
}

/* FOOTER */
.page-footer {
    background-color: var(--white);
    padding: 1rem 1rem;
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====================== */
/* RESPONSIVE DESIGN */
/* ====================== */

/* Tablet & Mobile Navigation */
@media (max-width: 960px) {
    .burger {
        display: block;
    }

    .header-collapse {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        background-color: var(--white);
        padding: 1rem 2rem 1rem 0;
        width: auto;
        min-width: 200px;
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-align: right;
        border-radius: 0px 0px 0px 10px;
    }

    .header-collapse.open {
        display: flex;
    }

    .header-nav-list {
        flex-direction: column;
        width: auto;
        gap: 0.5rem;
        align-items: flex-end;
    }

    .header-nav-item {
        width: 100%;
    }

    .header-social {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* Board Members Responsive */
@media (max-width: 1000px) {
    .board-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .board-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid Responsive */
@media (max-width: 800px) {
    .image-button-grid {
        grid-template-columns: 1fr;
    }

    .image-button-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Optimizations (768px and below) */
@media (max-width: 768px) {
    /* Header improvements */
    body {
        padding-top: 60px;
    }
    
    header {
        padding-bottom: 0;
    }
    
    .header-title-logo img {
        height: 32px;
    }
    
    .burger {
        font-size: 1.8rem;
        padding: 0.25rem;
    }

    /* Hero section optimization */
    .hero-section {
        margin-bottom: 2rem;
    }
    
    .hero-image {
        display: none;
        min-height: 300px;
    }
    
    .hero-text {
        position: static;
        padding: 2rem 1rem;
        background: var(--primary-blue);
        color: var(--white);
        margin-top: 0;
        background-image: none;
    }
    
    .hero-text .container {
        padding: 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin: 0;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-left: 0;
        margin-right: 0;
        line-height: 1.5;
    }

    /* Typography scaling */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .textbox p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .info-point p {
        font-size: 1rem;
    }

    /* Button & touch target improvements */
    .central-button {
        padding: 1.2rem 1.5rem;
        min-height: 50px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    
    .image-button {
        height: 200px;
        min-height: 180px;
    }

    /* Grid layout adjustments */
    .image-button-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
    }
    
    .image-button-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Info sections mobile update */
    .info-point {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-icon {
        display: none;
    }
    
    .info-point p {
        margin-left: 0;
    }
    
    .section-title {
        margin-bottom: 1rem;
        margin-top: 0;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .image-button {
        height: 180px;
        min-height: 160px;
    }
    
    .image-button-grid-small {
        grid-template-columns: 1fr;
    }
    
    .text-content h2 {
        font-size: 1.3rem;
    }
}

/* ====================== */
/* BOARD FILTER STYLES */
/* ====================== */

.team-filter {
    display: flex;
    justify-content: left;
    margin-bottom: 40px;
    gap: 12px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-filter {
        gap: 8px;
    }
    
    .filter-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .team-filter {
        justify-content: flex-start;
    }
    
    .filter-button {
        flex: 1;
        min-width: calc(50% - 8px);
    }
}

/* ====================== */
/* ACTIVITIES FILTER STYLES */
/* ====================== */

.semester-filter {
    display: flex;
    justify-content: left;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-button {
    background: var(--white);
    border: 3px solid var(--accent-blue);
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--secondary-blue);
    text-decoration: none;
}

.filter-button.active {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

.filter-button:hover:not(.active) {
    background: var(--accent-blue);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .semester-filter {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-button {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* ====================== */
/* ACTIVITIES PAGE MOBILE OPTIMIZATIONS */
/* ====================== */

/* Mobile layout for event content */
@media (max-width: 768px) {
    #activities-page .overview-columns {
        flex-direction: column;
        gap: 1.5rem;
        margin: 0 auto;
    }
    
    #activities-page .overview-column {
        flex: none;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        order: 1; /* Main content comes after title */
    }
    
    #activities-page .overview-column-small {
        flex: none;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 1.5rem;
        margin-top: 0;
        order: 2; /* Info sidebar comes after main content */
        background-color: #f8f9fa;
        border-radius: 10px;
    }
    
    /* Event title optimization - KEEP AT TOP */
    #activities-page .overview-column h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
        order: 0; /* Ensure title stays at the very top */
        width: 100%;
    }
    
    /* Event description optimization */
    #activities-page .overview-column p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Register button optimization */
    #activities-page .overview-button-register {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        min-height: 54px; /* Better touch target */
    }
    
    /* Info section headings */
    #activities-page .overview-column-small h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        color: #003366;
    }
    
    #activities-page .overview-column-small p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    /* Container padding adjustment */
    #activities-page .container {
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #activities-page .overview-column h1 {
        font-size: 1.6rem !important;
    }
    
    #activities-page .overview-column-small {
        padding: 1rem;
    }
    
    #activities-page .overview-button-register {
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
    }
}

/* Main card */
.vacancy-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Company */
.vacancy-company {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin: 0;
}

/* Title */
.vacancy-title {
    font-size: 1.4rem;
    margin: 5px 0 15px 0;
    font-weight: 700;
}

/* Body layout: description left, button right */
.vacancy-header {
    display: flex;
    justify-content: space-between; /* button right */
    align-items: flex-start;        /* top align button with title/company */
    margin-bottom: 15px;            /* spacing below header */
}


/* Description */
.vacancy-description {
    flex: 1;
    font-size: 1rem;
    color: #333;
    margin: 0;
    white-space: pre-line;   /* preserves \n line breaks */
}

.vacancy-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--white);
    border: 3px solid var(--secondary-blue);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--secondary-blue);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.vacancy-apply-btn:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: scale(1.02);
}


/* Responsive: stack button below description on mobile */
@media (max-width: 600px) {
    .vacancy-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .vacancy-apply-btn {
        margin-top: 10px;
    }
}

.vacancy-preview-card {
  width: 100%;               /* full container width */
  padding: 20px;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vacancy-preview-card:hover {
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.vacancy-preview-card .vacancy-company {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 5px 0;
}

.vacancy-preview-card .vacancy-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.vacancy-preview-container {
  display: flex;
  flex-direction: column; /* stack cards vertically */
  gap: 15px;             /* spacing between cards */
}

