/*
Theme: Atlanta - Free business bootstrap template
Description: Free to use for personal and commercial use
Author: WebThemez.com
Website: http://webthemez.com
Note: Please do not remove the footer backlink (webthemez.com)--(if you want to remove contact: webthemez@gmail.com)
Licence: Creative Commons Attribution 3.0** - http://creativecommons.org/licenses/by/3.0/
*/

/* =========================================
   CSS Variables (Design Tokens)
   ========================================= */
:root {
  /* Colors - Primary */
  --color-primary: #1d4ed8;
  --color-primary-dark: #0f172a;
  --color-primary-light: #2563eb;
  --color-accent: #ee0c45;
  --color-accent-alt: #e74c3c;
  
  /* Colors - Secondary */
  --color-secondary: #22c55e;
  --color-secondary-dark: #0f766e;
  --color-secondary-light: #059669;
  
  /* Colors - Neutral */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Colors - Text */
  --color-text-primary: #333;
  --color-text-secondary: #555;
  --color-text-muted: #777;
  --color-text-light: #999;
  --color-text-white: #fff;
  
  /* Colors - Background */
  --bg-white: #ffffff;
  --bg-gray-light: #f5f5f5;
  --bg-gray-lighter: #f9fafb;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 60px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 18px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 10px 22px rgba(15, 23, 42, 0.06);
  --shadow-2xl: 0 14px 30px rgba(15, 23, 42, 0.4);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Typography */
  --font-family-base: "Open sans", Helvetica, Arial;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  
  /* Layout */
  --container-max-width: 960px;
  --container-max-width-narrow: 860px;
}

/* =========================================
   Performance: Lazy Loading Images
   ========================================= */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift for images */
img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   Accessibility Styles
   ========================================= */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

/* Tab navigation focus */
[role="tab"]:focus {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  border-radius: var(--radius-full);
}

/* Menu item focus */
[role="menuitem"]:focus {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  background-color: rgba(29, 78, 216, 0.1);
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* =========================================
   General Styles
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: "Open sans", Helvetica, Arial;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 30px;
}

blockquote {
    font-style: italic;
    font-family: Georgia;
    color: #999;
    margin: 30px 0 30px;
}

label {
    color: #777;
}

/* Header */
#head {
    background: #181015 url( ../images/bg_header.jpg) no-repeat;
    background-size: cover;
    background-position: center 70%;
    min-height: 520px;
    text-align: center;
    padding-top: 140px;
    color: white;
    font-family: "Open sans", Helvetica, Arial;
    font-weight: 300;
}

#head .lead {
    font-family: "Open sans", Helvetica, Arial;
    font-size: 44px;
    margin-bottom: 6px;
    color: white;
    line-height: 1.15em;
}

#head .tagline {
    color: rgba(255,255,255,0.75);
    margin-bottom: 25px;
}

#head .tagline a {
    color: #fff;
}

#head .btn {
    margin-bottom: 10px;
}

#head .btn-default {
    text-shadow: none;
    background: transparent;
    color: rgba(255,255,255,.5);
    -webkit-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.5);
    -moz-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.5);
    box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.5);
}

#head .btn-default:hover,
		#head .btn-default:focus {
    color: rgba(255,255,255,.8);
    -webkit-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.8);
    -moz-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.8);
    box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,.8);
    background: transparent;
}

#head .btn-default:active, 
		#head .btn-default.active {
    color: #fff;
    -webkit-box-shadow: inset 0px 0px 0px 3px #fff;
    -moz-box-shadow: inset 0px 0px 0px 3px #fff;
    box-shadow: inset 0px 0px 0px 3px #fff;
    background: transparent;
}

.panel {
    margin-bottom: 0px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0px;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.panel-body {
    padding: 0px;
}

.btn-action, .btn-primary {
    color: #FFEFD7;
    background-image: -webkit-linear-gradient(top, #0ecfec 0%, #09bed9 100%);
    background-image: linear-gradient(to bottom, #0ecfec 0%, #09bed9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0ecfec22', endColorstr='#09bed900', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    background-repeat: repeat-x;
    border: 0 none;
}

.btn-action:hover, .btn-primary:hover {
    background: #04a0b7;
}

.slideUp {
    top: -100px;
}
.headroom {
    -webkit-transition: all 0.4s ease-out;
    -moz-transition: all 0.4s ease-out;
    -o-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}
/* Highlights*/
.highlight {
    margin-top: 40px;
}

.h-caption {
    text-align: center;
}

.h-caption i {
    display: block;
    font-size: 54px;
    color: #ee0c45;
    margin-bottom: 36px;
}

.h-caption h4 {
    color: #382526;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}


.jumbotron {
    background-color: #E0E0E0;
}


.page-title {
    margin-top: 20px;
    font-weight: 300;
    color: #ee0c45;
}

.text-muted {
    color: #888;
}

ul.list-spaces li {
    margin-bottom: 10px;
}

/* Helpers */
.container-full {
    margin: 0 auto;
    width: 100%;
}

.top-space {
    margin-top: 60px;
}

.top-margin {
    margin-top: 20px;
}

img {
    max-width: 100%;
}

img.pull-right {
    margin-left: 10px;
}

img.pull-left {
    margin-right: 10px;
}

#map {
    width: 100%;
    height: 280px;
}

#social {
    margin-top: 50px;
    margin-bottom: 50px;
}

#social .wrapper {
    width: 340px;
    margin: 0 auto;
}

.sidebar {
    padding-top: 36px;
    padding-bottom: 30px;
}

.sidebar .panel {
    margin-bottom: 20px;
}

.sidebar h1, .sidebar .h1, .sidebar h2, .sidebar .h2, .sidebar h3, .sidebar .h3 {
    margin-top: 20px;
} 

/* Footer */
.footer1 {
    background: #302A31;
    padding: 30px 0 0 0;
    font-size: 12px;
    color: #999;
}

.footer1 a {
    color: #ccc;
}

.footer1 a:hover {
    color: #fff;
}

.footer1 .panel {
    margin-bottom: 30px;
}

.footer1 .panel-title {
    font-size: 17px;
    font-weight: bold;
    color: #ccc;
    margin: 0 0 20px;
}

.footer1 .entry-meta {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 0 0 35px 0;
    padding: 2px 0;
    color: #888888;
    font-size: 0.75rem;
}

.footer1 .entry-meta a {
    color: #333333;
}

.footer1 .entry-meta .meta-in {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.follow-me-icons {
    font-size: 30px;
}

.follow-me-icons i {
    float: left;
    margin: 0 10px 0 0;
}

.footer2 {
    background: #191919;
    padding: 15px 0;
    color: #777;
    font-size: 12px;
}

.footer2 a {
    color: #aaa;
}

.footer2 a:hover {
    color: #fff;
}

.footer2 p {
    margin: 0;
}

.panel-simplenav {
    margin-left: -5px;
}

.panel-simplenav a {
    margin: 0 5px;
}		
	
/* carousel */
#quote-carousel {
    padding: 0 10px 30px 10px;
    margin-top: 30px 0px 0px;
}

/* Control buttons  */
#quote-carousel .carousel-control {
    background: none;
    color: #222;
    font-size: 2.3em;
    text-shadow: none;
    margin-top: 30px;
}
/* Previous button  */
#quote-carousel .carousel-control.left {
    left: -12px;
}
/* Next button  */
#quote-carousel .carousel-control.right {
    right: -12px !important;
}
/* Changes the position of the indicators */
#quote-carousel .carousel-indicators {
    right: 50%;
    top: auto;
    bottom: 0px;
    margin-right: -19px;
}
/* Changes the color of the indicators */
#quote-carousel .carousel-indicators li {
    background: #c0c0c0;
}

#quote-carousel .carousel-indicators .active {
    background: #333333;
}

#quote-carousel img {
    width: 250px;
    height: 100px;
}
/* End carousel */

.item blockquote {
    border-left: none;
    margin: 0;
}

.item blockquote img {
    margin-bottom: 10px;
}

.item blockquote p:before {
    content: "\f10d";
    font-family: 'Fontawesome';
    float: left;
    margin-right: 10px;
}
.contact ul {
padding:0px;
}
.contact ul li {
margin-bottom: 10px;
list-style: none;
}
footer ul li {
list-style: none;
}
#map-canvas {
	height: 100%;
	margin: 0px;
	padding: 0px
  }
  
  /* ------- */

