/* Basic responsive styles for the sample homepage */
:root{
  --bg:#f7f7fb;
  --accent:#0b5fff;
  --text:#222;
}
*{box-sizing:border-box}
html, body{overflow-x:hidden;width:100%;max-width:100vw}
body{margin:0;padding:0;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", Arial; color:var(--text); background:var(--bg)}
.container{max-width:1400px;margin:0 auto;padding:1rem 2rem}
/* contact-section 은 페이지마다 레이아웃이 달라 inline 스타일로 제어하고,
   전역에서는 기본 여백만 둡니다. */
.contact-section{
  padding:3rem 0;
}
.site-header{background:transparent;color:#fff;padding:0;position:absolute;top:0;left:0;right:0;z-index:1000}
.header-container{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:0 2rem}
.header-left{display:flex;align-items:center;gap:1rem}
.logo-link{display:block;text-decoration:none}
.logo-image-img{height:80px;width:auto;display:block;cursor:pointer}
.logo-image{font-size:2rem;color:#fff;text-decoration:none}
.logo-placeholder{display:inline-block;cursor:pointer}
.brand-name{font-size:1.4rem;font-weight:700;font-style:italic;color:#fff}
.brand-subtitle-header{font-size:0.65rem;letter-spacing:0.3em;color:#fff;opacity:0.9}
.header-nav{display:flex;gap:2rem;flex:1;justify-content:center}
.header-nav a{color:#fff;text-decoration:none;font-size:0.95rem;font-weight:500}
.header-nav a:hover{opacity:0.8}
.header-right{display:flex;align-items:center;gap:1.5rem}
.lang-btn-header{background:transparent;border:1px solid rgba(255,255,255,0.5);color:#fff;padding:0.3rem 0.8rem;border-radius:4px;cursor:pointer;font-size:0.85rem}
.lang-btn-header:hover{background:rgba(255,255,255,0.1)}
.social-icons{display:flex;gap:0.8rem;align-items:center}
.social-link{color:#fff;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background 0.2s}
.social-link:hover{background:rgba(255,255,255,0.15)}
.social-link.instagram svg{color:#E4405F}
.social-link.facebook svg{color:#1877F2}
.social-link.youtube svg{color:#FF0000}
.social-link.twitter svg{color:#1DA1F2}
.social-link.discord svg{color:#5865F2}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:1rem}
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: inherit;
}

.nav a{margin-left:1rem;color:var(--text);text-decoration:none}
.hero{padding:2rem 0;background:linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);text-align:center}
.hero h2{margin:0 0 0.5rem;font-size:1.5rem}
.hero p{margin:0 0 3rem;color:#444}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:.6rem 1rem;border-radius:6px;text-decoration:none}
.section{padding:2rem 0}
.features{list-style:none;padding:0;display:flex;gap:1rem}
.features li{background:#fff;padding:1rem;border-radius:8px;flex:1;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.site-footer{padding:2rem 0;color:#666;font-size:.9rem;text-align:center;background:#f8f8f8}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.mobile-nav a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: #0b5fff;
}

.mobile-social {
  display: none;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.mobile-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-social .social-link:hover {
  transform: translateY(-3px);
}

.mobile-social .instagram {
  color: #E4405F;
}

.mobile-social .facebook {
  color: #1877F2;
}

.mobile-social .youtube {
  color: #FF0000;
}

.mobile-social .twitter {
  color: #1DA1F2;
}

.mobile-social .discord {
  color: #5865F2;
}

@media(max-width:720px){
  .features{flex-direction:column}
  .header-nav{display:none}
}

/* Banner */
.banner{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:500px;
  display:flex;
  align-items:center;
  color:#fff;
  position:relative;
  margin-top:0;
  padding-top:100px;
  padding-bottom:5rem;
}
.banner::before{
  display:none;
}
.banner .container{position:relative;z-index:2;text-align:center}
.banner .banner-subtitle{
  font-size:clamp(0.9rem, 2vw, 1.2rem);
  font-weight:400;
  letter-spacing:0.1em;
  margin-bottom:1rem;
  opacity:0.95;
  text-transform:uppercase
}
.banner .banner-title{
  font-size:clamp(3rem, 8vw, 7rem);
  font-weight:700;
  margin:0 0 2rem 0;
  line-height:1.1;
  letter-spacing:0.02em;
  color:#fff
}
.banner .banner-description{
  font-size:clamp(1rem, 2vw, 1.3rem);
  line-height:1.6;
  margin:0 auto 2rem auto;
  max-width:900px;
  opacity:0.95;
  font-weight:400;
  color:#fff
}
/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }
.sub-nav .tab-link.active {
/* Tab content */
.tab-content{display:none}
.tab-content.active{display:block}
.sub-nav{display:flex;gap:1rem;margin-bottom:2rem;border-bottom:1px solid #e0e0e0}
.tab-link{padding:0.5rem 1rem;text-decoration:none;color:#666}
.sub-nav .tab-link.active{
  color:#000;
  border-bottom:2px solid var(--accent);
  font-weight:600
}

/* Notice Board */
}

.notice-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #0b5fff;
  gap: 1.5rem;
}

.notice-header h2 {
  font-size: 2rem;
  margin: 0;
  color: #222;
  text-align: center;
}

.notice-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-category {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
}

.search-input {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 250px;
}

.search-btn {
  padding: 0.6rem 1rem;
  background: #0b5fff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-btn:hover {
  background: #0947cc;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notice-table thead {
  background: #f8f9fa;
  border-top: 2px solid #0b5fff;
  border-bottom: 2px solid #e0e0e0;
}

.notice-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.notice-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #555;
}

.col-number {
  width: 10%;
}

.col-title {
  width: 55%;
  text-align: left !important;
  padding-left: 2rem !important;
}

.col-views {
  width: 15%;
}

.col-date {
  width: 20%;
}

.notice-row {
  cursor: pointer;
  transition: background 0.2s;
}

.notice-row:hover {
  background: #f8f9fa;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 2rem 0;
}

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  min-width: 40px;
  transition: all 0.2s;
}

.page-btn:hover {
  background: #f8f9fa;
  border-color: #0b5fff;
}

.page-btn.active {
  background: #0b5fff;
  color: white;
  border-color: #0b5fff;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  /* Header Mobile */
  .header-container {
    flex-direction: row;
    padding: 0.5rem 1rem;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }

  .header-left {
    flex: 0 0 auto;
  }

  .logo-image-img {
    height: 50px;
  }

  /* Hide navigation in header on mobile */
  .header-nav {
    display: none !important;
  }

  .header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  /* 모바일에서 후원하기 버튼 숨기기 */
  .donate-btn-header {
    display: none !important;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-link {
    width: 22px;
    height: 22px;
  }

  .lang-btn-header {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }

  /* Banner Mobile */
  .banner {
    min-height: 400px;
    padding-top: 100px;
    padding-bottom: 1rem;
  }

  .banner .banner-title {
    font-size: 2.5rem;
  }

  /* Mobile Navigation Below Banner */
  .mobile-nav {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .mobile-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  /* Mobile Social Icons Below Navigation */
  .mobile-social {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .mobile-social .social-link {
    width: 24px;
    height: 24px;
    color: #333;
    transition: color 0.3s;
  }

  .mobile-social .social-link:hover {
    color: #0066cc;
  }

  /* Container Mobile */
  .container {
    padding: 1rem;
  }

  .section {
    padding: 1rem 0;
  }

  /* About Page Mobile */
  main.container {
    padding-left: 1rem !important;
  }

  .contact-section {
    padding-left: 1rem !important;
  }

  /* Tab Navigation Mobile */
  .sub-nav, #about-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .tab-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Member Sub Navigation Mobile */
  .member-sub-nav, .maneuver-sub-nav {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .member-tab-link, .maneuver-tab-link {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  /* Team Overview Section Mobile */
  .about-section h2 {
    font-size: 1.8rem !important;
  }

  .about-section p {
    font-size: 1rem !important;
  }

  /* Flex Layouts Mobile */
  .about-section > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Images Mobile */
  .about-section img {
    max-width: 100% !important;
  }

  /* Member Cards Mobile */
  .member-card {
    max-width: 100% !important;
    padding: 1.5rem !important;
  }

  .member-card img {
    width: 120px !important;
    height: 120px !important;
  }

  .member-card h4 {
    font-size: 1.1rem !important;
  }

  /* Aircraft Section Mobile */
  #aircraft h3 {
    font-size: 1.5rem !important;
  }

  #aircraft p {
    font-size: 0.95rem !important;
  }

  /* Aircraft Features Mobile */
  #aircraft > div > div[style*="display:flex"]:last-child {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Table Mobile */
  table {
    font-size: 0.85rem !important;
  }

  table th, table td {
    padding: 0.5rem !important;
  }

  /* Maneuver Section Mobile */
  #maneuvers h4 {
    font-size: 1.2rem !important;
  }

  #maneuvers p {
    font-size: 0.9rem !important;
  }

  /* Image Gallery Grid - Keep 8 columns but smaller on mobile */
  #maneuvers div[style*="display:grid"] {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 0.3rem !important;
    max-width: 100% !important;
    padding: 0 0.5rem;
  }

  /* Main Image in Maneuver Mobile */
  #maneuvers img[style*="max-width:600px"] {
    max-width: 100% !important;
  }

  /* Notice Page Mobile */
  .notice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .notice-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-input {
    flex: 1;
    min-width: 150px;
  }

  .col-number,
  .col-views,
  .col-author {
    display: none;
  }

  .col-title {
    width: 70% !important;
    padding-left: 0.5rem !important;
  }

  .col-date {
    width: 30%;
  }

  .notice-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .notice-table th {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Notice Header Mobile */
  .notice-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch !important;
  }

  .notice-header h2 {
    font-size: 1.5rem;
  }

  .notice-search {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-category {
    flex: 1;
    min-width: 80px;
  }

  .search-input {
    flex: 2;
    min-width: 150px;
  }

  .search-btn {
    padding: 0.5rem 1rem;
  }

  /* Schedule Page Mobile */
  main.container[style*="padding-left: 7rem"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Pagination Mobile */
  .pagination {
    gap: 0.3rem;
  }

  .page-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  /* Footer Mobile */
  .site-footer {
    font-size: 0.8rem;
    padding: 1.5rem 0;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo-image-img {
    height: 45px;
  }

  .header-container {
    padding: 0.4rem 0.5rem;
  }

  .mobile-nav a {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }

  .banner {
    min-height: 400px;
    padding-top: 90px;
  }

  .banner .banner-title {
    font-size: 2rem;
  }

  #maneuvers div[style*="display:grid"] {
    gap: 0.2rem !important;
  }

  .about-section h2 {
    font-size: 1.5rem !important;
  }

  table {
    font-size: 0.75rem !important;
  }
}

/* Home Page Responsive */
@media (max-width: 1024px) {
  /* Social sections - stack vertically on tablets */
  #services div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #services .fb-page {
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* Home page sections */
  section[id="about"] h2 {
    font-size: 1.8rem !important;
    letter-spacing: 0.5rem !important;
  }

  /* Text + Image sections */
  section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* 모든 grid 레이아웃을 모바일에서 세로로 */
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Social sections mobile */
  #services > div > div {
    margin: 1rem !important;
  }

  #services .fb-page {
    width: 100% !important;
  }

  .instagram-media {
    min-width: 280px !important;
  }

  /* Contact section */
  .contact-section h3 {
    font-size: 1.3rem !important;
  }

  .contact-section p {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  section[id="about"] h2 {
    font-size: 1.5rem !important;
    letter-spacing: 0.3rem !important;
  }

  #services > div > div {
    border-radius: 8px !important;
  }

  #services > div > div > div:first-child {
    padding: 1rem !important;
  }

  #services > div > div > div:first-child h3 {
    font-size: 1.2rem !important;
  }

  #services > div > div > div:last-child {
    padding: 1rem !important;
    max-height: 500px !important;
  }
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 50px;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    max-height: 80vh;
  }
  
  .modal-close {
    top: 10px;
    right: 20px;
    font-size: 40px;
  }
}
