/* Recruit Page Specific Styles */

/* Recruit/Partner Hero Section */
.recruit-hero {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.recruit-hero-bg {
    width: 100%;
    height: 440px;
    background: url('../static/recruit/recruit_partner.jpg') center center/cover no-repeat;
}

.recruit-hero-content {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.recruit-hero-content h1,
.recruit-hero-title-text {
    color: #fff !important;
}

.recruit-hero-content h1 {
    font: italic normal 65px/65px Times New Roman;
    letter-spacing: 0.05em;
}

.recruit-hero-title-text {
    margin-top: 12px;
    font-size: 17px;
    color: #fff;
    letter-spacing: 0.05em;
}

/* Recruit/Partner Content Section */
.recruit-partner-section {
    background-color: #fff;
    padding: 40px 0 100px; /* Top 40px, Bottom 80px */
    text-align: center;
}

.recruit-partner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.recruit-partner-boxes {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.3s;
}

.recruit-partner-boxes.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.recruit-partner-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.recruit-box,
.partner-box {
  position: relative;
  background: #fff;
  border: 4px solid #004177;
  border-radius: 12px;
  width: 480px;
  /* height: 170px; */
  padding: 21px 0 25px;
  text-decoration: none;
  transition: all 0.6s ease;
  opacity: 1;
}

.box-content {
    position: relative;
    height: 100%;
}


.arrow {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    transition: opacity 0.8s ease;
    opacity: 1;
}

.arrow.hover {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.recruit-box:hover .arrow.default,
.partner-box:hover .arrow.default {
    opacity: 0;
}

.recruit-box:hover .arrow.hover,
.partner-box:hover .arrow.hover {
    opacity: 1;
}

.recruit-box:hover,
.partner-box:hover {
    background: #004177;
    border-color: #004177;
}

.box-content h3 {
    font-size: 32px;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 4px;
    color: #004177;
    transition: color 0.8s ease;
    letter-spacing: 0.05em;
    font-family: 'Times New Roman', serif;
}

.box-content p {
    font-size: 16px;
    margin: 0;
    color: #004177;
    transition: color 0.8s ease;
    font-weight: normal;
    line-height: 1.5;
}

.recruit-box:hover .box-content h3,
.recruit-box:hover .box-content p,
.recruit-box:hover .arrow,
.partner-box:hover .box-content h3,
.partner-box:hover .box-content p,
.partner-box:hover .arrow {
    color: #ffffff;
}


.recruit-intro-text {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
    transition-delay: 0.2s;
}

.recruit-intro-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.recruit-intro-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #004177;
    letter-spacing: 0.05em;
}

/* Recruit Section */
.recruit-section {
    background-color: rgba(0, 65, 119, 0.05);
    padding: 80px 0 60px;
}

.recruit-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.recruit-header {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.recruit-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.recruit-title {
    font: italic normal 40px/40px Times New Roman;
    color: #004177;
    letter-spacing: 0.03em;
}

.recruit-subtitle {
    margin-top: 16px;
    font-size: 17px;
    color: #004177;
    margin-bottom: 38px;
}

/* Positions Section */
.recruit-positions {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    transition-delay: 0.3s;
}

.recruit-positions.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.positions-title {
    font-size: 24px;
    color: #004177;
    margin-bottom: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px; /* Match table width */
    margin-left: auto;
    margin-right: auto;
  letter-spacing: 1px;
}

.positions-title::before,
.positions-title::after {
    content: '';
    width: calc((100% - 200px) / 2); /* Calculate line width to match table */
    width: calc((100% - 180px) / 2); /* Calculate line width to match table */
    height: 2px;
    background-color: #004177;
}

.positions-title::before {
    margin-right: 32px;
}

.positions-title::after {
    margin-left: 32px;
}

/* Position Buttons */
.position-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 870px; /* Updated to accommodate 3 buttons of 270px each + gaps */
    margin: 0 auto;
}

.position-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  padding: 8px 20px 7px; /* Equal padding for true center alignment */
    width: 250px;
    min-width: 250px; /* Ensure minimum width */
    flex-shrink: 0; /* Prevent shrinking */
/*    height: 50px;*/
    background-color: #004177;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #004177;
    font-size: 17px;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.position-button:hover {
    background-color: #fff;
    color: #004177;
    border-color: #004177;
}

.button-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.button-arrow.default {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease; /* Faster animation */
}

.button-arrow.hover {
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease; /* Faster animation */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.position-button:hover .button-arrow.default {
    opacity: 0;
}

.position-button:hover .button-arrow.hover {
    opacity: 1;
}

/* Position Detail */
.position-detail {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.position-detail.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.position-detail-title {
    font-size: 28px;
    color: #004177;
    text-align: left;
    margin-bottom: 20px; /* Changed from 40px to 30px */
    /* Removed padding-bottom: 20px */
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  letter-spacing: 1px;
}

/* Position Table */
.position-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    border-collapse: collapse;
    background: transparent;
    border-top: 2px solid #656565;
    color: #004177;
}

.position-table th {
    width: 180px;
    text-align: left;
    padding: 25px 0 24px 18px;
    font-weight: normal;
    font-size: 16px;
    border-bottom: 4px solid #004177;
    vertical-align: top;
    letter-spacing: 0.05em;
}

.position-table tr:first-child th {
    border-top: 4px solid #004177;
}

.position-table tr:last-child th {
    border-bottom: 4px solid #004177;
}

.position-table td {
    padding: 25px 0 24px 29px;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 2px solid #656565;
    background-color: transparent;
    letter-spacing: 0.05em;
}

.position-table tr:last-child td {
    border-bottom: 2px solid #656565;
}

/* Entry Button */
.entry-button-wrapper {
    text-align: center;
}

.entry-button {
    display: inline-block;
    width: 390px; /* Changed from 180px to 390px */
/*    height: 80px;*/
  /* Changed from 50px to 80px */
/*    line-height: 78px;*/
  /* Adjusted line-height */
  padding: 20px 0 18px;
    background-color: #004177;
    color: #fff;
    text-decoration: none;
    border-radius: 40px; /* Adjusted border-radius for taller button */
    font-size: 16px;
    letter-spacing: 0.1em;
    border: 2px solid #004177;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.entry-button:hover {
    background-color: #fff;
    color: #004177;
    border-color: #004177;
}

/* Partner Section */
.partner-section {
    background-color: #fff;
    padding: 80px 0 140px;
}

.partner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 2rem;
}

.partner-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.partner-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.partner-title {
    font: italic normal 40px/40px Times New Roman;
    color: #004177;
    letter-spacing: 0.03em;
}

.partner-subtitle {
    margin-top: 16px;
    font-size: 17px;
    color: #004177;
    margin-bottom: 38px;
}

.partner-positions {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    transition-delay: 0.3s;
}

.partner-positions.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.partner-category {
    font-size: 28px;
    color: #004177;
    text-align: left;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  letter-spacing: 1px;
}

.partner-detail {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.partner-detail.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-nav.visible {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Recruit/Partner Boxes */
    .recruit-partner-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .recruit-box,
    .partner-box {
        width: 100%;
        max-width: 580px;
    }

    .recruit-hero {
        padding-top: 55px;
        padding-bottom: 4rem;
    }

    .recruit-intro-text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .position-buttons {
        flex-direction: column;
        gap: 16px;
        max-width: 300px;
    }

    .position-button {
        width: 100%;
        justify-content: center;
      padding: 2px 20px; /* Equal padding for true center alignment */
    }

    .positions-title {
        
        font-size: 20px;
        padding: 0; /* Remove left/right padding for SP */
        max-width: 100%;
    }

    .positions-title::before,
    .positions-title::after {
        width: calc((100% - 180px) / 2); /* Increase width for better text display */
    }

    .position-table {
        font-size: 14px;
    }

    .position-table th,
    .position-table td {
        padding: 15px 0 15px 15px;
        font-size: 14px;
    }

    .position-table th {
        width: 120px;
        border-right: none;
    }

    .partner-category {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .entry-button {
        width: 100%;
        max-width: 422px; /* Keep PC size for tablets */
    }
}

@media (max-width: 480px) {
    /* Hero section adjustments */
    .recruit-hero-bg {
        height: 260px;
    }

    .recruit-hero-content h1 {
        font: italic normal 40px/40px Times New Roman;
    }

    .recruit-hero-title-text {
        font-size: 14px;
        margin-top: 5px;
    }

    /* Remove hero bottom padding for SP */
    .recruit-hero {
        padding-bottom: 0;
    }

    /* Recruit/Partner Boxes */
    .recruit-box,
    .partner-box {
        width: calc(100% - 2rem);
        max-width: 300px; /* Changed from 360px to 300px */
        height: auto;
/*        min-height: 170px;*/
      padding: 4px 0 14px;
    }
  
  .box-content h3 {
    font-size: 30px;
    margin-bottom: 0px;
  }
  
  .box-content p {
    font-size: 14px;
  }

    .arrow {
        right: 10px;
        width: 30px;
        height: 30px;
    }

    .recruit-partner-grid {
        padding: 0; /* Removed left/right padding */
    }

    /* Phase 1: Section padding adjustments */
    .recruit-partner-section {
        padding: 40px 0;
    }

    .recruit-section,
    .partner-section {
        padding: 40px 0;
    }

    /* Phase 1: Title margin-top unification */
    .recruit-header {
        margin-top: 0;
    }

    .recruit-title,
    .partner-title {
        font-size: 36px;
        margin-top: 0;
    }

    .recruit-subtitle,
    .partner-subtitle {
        font-size: 14px;
        margin-top: 7px;
        margin-bottom: 30px;
    }

    /* Phase 1: intro-text margin adjustments */
    .recruit-intro-text {
        margin-top: 0; /* Remove margin-top for SP */
        margin-bottom: 2rem;
    }

    .recruit-intro-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .recruit-intro-text p br {
        display: none;
    }

    /* Phase 1: positions title margin adjustments */
    .positions-title {
        margin-bottom: 30px;
        padding: 0; /* Remove left/right padding for SP */
    }

    /* Phase 1: position-detail margin adjustments */
    .position-detail {
      margin-bottom: 88px;
    }

    .position-detail-title {
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 10px;
        text-align: left;
        padding-left: 1px;
/*        padding-left: 1rem;*/
        padding-right: 1rem;
    }

    .position-table {
        display: block;
        overflow-x: auto;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: none;
        border-top: none;
      margin: 0 auto 20px;
    }

    .position-table tr {
        display: block;
        margin-bottom: 0;
        position: relative;
    }

    .position-table th,
    .position-table td {
        display: block;
        width: 100%;
        padding: 5px 0 0 10px;
        text-align: left;
        border: none;
        font-size: 14px;
        position: relative;
    }

    .position-table th {
        font-weight: bold;
        padding-bottom: 6px;
        border-bottom: none;
    }

    .position-table td {
        border-top: 1px solid #656565;
        padding-top: 9px;
        padding-bottom: 17px;
    }

    .position-table th::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 30%;
        height: 3px;
        background-color: #004177;
        z-index: 2;
    }

    .position-table tr:first-child td {
        border-top: 1px solid #656565;
    }

    .position-table tr:first-child th {
        border-top: none;
    }

    .position-table tr:last-child th {
        border-bottom: none;
    }

    .position-table tr:last-child td {
        border-bottom: none;
    }

    .entry-button {
        font-size: 16px;
        width: 100%; /* Full width for mobile */
        max-width: 300px; /* Same as position buttons */
/*        height: 50px;*/
      /* Reset to mobile height */
/*        line-height: 48px;*/
      /* Reset line-height */
        border-radius: 25px; /* Reset border-radius */
      padding: 10px 0 9px;
    }
  
  .partner-header {
    margin-bottom: 40px;
  }

    .partner-category {
      font-size: 24px;
      margin-top: 20px;
      margin-bottom: 10px;
      text-align: left;
      padding-left: 1px;
      /*        padding-left: 1rem;*/
      padding-right: 1rem;
    }

    .sticky-nav.pc-version {
        display: none;
    }
}