.isotopeWrapper article {
    margin-bottom: 30px;
}


    #portfolio img {
        width: 100%;
    }

    #portfolio article p {
        margin-bottom: 1.45em;
        /*set next row on the baseline*/;
    }

nav#filter {
    margin-bottom: 1.5em;
}

    nav#filter li {
        display: inline-block;
        margin: 0 0 0 5px;
    }

    nav#filter a {
        padding: 4px 12px;
        line-height: 20px;
        border: 1px solid #00bfff;
        text-decoration: none;
		color:#00bfff;
    }
nav#filter a.current{
background:#00bfff;
color:#fff;
}
.iconColor .fa{
color: #ee0c45;
}

.portfolio-items article img {
    width: 100%;
}

.portfolio-item {
    display: block;
    position: relative;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

    .portfolio-item img {
        -webkit-transition: all 300ms linear;
        -moz-transition: all 300ms linear;
        -o-transition: all 300ms linear;
        -ms-transition: all 300ms linear;
        transition: all 300ms linear;
    }

    .portfolio-item .portfolio-desc {
        display: block;
        opacity: 0;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        color: rgba(220, 220, 220);
    }

.fancybox-overlay {
    background: rgba(0, 0, 0, 0.64);
}

.portfolio-item:hover .portfolio-desc {
    padding-top: 20%;
    height: 100%;
    transition: all 200ms ease-in-out 0s;
    opacity: 1;
    background: rgba(61, 61, 61, 0.67);
}

.portfolio-item .portfolio-desc a {
    color: #fff;
    text-align: center;
    display: block;
}

    .portfolio-item .portfolio-desc a:hover {
        /*text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);*/
        text-decoration: none;
    }

.portfolio-item .portfolio-desc .folio-info {
    top: -20px;
    padding: 30px;
    height: 0;
    opacity: 0;
    position: relative;
}

.portfolio-item:hover .folio-info {
    height: 100%;
    opacity: 1;
    transition: all 500ms ease-in-out 0s;
    top: 5px;
}

.portfolio-item .portfolio-desc .folio-info h5 {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    font-size: 1.4em;
}

.portfolio-item .portfolio-desc .folio-info p {
    color: #ffffff;
    font-size: 12px;
}

/**
  MEDIA QUERIES
*/
@media (max-width: 767px) {
    #head {
        min-height: 420px;
        padding-top: 160px;
    }

    #head .lead {
        font-size: 34px;
    }
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) { 
    #quote-carousel {
        margin-bottom: 0;
        padding: 0 40px 30px 40px;
        margin-top: 30px;
    }
}
 
/* Small devices (tablets, up to 768px) */
@media (max-width: 768px) {     
    /* Make the indicators larger for easier clicking with fingers/thumb on mobile */    
    #quote-carousel .carousel-indicators {
        bottom: -20px !important;
    }

    #quote-carousel .carousel-indicators li {
        display: inline-block;
        margin: 0px 5px;
        width: 15px;
        height: 15px;
    }

    #quote-carousel .carousel-indicators li.active {
        margin: 0px 5px;
        width: 20px;
        height: 20px;
    }
}

 
/* 헤더 영역이 너무 붙어 보이면 살짝 여유 */
#head {
  margin-top: 0;
  padding-top: 0;
}
 

/* Organization 등 서브 페이지용 헤더 스타일 */
#head.secondary {
  background: #f5f5f5;        /* 연한 회색 배경 (원하면 변경 가능) */
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 0px;
  text-align: left;           /* 원래 about 페이지처럼 왼쪽 정렬 */
  color: #333;                /* 🔥 여기서 글자색을 다시 어두운 색으로 */
  margin-top: 0;
}

#head.secondary .page-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 0;
  color: #e74c3c;             /* 'About us'처럼 살짝 강조 색 (원하면 검정으로) */
}

#head.secondary .lead {
  font-size: 18px;
  color: #555;
  margin-bottom: 0;
}

/* ===== RoboRacer Build Sidebar ===== */
.sidebar-menu {
  background: #233559;
  color: #d9e6ff;
  padding: 15px 18px 20px 18px;
}

.sidebar-menu .form-control {
  border-radius: 20px;
  margin-bottom: 15px;
}

/* 섹션 제목 (BUILD AND DRIVE 등) */
.sidebar-menu .section-title {
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: #ff6b6b;
}

/* 리스트 기본 들여쓰기/여백 */
.sidebar-menu ul {
  list-style: none;
  padding-left: 8px;
  margin: 0 0 4px 0;
}

.sidebar-menu li {
  margin-bottom: 4px;
}

/* 링크 항목 */
.sidebar-menu li a {
  color: #d9e6ff;
  text-decoration: none;
  display: block;
  padding: 3px 4px 3px 10px;
}

.sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* 접히는 토글 제목(소제목) */
.sidebar-menu .toggle {
  font-weight: 700;
  cursor: pointer;
  padding: 3px 4px 3px 6px;
}

.sidebar-menu .toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* 토글로 열리는 서브 리스트 */
.sidebar-menu .sub-items {
  display: none;            /* 처음에는 접힌 상태 */
  padding-left: 18px;
  margin-top: 4px;
}

.race-tag-link {
  text-decoration: none;
  color: inherit;
}

.race-tag {
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.race-tag-sub {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.3em;
}

.race-tag-link:hover .race-tag {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.25);
}


/* =========================================
   Race Events - Upcoming Events Cards
   ========================================= */
/* Upcoming Events 카드 스타일 - 통일된 디자인 */
.race-card {
  background: var(--bg-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* 카드 상단에 색상 강조 바 추가 */
.race-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.race-card h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.race-card .race-date,
.race-card .race-location {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin-bottom: 6px;
  line-height: 1.5;
}

.race-card .race-date {
  font-weight: 600;
  color: var(--color-primary);
}

.race-card .race-link {
  font-size: var(--font-size-sm);
  margin-top: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.race-card .race-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

/* Placeholder 카드 스타일 */
.race-card-placeholder {
  background: var(--bg-gray-lighter);
  border-style: dashed;
  border-color: var(--color-gray-300);
}

.race-card-placeholder h4 {
  color: var(--color-gray-500);
  font-weight: 600;
}

/* =========================================
   Race Events - Past Events Tags
   ========================================= */
/* Past Events 태그 스타일 - 통일된 디자인 */
.race-tag {
  background: var(--bg-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 16px 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.race-tag strong {
  display: block;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  margin-bottom: 6px;
  line-height: 1.4;
}

.race-tag-sub {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
  font-weight: 400;
}

.race-tag-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.race-tag-link:hover .race-tag {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  background: var(--bg-gray-lighter);
}

  .community-section {
    padding: 40px 0;
  }
  .community-section h2 {
    margin-bottom: 25px;
  }
  
  /* =========================================
     Professor Grid - CSS Grid Layout
     ========================================= */
  .professor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  
  .professor-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
  }
  
  .professor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
  }
  
  .professor-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  .professor-affiliation {
    font-size: 0.95em;
    color: var(--color-gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 500;
  }
  
  .professor-tags {
    font-size: 0.85em;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-gray-200);
  }
  
  .professor-tags:empty::before {
    content: "–";
    color: var(--color-gray-400);
  }
  
  @media (max-width: 767px) {
    .professor-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  }

  .partner-intro {
    margin-bottom: 25px;
  }
  .partner-logo-box {
    background: #f5f0ff;          /* 기존 사이트 톤과 어울리는 밝은 보라 계열 */
    border: 1px solid #e0d7ff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
  .partner-logo-placeholder {
    height: 60px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #888;
  }

   .record-section {
    padding: 40px 0;
  }
  .record-section h2 {
    margin-bottom: 20px;
  }
  .record-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  .video-item {
    flex: 1 1 300px;
  }
  .video-item iframe {
    width: 100%;
    height: 200px;
    border: 0;
  }
  .record-image-table {
    width: 100%;
    margin-bottom: 25px;
  }
  .record-image-table th,
  .record-image-table td {
    vertical-align: top;
  }
  .image-placeholder {
    width: 100%;
    min-height: 80px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9em;
    color: #999;
  }

  /* 전체 본문 폰트 크기 및 줄 간격 확대 */
body {
    font-size: 17px;        /* 기본 14–15px → 17px 추천 */
    line-height: 1.7;       /* 기본 1.4~1.5 → 1.7 추천 */
}

/* 본문 영역(maincontent)만 조정하고 싶으면 */
.maincontent {
    font-size: 17px;
    line-height: 1.7;
}

/* p 태그 간격을 조금 더 띄우기 */
p {
    margin-bottom: 14px;
}

/* 전체 조직도 래퍼 */
.org-chart {
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* 각 레벨(위/아래)을 가로로 가운데 정렬 */
.org-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/* 위쪽 레벨(위원장)은 아래와 간격 조금 더 */
.level-top {
  margin-bottom: 16px;
}

/* 조직도 박스(위원장 / 부위원장 / 자문위원단) */
.org-node {
  min-width: 180px;
  padding: 16px 24px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  transition: all 0.3s ease;
}

.org-node:hover {
  border-color: #0ea5e9;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

.org-node .title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #1e293b;
}

.org-node .desc {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* 위원장과 아래 박스들 사이 선 */
.org-connector {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 40px;
  margin: 0 auto 16px;
}

/* 위원장에서 내려오는 세로선 */
.org-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 50%;
  border-left: 2px solid #94a3b8;
  transform: translateX(-50%);
}

/* 아래 레벨 위에 가로선 */
.org-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 320px;
  border-top: 2px solid #94a3b8;
  transform: translateX(-50%);
}

/* 화면이 좁을 때는 세로로 줄 세우기 */
@media (max-width: 768px) {
  .org-level.level-bottom {
    flex-direction: column;
    align-items: center;
  }

  .org-connector::after {
    width: 80%;
  }
  
  .org-chart {
    padding: 20px 15px;
  }
  
  .org-node {
    min-width: 140px;
    padding: 12px 18px;
  }
}

.rules-section-title {
  margin-top: 50px;
  padding-bottom: 10px;
  border-bottom: 3px solid #eee;
  font-weight: 700;
}

.toc-box {
  background: #f8f9fc;
  border: 1px solid #e0e4f0;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.rule-block {
  margin-top: 40px;
}

.note-box {
  background: #fff9e6;
  border-left: 5px solid #ffcc00;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}

.warning-box {
  background: #ffecec;
  border-left: 5px solid #ff4d4d;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}

.rules-footer {
  margin-top: 60px;
  text-align: center;
  color: #777;
}

/* 왼쪽 연도별 메뉴 스타일 */
.year-menu {
  margin-top: 40px;
}

.year-menu h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

.year-menu .nav-pills > li > a {
  padding: 6px 10px;
  border-radius: 4px;
}

.year-menu .nav-pills > li.active > a {
  font-weight: 700;
}

@media (max-width: 767px) {
  .year-menu {
    margin-bottom: 30px;
  }
}

/* 카드 스타일 */
.rules-card {
  border: 1px solid #e3e6f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  background: #ffffff;
  transition: box-shadow 0.2s ease;
}
.rules-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.rules-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}
.rules-card .meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 8px;
}


/* ===================================== */
/*  고정 네비게이션 padding 설정         */
/* ===================================== */

/* 기본(데스크톱 포함) – navbar 높이만큼 위에 여백 */
body {
  padding-top: 60px;
}

/* ===================================== */
/*  공통 Navbar 기본 스타일               */
/* ===================================== */

/* 상단 고정 dark navbar (기존 Bootstrap 구조 사용) */
.navbar.navbar-inverse.navbar-fixed-top {
  border: none;
}

/* 데스크톱에서 브랜드 로고 크기 */
.navbar-brand img {
  max-height: 30px;
  width: auto;
}

/* ===================================== */
/*  데스크톱 레이아웃 (>= 768px)         */
/* ===================================== */
@media (min-width: 768px) {
  /* 바 전체 최소 높이 */
  .navbar.navbar-inverse.navbar-fixed-top {
    min-height: 46px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  /* 브랜드 로고 영역 */
  .navbar-brand {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .navbar-brand img {
    min-height: 40px;
  }

  /* 메뉴는 오른쪽 정렬 */
  .navbar-nav {
    float: right;
  }

  /* 메뉴 항목 줄 간격(너무 두껍지 않도록) */
  .navbar-nav > li > a {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #head .banner-content {
    padding-top: 80px;   /* 40~120 사이에서 취향대로 조절 가능 */
  }
}

/* ===================================== */
/*  모바일 레이아웃 (<= 767px)           */
/* ===================================== */
@media (max-width: 767px) {

  body {
    /* 상단 여백도 조금 줄이기 */
    padding-top: 50px;
  }
  
  /* 아이폰 사파리 등에서 메뉴가 열린 채로 시작하는 문제 방지 */
  /* Bootstrap의 기본 동작을 존중하면서 초기 상태만 보장 */
  .navbar-collapse.collapse:not(.in) {
    display: none;
  }
  
  .navbar-collapse.collapse.in {
    display: block;
  }

  /* 모바일 바 높이 - 로고 크기(39px)에 맞춰 조정, 여유 공간 추가 */
  .navbar.navbar-inverse.navbar-fixed-top {
    min-height: 50px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  /* 모바일에서 navbar container의 좌우 패딩 제거 */
  .navbar.navbar-inverse.navbar-fixed-top .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* navbar-header를 flexbox로 만들어 로고와 햄버거 버튼 수평 정렬 */
  .navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding-left: 0;
    padding-right: 0;
  }

  /* 로고: 완전 왼쪽 끝에 배치, 로고 크기 20% 감소 */
  .navbar-brand {
    float: none;
    order: 1;              /* flexbox order로 왼쪽 배치 */
    padding: 0;            /* 모든 패딩 제거하여 완전 왼쪽 배치 */
    height: auto;
    display: flex;
    align-items: center;
    line-height: 1;
    margin: 0;
  }

  .navbar-brand img {
    height: 39px;        /* 49px * 0.8 = 약 39px (20% 감소) */
    width: auto;
    max-height: 39px;    /* 최대 높이 제한 */
  }

  /* 햄버거 버튼: 오른쪽 끝에 배치, 모던한 디자인 */
  .navbar-toggle {
    float: none;
    order: 2;              /* flexbox order로 오른쪽 배치 */
    margin: 0;
    padding: 10px 12px;    /* 적절한 패딩 */
    display: flex;
    flex-direction: column;  /* icon-bar를 세로로 배치 */
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    min-width: 44px;       /* 터치 영역 확보 */
    min-height: 44px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
  }

  .navbar-toggle:focus,
  .navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  .navbar-toggle:active {
    background: rgba(255, 255, 255, 0.15);
  }

  /* 햄버거 메뉴 활성화 상태 (X 모양으로 변환) */
  .navbar-toggle.active .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar-toggle.active .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* icon-bar 스타일 - 더 부드럽고 모던하게 */
  .navbar-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background-color: #fff;
    margin-top: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
  }

  .navbar-toggle .icon-bar:first-child {
    margin-top: 0;
  }

  /* collapse 메뉴가 navbar 아래에서 펼쳐지도록 */
  .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 모바일에서 flexbox로 검색 폼을 상단에 배치 */
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* 확실하게 닫힌 상태로 시작 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  /* Bootstrap의 .in 클래스가 추가되면 메뉴가 열림 */
  .navbar-collapse.in,
  .navbar-collapse.collapsing {
    max-height: 1000px;
  }
  
  /* 확실하게 닫힌 상태 - Bootstrap이 제어하도록 함 */
  .navbar-collapse.collapse:not(.in):not(.collapsing) {
    display: none;
  }

  /* 모바일 메뉴 항목 줄 간격 */
  .navbar-nav > li > a {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* 모바일에서 메뉴를 왼쪽 정렬로 변경 (자연스러운 레이아웃) */
  .navbar-nav {
    float: none !important;
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .navbar-nav > li {
    float: none;
    display: block;
    width: 100%;
  }

  .navbar-nav > li > a {
    text-align: left;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 15px;
  }

  .navbar-nav > li > a:hover,
  .navbar-nav > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
  }
}


/* 모바일에서 탭 메뉴가 header와 겹치지 않도록 */
@media (max-width: 767px) {
  .nav-pills {
    margin-top: 30px !important;   /* 아래로 살짝 밀어줌 */
  }
}


/* ============================= */
/*        NEWS CARD STYLES       */
/* ============================= */

#news-list {
    max-width: 900px;
    margin: 0 auto 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.news-thumb {
    flex: 0 0 180px;
}

.news-thumb-placeholder {
    width: 100%;
    padding-top: 56%;
    background: #e5e5e5;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 12px;
    color: #777;
    text-align: center;
}

.news-body h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
}

.news-body .meta {
    margin-bottom: 6px;
    font-size: 13px;
    color: #777;
}

.news-body p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.news-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    background: #ddd;
    color: #555;
    border-radius: 4px;
}

/* =========================================
   공통: Secondary Header with Gradient (Form 페이지만)
   ========================================= */
/* Form 페이지에서만 사용되는 그라디언트 헤더 스타일 */
main.form-page #head.secondary {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-secondary) 100%);
  color: var(--color-text-white);
  padding-top: 5px;
  padding-bottom: 5px;
  min-height: 30px;
}

main.form-page #head.secondary .page-title {
  font-weight: 700;
  letter-spacing: 0.03em;
}

main.form-page #head.secondary .lead {
  max-width: var(--container-max-width);
  margin-top: 10px;
  font-size: var(--font-size-md);
  opacity: 0.95;
}

/* =========================================
   Events Page Styles
   ========================================= */
main.events-page .race-description {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* =========================================
   공통: Secondary Header (Organization 스타일)
   ========================================= */
/* organization, learn, race, news, edu, join 페이지에서 organization과 동일한 헤더 스타일 사용 */
main.news-page #head.secondary,
main.learn-page #head.secondary,
main.edu-page #head.secondary,
main.race-rules-page #head.secondary,
main.race-events-page #head.secondary,
main.join-page #head.secondary,
main.events-page #head.secondary {
  background: var(--bg-gray-light);
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 0px;
  text-align: left;
  color: var(--color-text-primary);
  margin-top: 0;
}

main.news-page #head.secondary .page-title,
main.learn-page #head.secondary .page-title,
main.edu-page #head.secondary .page-title,
main.race-rules-page #head.secondary .page-title,
main.race-events-page #head.secondary .page-title,
main.join-page #head.secondary .page-title,
main.events-page #head.secondary .page-title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-accent-alt);
}

main.news-page #head.secondary .lead,
main.learn-page #head.secondary .lead,
main.edu-page #head.secondary .lead,
main.race-rules-page #head.secondary .lead,
main.race-events-page #head.secondary .lead,
main.join-page #head.secondary .lead,
main.events-page #head.secondary .lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* =========================================
   Join Page Custom Styles
   ========================================= */

/* 공통 섹션 여백 */
main.join-page .join-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 작은 섹션 라벨 */
main.join-page .join-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

/* 인트로 박스 */
main.join-page .join-intro-box {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
main.join-page .join-intro-box p {
  margin-bottom: 0;
}

/* =========================================
   Join Page - Cards Grid Layout
   ========================================= */
/* Section 1 카드 그리드 - CSS Grid로 개선 */
main.join-page .join-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

main.join-page .join-cards-grid > [class*="col-"] {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* 카드 스타일 통일 및 개선 */
main.join-page .join-card {
  background: var(--bg-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 카드 상단에 색상 강조 바 추가 */
main.join-page .join-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

main.join-page .join-card-blue::before {
  background: var(--color-primary);
}

main.join-page .join-card-emerald::before {
  background: var(--color-secondary);
}

main.join-page .join-card-amber::before {
  background: #d97706;
}

main.join-page .join-card-fuchsia::before {
  background: #c026d3;
}

main.join-page .join-card .panel-heading {
  background: var(--bg-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 16px 20px;
}

main.join-page .join-card .panel-title {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin: 0;
}

main.join-page .join-card .panel-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

main.join-page .join-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

main.join-page .join-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  flex: 1;
}

main.join-page .join-card ul li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* =========================================
   Join Page - Features Grid Layout
   ========================================= */
/* Why Join 영역 배경 박스 */
main.join-page .join-features-wrap {
  background:
    radial-gradient(circle at top left, #eff6ff, transparent 55%),
    radial-gradient(circle at bottom right, #ecfdf5, transparent 50%);
  border-radius: var(--radius-xl);
  padding: 24px 24px 10px;
  border: 1px solid var(--color-gray-200);
  box-sizing: border-box;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

/* Features 그리드 - CSS Grid로 개선 */
main.join-page .join-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

main.join-page .join-features-grid > [class*="col-"] {
  width: 100%;
  padding: 0;
  margin: 0;
}

main.join-page .feature-item {
  background: var(--bg-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  min-width: 0;
}

main.join-page .feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

main.join-page .feature-item .media-left {
  padding-right: 14px;
  flex-shrink: 0;
}

main.join-page .feature-item i {
  width: 40px;
  text-align: center;
  color: var(--color-primary);
  font-size: 24px;
}

main.join-page .feature-item .media-body {
  flex: 1;
}

main.join-page .feature-item .media-heading {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

main.join-page .feature-item .media-body p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* 가입 방법 단계 리스트 */
main.join-page .join-steps {
  max-width: 860px;
  margin: 20px 0 10px;
}
main.join-page .join-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
main.join-page .join-step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
main.join-page .join-step-body strong {
  display: block;
  font-size: 14px;
}


@media (max-width: 767px) {
  main.join-page .join-cards-grid,
  main.join-page .join-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  main.join-page .join-features-wrap {
    padding: 18px 14px 6px;
  }
}

/* =========================================
   News Page Custom Styles
   ========================================= */

/* 섹션 여백 */
main.news-page .news-section {
  padding-top: 40px;
  padding-bottom: 50px;
}

/* 작은 라벨 */
main.news-page .news-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

/* 설명 텍스트 좁게 */
main.news-page #news-list .section-text {
  max-width: 860px;
  margin: 8px 0 24px;
}

/* News 카드 리스트 */
main.news-page .news-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
main.news-page .news-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* 썸네일 영역 */
main.news-page .news-thumb {
  flex: 0 0 200px;
  max-width: 220px;
}
main.news-page .news-thumb-placeholder {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: #4b5563;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
main.news-page .news-thumb-placeholder .news-thumb-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  margin-bottom: 4px;
}

/* 본문 영역 */
main.news-page .news-body {
  flex: 1;
  min-width: 220px;
}
main.news-page .news-body h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
}
main.news-page .news-body .meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
main.news-page .news-body .meta .news-source {
  font-weight: 500;
}
main.news-page .news-body p {
  margin-bottom: 6px;
}

/* Coming Soon 뱃지 */
main.news-page .news-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* 모바일 대응 */
@media (max-width: 767px) {
  main.news-page .news-card {
    padding: 14px;
  }
  main.news-page .news-thumb {
    flex: 0 0 100%;
    max-width: 100%;
  }
  main.news-page .news-thumb-placeholder {
    margin-bottom: 8px;
  }
}


/* =========================================
   공통: Navigation Pills (탭 메뉴) - Form 페이지 전용
   ========================================= */
/* form 페이지에서만 사용되는 탭 메뉴 스타일 (org-nav-tabs와 다른 스타일) */
main.form-page .form-nav-tabs > li > a {
  border-radius: var(--radius-full);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  color: var(--color-gray-700);
}

main.form-page .form-nav-tabs > li.active > a {
  background: var(--color-primary);
  color: var(--color-text-white) !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* =========================================
   공통: Card Components
   ========================================= */
/* 여러 페이지에서 공통으로 사용되는 카드 스타일 */
main.edu-page .edu-schedule-card,
main.edu-page .edu-table-card,
main.edu-page .edu-form-card,
main.edu-page .edu-info-card,
main.race-rules-page .year-menu-card,
main.race-rules-page .rules-toc-card,
main.race-rules-page .rule-block,
main.form-page .form-section-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-xl);
}

/* Learn 페이지 section-card는 별도 스타일 적용 */
main.learn-page .section-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 28px 30px 32px;
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

main.learn-page .section-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

main.edu-page .edu-schedule-card,
main.edu-page .edu-table-card {
  padding: 20px 22px;
  margin-bottom: 26px;
  width: 100%;
  box-sizing: border-box;
}

main.edu-page .edu-form-card {
  padding: 22px var(--spacing-lg);
  margin-bottom: 24px;
}

main.edu-page .edu-info-card {
  background: var(--bg-gray-lighter);
  padding: 18px 20px;
  margin-top: 28px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

main.race-rules-page .year-menu-card {
  padding: var(--spacing-md) 18px;
  margin-bottom: 20px;
}

main.race-rules-page .rules-toc-card {
  background: var(--bg-gray-lighter);
  padding: var(--spacing-md) 18px;
  margin-bottom: 24px;
}

main.race-rules-page .rule-block {
  padding: 18px 20px;
  margin-bottom: 26px;
}

main.form-page .form-section-card {
  border-radius: 10px;
  padding: var(--spacing-lg) var(--spacing-lg) 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* =========================================
   공통: CTA Box (Call to Action)
   ========================================= */
/* 여러 페이지에서 공통으로 사용되는 CTA 박스 스타일 */
main.join-page .join-cta-box,
main.edu-page .edu-cta-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  color: var(--color-gray-200);
  border-radius: var(--radius-2xl);
  padding: 22px var(--spacing-lg);
  box-shadow: var(--shadow-2xl);
}

main.join-page .join-cta-box {
  margin-top: 20px;
}

main.edu-page .edu-cta-box {
  margin: 10px 0 var(--spacing-xl);
  width: 100%;
  box-sizing: border-box;
}

main.join-page .join-cta-box p,
main.edu-page .edu-cta-box p {
  margin-bottom: 10px;
}

main.join-page .join-cta-box .btn,
main.edu-page .edu-cta-box .btn {
  margin-top: var(--spacing-sm);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

/* =========================================
   Learn Page Custom Styles
   ========================================= */
main.learn-page .learn-section {
  padding-top: 20px;
  padding-bottom: 30px;
}

/* 목록 스타일 개선 */
main.learn-page .section-card ul {
  padding-left: 22px;
  margin-top: 12px;
  margin-bottom: 16px;
}

main.learn-page .section-card ul li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: #475569;
}

main.learn-page .section-card ul li strong {
  color: #1e293b;
  font-weight: 600;
}

/* 강조 박스 (alert 개선 버전) */
main.learn-page .learn-highlight {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 20px 24px;
  border-radius: 10px;
  border-left: 4px solid #0ea5e9;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  color: #0c4a6e;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

main.learn-page .learn-highlight a {
  font-weight: 600;
  color: #0369a1;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 105, 161, 0.3);
  transition: all 0.2s ease;
}

main.learn-page .learn-highlight a:hover {
  color: #075985;
  border-bottom-color: #075985;
}

/* 페이지 제목 */
main.learn-page .section-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  line-height: 1.3;
}

main.learn-page .section-card .page-header h2 {
  margin-bottom: 12px;
}

/* 소제목 */
main.learn-page .section-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 14px;
  color: #334155;
  line-height: 1.4;
}

main.learn-page .section-card h3:first-child {
  margin-top: 0;
}

/* 본문 스타일 */
main.learn-page .section-card p {
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

main.learn-page .section-card p:last-child {
  margin-bottom: 0;
}

/* =========================================
   Learn > Courses Page Styles
   ========================================= */

/* 섹션 여백 */
main.learn-page .courses-section {
  padding-top: 20px;
  padding-bottom: 30px;
}

/* 페이지 헤더 */
main.learn-page .courses-section .page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

main.learn-page .courses-section .page-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

main.learn-page .courses-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 24px;
}

main.learn-page .courses-section hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 32px 0;
}

/* Alert 스타일 개선 */
main.learn-page .courses-section .alert {
  border-radius: 10px;
  padding: 20px 24px;
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

main.learn-page .courses-section .alert strong {
  color: #075985;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* 개별 코스 카드 */
main.learn-page .course-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 30px 32px;
  margin-bottom: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

main.learn-page .course-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

/* 카드 헤더 영역: 제목 + 태그 */
main.learn-page .course-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

main.learn-page .course-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  line-height: 1.3;
  flex: 1;
}

/* 코스 타입 태그 */
main.learn-page .course-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

main.learn-page .course-tag--uni {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.08));
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

main.learn-page .course-tag--blog {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.08));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

main.learn-page .course-tag--repo {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.08));
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

/* 메타 정보 (교수명, 작성자 등) */
main.learn-page .course-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.7;
}

main.learn-page .course-meta strong {
  font-weight: 600;
  color: #334155;
}

/* 본문 스타일 */
main.learn-page .course-card p {
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

main.learn-page .course-card p:last-child {
  margin-bottom: 0;
}

/* 링크 블럭 간 여백 */
main.learn-page .course-links {
  margin: 18px 0 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
}

main.learn-page .course-links p {
  margin-bottom: 8px;
}

main.learn-page .course-links p:last-child {
  margin-bottom: 0;
}

main.learn-page .course-links strong {
  color: #1e293b;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

main.learn-page .course-links a {
  color: #0ea5e9;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

main.learn-page .course-links a:hover {
  color: #0284c7;
  text-decoration: underline;
}

/* 리스트 스타일 */
main.learn-page .course-card ul {
  padding-left: 22px;
  margin-top: 12px;
  margin-bottom: 16px;
}

main.learn-page .course-card ul li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #475569;
}

main.learn-page .course-card ul li code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

/* 하이라이트 박스 (설명 부분) */
main.learn-page .course-highlight {
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

main.learn-page .course-highlight--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-left-color: #2563eb;
}

main.learn-page .course-highlight--green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border-left-color: #16a34a;
}

main.learn-page .course-highlight--amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-left-color: #f59e0b;
}

main.learn-page .course-highlight strong {
  font-weight: 600;
  color: inherit;
}


/* =========================================
   Education Page Styles
   ========================================= */
main.edu-page .edu-section {
  padding-top: 20px;
  padding-bottom: 30px;
}

main.edu-page .edu-schedule-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

main.edu-page .edu-schedule-note {
  margin-top: 10px;
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* 테이블 스타일 통일 */
main.edu-page .edu-table {
  margin-bottom: 0;
}
main.edu-page .edu-table thead th {
  text-align: center;
  vertical-align: middle;
  background-color: #f9fafb;
  font-weight: 600;
}
main.edu-page .edu-table tbody td {
  vertical-align: middle;
}
main.edu-page .edu-table tbody td:first-child {
  text-align: center;
  font-weight: 600;
}

/* 섹션 설명 텍스트 폭과 간격 */
main.edu-page .section-text {
  max-width: 860px;
  margin-top: 8px;
  margin-bottom: 16px;
}


/* =========================================
   Education Application Page Styles
   ========================================= */

main.edu-page .edu-apply-section {
  padding-top: 32px;
  padding-bottom: 40px;
}

main.edu-page .edu-form-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

main.edu-page .edu-form-card p {
  color: var(--color-gray-600);
}
main.edu-page .edu-info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}
main.edu-page .edu-info-card ul {
  padding-left: 18px;
  margin-bottom: 10px;
}
main.edu-page .edu-info-card li {
  margin-bottom: 6px;
}
main.edu-page .edu-info-card p {
  font-size: 0.9em;
  color: #6b7280;
}


/* =========================================
   Race Rules Page Styles
   ========================================= */

main.race-rules-page .year-menu-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}
main.race-rules-page .year-menu-card .nav-stacked > li > a {
  padding: 6px 10px;
}
main.race-rules-page .year-menu-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* 내용 영역 공통 카드 느낌 */
main.race-rules-page .rules-main-section {
  padding-bottom: 40px;
}

/* TOC 카드 */
main.race-rules-page .rules-toc-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
}
main.race-rules-page .rules-toc-card ol {
  margin-bottom: 0;
}

/* 규칙 섹션 블록 */
main.race-rules-page .rule-block {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  margin-bottom: 26px;
}
main.race-rules-page .rules-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}

/* 강조 박스 (알림 등) */
main.race-rules-page .note-box {
  margin-top: 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 14px;
}

/* 그림/캡션 스타일 */
main.race-rules-page .rule-figure {
  margin: 18px auto;
  text-align: center;
}
main.race-rules-page .rule-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 66%;
  height: auto;
}
main.race-rules-page .rule-figure-caption {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

/* 푸터 */
main.race-rules-page .rules-footer {
  margin: 20px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
}

/* =========================================
   Race Events Page (Events 리스트 공통 스타일)
   ========================================= */

/* 섹션 공통 */
main.race-events-page .race-page-container {
  padding-bottom: 40px;
}

main.race-events-page .race-section {
  margin-bottom: 40px;
}

main.race-events-page .race-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

main.race-events-page .race-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 12px;
}

/* 카드 그리드 간격 정리 */
/* =========================================
   Race Events - Grid Layouts
   ========================================= */
/* Upcoming Events 그리드 - CSS Grid로 개선 */
main.race-events-page .race-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

main.race-events-page .race-cards-grid > [class*="col-"] {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Past Events 그리드 - CSS Grid로 개선 */
main.race-events-page .race-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

main.race-events-page .race-tags-grid > [class*="col-"] {
  width: 100%;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  main.race-events-page .race-cards-grid,
  main.race-events-page .race-tags-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 구분선 */
main.race-events-page .race-divider {
  margin: 10px 0 30px;
}

/* =========================================
   공통: Application Form / Join Form 페이지
   ========================================= */
main.form-page .form-nav-tabs {
  margin: 5px 0 20px;
}

/* 본문 컨테이너 */
main.form-page .form-container {
  padding-bottom: 40px;
}

/* 안내 문구 */
main.form-page .form-note {
  max-width: 860px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* 섹션 카드 */
main.form-page .form-section {
  margin-top: 20px;
}

main.form-page .form-section-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 24px 24px 28px;
}

/* 소제목 */
main.form-page .form-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 8px;
}

/* 구분선 */
main.form-page .form-section-card hr {
  margin: 8px 0 18px;
}

/* 개인정보 동의 */
main.form-page .form-consent {
  margin-top: 6px;
  font-size: 13px;
}

/* 제출 버튼 */
main.form-page .form-submit-area {
  margin-top: 28px;
}

/* 작은 헬프 텍스트 */
main.form-page .help-text {
  font-size: 12px;
  color: #6b7280;
}

/* 폼 스타일 개선 */
main.form-page .form-control {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  background-color: var(--bg-white);
}

main.form-page .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
  outline: none;
}

main.form-page .form-control::placeholder {
  color: var(--color-gray-400);
}

main.form-page select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

main.form-page textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

main.form-page label {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  display: block;
}

main.form-page label strong {
  font-weight: 700;
}

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

main.form-page .checkbox label {
  font-weight: 400;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding-left: 24px;
  position: relative;
}

main.form-page .checkbox input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

main.form-page .form-section-title {
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
  margin-top: 24px;
}

main.form-page .form-section-card hr {
  border: none;
  border-top: 2px solid var(--color-gray-200);
  margin: 12px 0 20px;
}

main.form-page .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: var(--font-size-md);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  transition: all var(--transition-base);
}

main.form-page .btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}

main.form-page .form-consent {
  background: var(--bg-gray-lighter);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

main.form-page .form-consent label {
  margin-bottom: 0;
  font-weight: 500;
}


/* =========================
   Organization Page
   ========================= */

/* =========================================
   공통: Organization Style Navigation Tabs
   ========================================= */
/* organization, build, learn, race, edu, join 페이지에서 공통으로 사용되는 탭 메뉴 스타일 */
.org-page .org-nav-tabs,
.build-page .org-nav-tabs,
.learn-page .org-nav-tabs,
.edu-page .org-nav-tabs,
.race-events-page .org-nav-tabs,
.race-rules-page .org-nav-tabs,
.events-page .org-nav-tabs,
.join-page .org-nav-tabs {
  margin-bottom: 15px;
}

.org-page .org-nav-tabs > li > a,
.build-page .org-nav-tabs > li > a,
.learn-page .org-nav-tabs > li > a,
.edu-page .org-nav-tabs > li > a,
.race-events-page .org-nav-tabs > li > a,
.race-rules-page .org-nav-tabs > li > a,
.events-page .org-nav-tabs > li > a,
.join-page .org-nav-tabs > li > a {
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.org-page .org-nav-tabs > li.active > a,
.build-page .org-nav-tabs > li.active > a,
.learn-page .org-nav-tabs > li.active > a,
.edu-page .org-nav-tabs > li.active > a,
.race-events-page .org-nav-tabs > li.active > a,
.race-rules-page .org-nav-tabs > li.active > a,
.events-page .org-nav-tabs > li.active > a,
.join-page .org-nav-tabs > li.active > a {
  background: var(--color-primary-dark);
  color: var(--color-text-white) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.org-page .org-layout {
  margin-top: 10px;
}

.org-page .org-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 28px 30px 32px;
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

.org-page .org-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.org-page .org-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
  line-height: 1.3;
}

.org-page .org-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.4;
}

.org-page .org-list {
  padding-left: 22px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.org-page .org-list li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #475569;
}

.org-page .org-list li strong {
  color: #1e293b;
  font-weight: 600;
}

.org-page .org-help-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-top: 12px;
}

.org-page .org-highlight {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #0c4a6e;
}

.org-page .org-highlight strong {
  color: #075985;
  font-weight: 700;
}

.org-page .org-highlight em {
  font-style: italic;
  color: #0369a1;
}

/* 규정 섹션 스타일 개선 */
.org-page .org-card hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 28px 0;
}

.org-page .org-card p strong {
  color: #1e293b;
  font-weight: 600;
}

.org-page .org-card p {
  line-height: 1.8;
  color: #475569;
  margin-bottom: 16px;
}

.org-page .org-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #334155;
}

.org-page .org-card h4 + p {
  margin-top: 0;
}

/* CI 섹션 */
.org-page .org-ci-section {
  text-align: left;
}

.org-page .org-ci-grid {
  margin-top: 24px;
}

.org-page .org-ci-item {
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.org-page .org-ci-item:hover {
  transform: translateY(-4px);
}

.org-page .org-ci-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.org-page .org-ci-item:hover .org-ci-thumb {
  border-color: #0ea5e9;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
}

.org-page .org-ci-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.org-page .org-ci-item:hover .org-ci-thumb img {
  transform: scale(1.05);
}

.org-page .org-ci-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

/* Sidebar 개선 */
.org-page .org-sidebar .org-panel {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  padding: 20px;
  margin-bottom: 24px;
}

.org-page .org-sidebar .org-panel h4 {
  font-weight: 700;
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.org-page .org-partner-list {
  list-style: none;
  padding-left: 0;
}

.org-page .org-partner-list li {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.org-page .org-partner-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.org-page .org-partner-list li strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.org-page .org-partner-list li .small {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  display: block;
}

/* Hero Banner Section */
.org-hero-banner {
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  background: #f9fafb;
}

.org-hero-banner img {
  width: 33.33%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.org-hero-banner:hover img {
  transform: scale(1.02);
}

/* Intro Header with Logo */
.org-intro-header,
.org-vision-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.org-logo-intro {
  flex-shrink: 0;
}

.org-logo-img {
  width: 120px;
  height: auto;
  display: block;
}

.org-intro-text {
  flex: 1;
}

.org-intro-text .org-section-title {
  margin-bottom: 0;
}

/* Member Image Section */
.org-member-image {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.org-member-image:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.org-member-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Vision Items */
.org-vision-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.org-vision-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.org-vision-image {
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.org-vision-image:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.org-vision-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .org-intro-header,
  .org-vision-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .org-logo-img {
    width: 100px;
  }

  .org-hero-banner {
    margin: 16px 0 24px;
  }

  .org-vision-item .row {
    flex-direction: column;
  }

  .org-vision-item .col-md-4 {
    order: -1;
    margin-bottom: 16px;
  }
}

/* ============================
   Research Page Base
=============================== */
.research-page {
  padding-bottom: 40px;
}

/* Section Styling */
.research-section {
  margin-bottom: 55px;
}

.research-section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 5px solid #007bff;
  padding-left: 12px;
}

.research-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
}

/* List Style */
.research-list {
  margin-top: 8px;
  margin-bottom: 15px;
}

.research-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Note Box (UPenn 링크 박스) */
.research-note-box {
  background: #f7f9fc;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 15px 0;
}

.research-note-box a {
  font-weight: 600;
}

/* Sub-lead text */
.research-lead-text {
  font-size: 15px;
  color: #666;
  margin-top: 15px;
}

/* ---------- 공통 페이지 레이아웃 ---------- */
.build-page,
.learn-page,
.rules-page,
.community-page,
.record-page,
.organization-page {
  padding-bottom: 40px;
}

/* ---------- Section 기본 ---------- */
.build-section,
.learn-section,
.rules-section {
  margin-top: 25px;
  margin-bottom: 40px;
}

/* ---------- Coming Soon 박스 ---------- */
.comingsoon-box {
  background: #f8f8f8;
  border-left: 6px solid #007bff;
  padding: 22px 25px;
  border-radius: 8px;
}

/* ---------- Section Title ---------- */
.section-title {
  font-weight: 700;
  margin-bottom: 20px;
}



/* =========================================
   Home Page Base
   ========================================= */


/* Hero 영역 (메인 슬라이더) 조금 더 읽기 좋게 정리 */
.home-hero {
  position: relative;
}

.home-hero .banner-content {
  padding: 40px 0 30px;
}

@media (max-width: 767px) {
  .home-hero .banner-content {
    padding: 25px 0 20px;
  }
}

/* 공통 섹션 레이아웃 */
.home-section {
  padding: 40px 0;
}

.home-section + .home-section {
  /* 섹션 끼리 너무 붙지 않게 */
  margin-top: 0;
}

.section-title {
  font-size: 1.9em;
  font-weight: 600;
  margin-bottom: 0.6em;
}

.section-text {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

/* =========================================
   Intro Section
   ========================================= */

.home-intro {
  padding-top: 35px;
  padding-bottom: 20px;
}

.home-intro .section-title {
  font-size: 1.7em;
}

.home-intro .section-text {
  max-width: 760px;
  margin: 0.6em auto 0;
}

/* =========================================
   Highlights Section (jumbotron)
   ========================================= */

.home-highlights .jumbotron {
  margin-bottom: 0;
  padding-top: 35px;
  padding-bottom: 35px;
}

.highlight-grid {
  margin-top: 25px;
}

.highlight-card {
  margin-bottom: 25px;
}

.highlight-card .h-caption h4 {
  font-size: 1.2em;
  margin-bottom: 0.6em;
}

.highlight-card .h-body p {
  font-size: 0.98em;
  line-height: 1.6;
}

/* 아이콘 원형 스타일이 기존 테마에 이미 있다면 겹치지 않음 */
.highlight-card .fa.circle {
  margin-bottom: 8px;
}

/* =========================================
   About Section
   ========================================= */

.home-about {
  padding-top: 40px;
  padding-bottom: 35px;
}

.home-about .heading {
  margin-bottom: 20px;
}

.home-about p {
  line-height: 1.7;
}

/* 아이콘 3열 블록 */
.home-about .iconColor h3 {
  font-size: 1.2em;
  margin-bottom: 0.4em;
}

.home-about .iconColor p {
  font-size: 0.97em;
}

/* =========================================
   Call To Action Section
   ========================================= */

.home-cta .jumbotron {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 25px 30px;
}

.home-cta p {
  margin-bottom: 0.8em;
}

.home-cta .btn.btn-primary.btn-large {
  min-width: 220px;
}

/* =========================================
   Testimonials Section
   ========================================= */

.home-testimonials {
  padding-top: 40px;
  padding-bottom: 45px;
}

.home-testimonials .section-title {
  margin-bottom: 25px;
}

#quote-carousel {
  margin-top: 15px;
}

#quote-carousel .carousel-indicators {
  bottom: -30px;
}

#quote-carousel .carousel-indicators li {
  border-color: #999;
}

#quote-carousel .carousel-indicators .active {
  background-color: #555;
}

#quote-carousel blockquote {
  border-left: none;
  margin: 0;
}

#quote-carousel img.img-circle {
  object-fit: cover;
}

/* =========================================
   Social Section
   ========================================= */

.home-social {
  padding: 20px 0 30px;
  background: #f5f5f5;
}

.home-social .wrapper {
  padding-top: 5px;
}

/* =========================================
   Responsive Tweaks
   ========================================= */

@media (max-width: 767px) {
  .section-title {
    font-size: 1.5em;
  }

  .home-highlights .jumbotron {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .home-cta .jumbotron {
    padding: 20px 18px;
  }

  .home-testimonials {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* =========================================
   Search Functionality
   ========================================= */
.navbar-form {
  margin: 8px 15px;
  padding: 0;
  /* 애니메이션을 위한 기본 스타일 */
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* 검색 폼이 표시될 때 */
.navbar-form.show {
  max-height: 100px;
  opacity: 1;
  margin: 8px 15px;
}

.navbar-form .form-group {
  margin: 0;
}

.navbar-form .form-control {
  width: 200px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 15px;
  transition: all 0.2s ease;
}

.navbar-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.navbar-form .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Search toggle button next to logo */
.navbar-search-toggle {
  display: inline-block;
  padding: 15px 10px;
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
  vertical-align: middle;
  line-height: 20px;
  transition: color var(--transition-base);
}

.navbar-search-toggle:hover,
.navbar-search-toggle:focus {
  color: #0ecfec;
  background: transparent;
  text-decoration: none;
}

.navbar-search-toggle .fa-search {
  font-size: 18px;
}

/* Search form next to logo */
.navbar-search-form {
  margin-left: 10px;
  margin-top: 8px;
}

.navbar-search-form .form-control {
  width: 250px;
}

/* Legacy search-toggle (for backward compatibility) */
.search-toggle {
  position: relative;
}

.search-toggle a {
  padding: 15px;
  color: #fff;
  text-decoration: none;
}

.search-toggle a:hover,
.search-toggle a:focus {
  color: #0ecfec;
  background: transparent;
}

.search-toggle .fa-search {
  font-size: 16px;
}

/* Search dropdown form (돋보기 아래에 표시) */
.navbar-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #222;
  border: none;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  padding: 15px;
  min-width: 300px;
  z-index: 1000;
  margin-top: 5px;
}

.navbar-search-dropdown .form-group {
  margin-bottom: 0;
}

.navbar-search-dropdown .form-control {
  width: 100%;
  background-color: #333;
  border: 1px solid #444;
  color: #fff;
  padding: 8px 12px;
}

.navbar-search-dropdown .form-control:focus {
  background-color: #444;
  border-color: #0ecfec;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(14, 207, 236, 0.2);
}

.navbar-search-dropdown .form-control::placeholder {
  color: #999;
}

@media (max-width: 767px) {
  .navbar-search-toggle {
    margin-left: 5px;
    padding: 15px 5px;
  }
  
  .navbar-search-form {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  
  .navbar-search-form .form-control {
    width: 100%;
  }
  
  /* 모바일에서 검색 드롭다운 */
  .navbar-search-dropdown {
    right: 0;
    left: 0;
    min-width: auto;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
  }
}

/* =========================================
   Dropdown Menu Styling
   ========================================= */
.navbar-nav .dropdown-menu {
  background-color: #222;
  border: none;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  min-width: 200px;
  padding: 5px 0;
}

/* Right-aligned dropdown menus - 오른쪽 끝 정렬 */
.navbar-nav .dropdown-menu-right {
  right: 0 !important;
  left: auto !important;
  transform: none;
}

/* 드롭다운 메뉴가 부모 요소의 오른쪽 끝에 정확히 맞도록 */
.navbar-nav > .dropdown > .dropdown-menu-right {
  right: 0 !important;
  left: auto !important;
}

.navbar-nav .dropdown-menu > li > a {
  color: #fff;
  padding: 10px 20px;
  transition: background-color var(--transition-base);
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
  background-color: #333;
  color: #0ecfec;
}

.navbar-nav .dropdown-menu > .active > a,
.navbar-nav .dropdown-menu > .active > a:hover,
.navbar-nav .dropdown-menu > .active > a:focus {
  background-color: #0ecfec;
  color: #fff;
}

.navbar-nav .dropdown-toggle {
  cursor: pointer;
}

.navbar-nav .dropdown-toggle .caret {
  margin-left: 5px;
  transition: transform var(--transition-base);
}

.navbar-nav .dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

/* Mobile dropdown adjustments */
@media (max-width: 767px) {
  /* 모바일에서 dropdown-menu를 자연스럽게 왼쪽 정렬 */
  .navbar-nav .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 0;
    /* dropdown-menu-right 클래스 오버라이드 */
    left: 0 !important;
    right: auto !important;
  }
  
  .navbar-nav .dropdown-menu > li > a {
    padding: 10px 20px 10px 35px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 14px;
  }
  
  .navbar-nav .dropdown-menu > li > a:hover,
  .navbar-nav .dropdown-menu > li > a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #0ecfec;
    padding-left: 40px;
  }
  
  .navbar-nav .dropdown-menu > .active > a,
  .navbar-nav .dropdown-menu > .active > a:hover,
  .navbar-nav .dropdown-menu > .active > a:focus {
    background-color: rgba(14, 207, 236, 0.2);
    color: #0ecfec;
  }
  
  /* 드롭다운 토글 아이콘 스타일 */
  .navbar-nav .dropdown-toggle .caret {
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  .navbar-nav .dropdown.open .dropdown-toggle .caret {
    transform: rotate(180deg);
  }
  
  /* 드롭다운 메뉴 항목에 화살표 아이콘 추가 (선택사항) */
  .navbar-nav .dropdown-menu > li > a::before {
    content: "→";
    margin-right: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
  }
  
  .navbar-nav .dropdown-menu > li > a:hover::before {
    opacity: 1;
    margin-right: 12px;
  }
}

#search-results-modal .search-result-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

#search-results-modal .search-result-item:hover {
  background-color: #f5f5f5;
}

#search-results-modal .search-result-item:last-child {
  border-bottom: none;
}

#search-results-modal .search-result-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1d4ed8;
}

#search-results-modal .search-result-title a {
  color: #1d4ed8;
  text-decoration: none;
}

#search-results-modal .search-result-title a:hover {
  text-decoration: underline;
}

#search-results-modal .search-result-url {
  font-size: 12px;
  color: #22c55e;
  margin-bottom: 8px;
}

#search-results-modal .search-result-snippet {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

#search-results-modal .search-highlight {
  background-color: #fef08a;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

#search-results-modal .no-results {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

@media (max-width: 767px) {
  /* 모바일에서 navbar-right 클래스 오버라이드 */
  .navbar-form.navbar-right {
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  
  /* 검색 폼 모바일 레이아웃 개선 */
  .navbar-form {
    width: 100%;
    margin: 0;
    padding: 10px 15px;
    /* collapsed 메뉴 상단에 배치 */
    order: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  /* 검색 폼이 표시될 때 모바일 스타일 */
  .navbar-form.show {
    max-height: 80px;
    opacity: 1;
    margin: 0;
    padding: 10px 15px;
  }
  
  .navbar-form .form-group {
    width: 100%;
    margin: 0;
  }
  
  .navbar-form .form-control {
    width: 100%;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px; /* iOS 줌 방지 */
  }
  
  .search-toggle {
    float: none;
    display: block;
  }
  
  /* 모바일에서 검색 폼이 collapsed 메뉴 내부에 있을 때 */
  .navbar-collapse .navbar-form {
    display: block;
    width: 100%;
  }
}

/* =========================================
   Car Build Documentation Layout
   ========================================= */
.car-build-layout {
  margin-top: 30px;
  margin-bottom: 40px;
}

/* 왼쪽 사이드바 */
.car-build-sidebar {
  padding-right: 20px;
}

.build-menu {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6e 100%);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 80px;
}

.build-menu h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.build-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.build-menu-list li {
  margin-bottom: 8px;
}

.build-menu-item {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  border-left: 3px solid transparent;
  position: relative;
}

.build-menu-item:hover,
.build-menu-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-left-color: #0ecfec;
  padding-left: 20px;
}

.build-menu-list li.active .build-menu-item,
.build-menu-item.active {
  background-color: rgba(14, 207, 236, 0.2);
  color: #0ecfec;
  border-left-color: #0ecfec;
  font-weight: 600;
}

/* 계층별 스타일 */
.build-menu-l1 {
  font-weight: 600;
  font-size: 15px;
}

.build-menu-l2 {
  font-weight: 400;
  font-size: 13px;
  padding-left: 32px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* 하위 메뉴 토글 버튼 */
.build-menu-toggle {
  cursor: pointer;
  user-select: none;
}

.build-menu-arrow {
  float: right;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.build-menu-parent.open .build-menu-arrow {
  transform: rotate(0deg);
}

.build-menu-parent.open .build-menu-arrow i.fa-chevron-down {
  transform: rotate(180deg);
}

/* 하위 메뉴 */
.build-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 6px 6px;
}

.build-submenu.open {
  max-height: 1000px;
}

.build-submenu li {
  margin: 0;
}

.build-submenu .build-menu-item {
  border-left: 2px solid transparent;
  margin-left: 0;
}

.build-submenu .build-menu-item:hover {
  border-left-color: #0ecfec;
  background-color: rgba(255, 255, 255, 0.08);
}

.build-submenu .build-menu-item.active {
  border-left-color: #0ecfec;
  background-color: rgba(14, 207, 236, 0.15);
}

/* DEPRECATED 메뉴 스타일 */
.build-menu-deprecated {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

.build-menu-deprecated:hover {
  color: rgba(255, 200, 0, 0.8) !important;
}

/* 오른쪽 메인 콘텐츠 */
.car-build-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 500px;
}

.build-content-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.build-content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.build-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0ecfec;
}

.build-content-body {
  line-height: 1.8;
  color: #334155;
}

.build-content-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 30px;
  margin-bottom: 15px;
}

.build-content-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-top: 25px;
  margin-bottom: 12px;
}

.build-content-body ul,
.build-content-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.build-content-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.build-content-body .lead {
  font-size: 18px;
  color: #475569;
  margin-bottom: 25px;
}

/* 모바일 반응형 */
@media (max-width: 767px) {
  .car-build-sidebar {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .build-menu {
    position: static;
    border-radius: 8px;
  }
  
  .car-build-content {
    padding: 20px 15px;
  }
  
  .build-section-title {
    font-size: 24px;
  }
}

/* =========================================
   BOM (Bill of Materials) Page
   ========================================= */
.bom-page {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bom-supplier-tabs {
  border-bottom: 2px solid #e5e7eb;
}

.bom-supplier-tabs > li > a {
  color: #64748b;
  font-weight: 500;
  padding: 12px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.bom-supplier-tabs > li > a:hover {
  background-color: #f8fafc;
  color: #1e293b;
  border-bottom-color: #cbd5e1;
}

.bom-supplier-tabs > li.active > a,
.bom-supplier-tabs > li.active > a:hover,
.bom-supplier-tabs > li.active > a:focus {
  color: #0ecfec;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid #0ecfec;
  font-weight: 600;
}

.bom-content {
  margin-top: 20px;
  min-height: 400px;
}

.supplier-content {
  padding: 20px 0;
}

.supplier-content h3 {
  color: #1e293b;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #0ecfec;
}

.supplier-content .table {
  margin-bottom: 0;
}

.supplier-content .table thead {
  background-color: #f8fafc;
}

.supplier-content .table thead th {
  font-weight: 600;
  color: #1e293b;
  border-bottom: 2px solid #e5e7eb;
}

.supplier-content .table tbody tr:hover {
  background-color: #f8fafc;
}

/* =========================================
   Breadcrumb Navigation
   ========================================= */
.breadcrumb-nav {
  background-color: var(--bg-gray-light);
  padding: 4px 0;
  border-bottom: 1px solid var(--color-gray-200);
  margin-top: 0; /* 네비게이션 바 바로 아래 */
}

.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.breadcrumb > li {
  display: inline-block;
}

.breadcrumb > li + li:before {
  content: "/\00a0";
  padding: 0 8px;
  color: var(--color-gray-500);
}

.breadcrumb > li > a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb > li > a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.breadcrumb > li.active {
  color: var(--color-text-secondary);
}

.breadcrumb > li.active a {
  color: var(--color-text-secondary);
  pointer-events: none;
  cursor: default;
}

@media (max-width: 767px) {
  .breadcrumb-nav {
    padding: 8px 0;
    font-size: 12px;
  }
  
  .breadcrumb > li + li:before {
    padding: 0 5px;
  }
}

/* =========================================
   서브 탭 (Organization / Build 공통 스타일)
   ========================================= */
.subnav-tabs {
  margin: 15px 0 25px;
  padding-left: 0;
  border: none;
  background: transparent;
  display: flex;
  gap: 18px;
}

/* li 기본 float 제거 (Bootstrap override) */
.subnav-tabs > li {
  float: none;
}

/* 기본 탭 모양: 텍스트만 보이는 형태 */
.subnav-tabs > li > a {
  border-radius: 999px;      /* 둥근 알약 모양 */
  padding: 8px 18px;
  font-weight: 600;
  background: transparent;
  color: #444;
  border: none;
}

/* 호버 시 살짝 강조 */
.subnav-tabs > li > a:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: #222;
}

/* 활성 탭: 진한 네이비 컬러 알약 + 흰색 텍스트 */
.subnav-tabs > li.active > a,
.subnav-tabs > li.active > a:hover,
.subnav-tabs > li.active > a:focus {
  background: #111827;       /* 필요하면 브랜드 컬러로 조정 */
  color: #fff !important;
  border: none;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.3);
}
