/*
Theme Name: wrtnax Mobile Styles
Description: Mobile responsive styles for wrtnax Theme
Author: Manual Graphics
Version: 1.0
*/

@media (max-width: 767.99px) {
  /* Base Settings */
  html {
    font-size: 52.5%;
  }

  body {
    min-width: 0;
    font-size: var(--fs16);
  }

  /* Display Utilities */
  .po {
    display: none;
  }

  .mo {
    display: block;
  }

  /* Layout */
  .lmt {
    width: calc(100% - 40px);
  }

  /* Flexbox */
  .fx {
    gap: 12px;
  }

  .fx2 > *,
  .fxm2 {
    width: calc(50% - 6px);
  }

  .fx3 > * {
    width: calc(50% - 6px);
  }

  .fx4 > * {
    width: calc(50% - 6px);
  }

  .fxm {
    width: 100%;
  }

  /* Custom Cursor - Disabled on Mobile */
  body,
  body * {
    cursor: auto;
  }

  body.use-custom-cursor {
    cursor: auto;
  }

  body.use-custom-cursor * {
    cursor: auto;
  }

  .custom-cursor {
    display: none;
  }

  /* Typography */
  .post {
    font-size: var(--fs16);
    line-height: 1.7;
  }

  /* Material Icons */
  .material-symbols-outlined {
    font-size: 24px;
  }

  .ico-arr {
    font-size: 20px;
  }

  /* Lists */
  .th-list {
    gap: 16px;
  }

  .th-list.related-grid {
    gap: 12px;
  }

  /* Cards */
  .post-card,
  .project-card,
  .related-card {
    padding: 16px;
  }

  /* Header */
  .site-header,
  .site-header.scrolled {
    padding: 8px 0;
    top: 0px;
    left: 0px;
    right: 0px;
  }

  .site-header .inner {
    width: calc(100% - 24px);
    gap: 0;
  }

  .site-logo img {
    height: 18px;
  }

  #btn-download {
    display: none;
  }

  /* Mobile Navigation Toggle */
  .nav-toggle {
    display: block !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--cp1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1101;
    margin-right: 0;
    margin-left: 12px;
  }

  .nav-toggle span {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cw);
    margin: 4px auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Navigation Overlay */
  #nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    right: -1%;
    left: auto;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    width: 101%;
    height: 100vh;
    pointer-events: none;
  }
  body.nav-open #nav-overlay {
    opacity: 1;
    transition: 0.2s;
  }

  /* Mobile Drawer Navigation */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -120%;
    width: 64%;
    max-width: 420px;
    height: 100vh;
    background: linear-gradient(
      135deg,
      rgba(209, 239, 236, 0.94),
      rgba(255, 255, 255, 0.9)
    );
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    padding: 20px 24px;
    transition: right 0.28s ease;
    z-index: 1100;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }

  body.nav-open .main-navigation {
    right: 0px;
    top: 0px;
  }

  .main-navigation .main-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-navigation .main-menu li a {
    font-size: var(--fs24);
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 0;
    color: var(--cp4);
  }

  .main-navigation .nav-extra {
    display: block;
    margin-top: 20px;
  }
  .section-title-wrap {
    margin-bottom: 60px;
  }

  #btn-download-m {
    display: flex !important;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(9, 236, 198, 0.2);
    padding: 8px 16px;
    color: var(--cg1);
    align-items: center;
    border-radius: 4px;
    background: linear-gradient(
      135deg,
      rgba(9, 236, 198, 0.4),
      rgba(9, 236, 198, 0.15)
    );
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
  }

  #btn-download-m .ico {
    font-size: 20px;
  }

  /* Hero Section */
  .hero-title {
    font-size: var(--fs40);
  }

  .hero-content .btn-cta {
    display: block !important;
  }
  /* Buttons */
  .btn-cta {
    margin-top: 32px;
    width: 100%;
  }
  .hero-content .btn-cta {
    width: 60%;
  }
  header .btn-cta {
    display: none !important;
  }

  .btn-cta a.cta {
    font-size: var(--fs18);
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  .cta-button {
    font-size: var(--fs16);
    width: auto;
  }

  /* Section Headers */
  .section-header {
    padding: 0 20px;
    box-sizing: border-box;
    margin-bottom: 36px;
  }

  .section-label {
    margin-bottom: 8px;
    font-size: var(--fs20);
  }

  .section-title-wrap .section-title {
    font-weight: 600;
    font-size: var(--fs24);
  }

  /* Triangle Section */
  .triangle-section {
    padding: 80px 20px 0px;
  }
  .triangle-content {
    padding-bottom: 40px;
  }
  .triangle-intro {
    font-size: 22px;
  }

  .triangle-circle {
    width: 120px;
    height: 120px;
    padding: 20px;
  }

  .triangle-items {
    width: 300px;
    height: 280px;
  }

  .triangle-left {
    left: 0;
  }

  .triangle-right {
    right: 0;
  }
  .triangle-circle h3 {
    font-size: var(--fs16);
    margin-bottom: 0;
  }
  .triangle-circle p {
    font-size: var(--fs18);
  }
  /* Card Lists */
  ul.card li {
    width: 100%;
    max-width: 100%;
    flex: auto;
    margin-top: 0 !important;
    aspect-ratio: 16 / 11;
  }

  ul.card li a h3 {
    font-size: var(--fs24);
    line-height: 1.3;
  }

  ul.card li article {
    padding: 24px;
  }

  ul.card li article p {
    font-size: var(--fs16);
  }

  ul.card li a span {
    font-size: var(--fs48);
    right: 22px;
    bottom: 20px;
  }

  ul.card li a {
    padding: 24px;
  }

  /* Review Section */
  .review-section .slick-slide {
    max-width: 340px;
    min-height: 430px;
    padding: 24px;
  }

  .review-text {
    font-size: var(--fs18);
  }

  .review-content {
    gap: 0;
  }

  .review-image img {
    width: 52px;
    height: 52px;
  }

  .slick-prev,
  .slick-next {
    top: 100% !important;
    transform: translate(-50%, 0);
    width: 44px !important;
    height: 44px !important;
  }

  .slick-prev {
    left: calc(50% - 50px) !important;
  }

  .slick-next {
    right: calc(50% - 50px) !important;
  }

  .slick-slide {
    padding: 0;
  }

  /* Education Section */
  .education-section {
    padding: 80px 20px;
  }

  .education-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .education-card {
    position: relative;
    box-sizing: border-box;
    padding: 24px 16px;
  }

  .education-card .card-icon {
    right: 16px;
    top: 24px;
    width: 56px;
    height: 56px;
  }

  .education-card .icon-shape {
    width: 100%;
    height: 100%;
  }

  .education-card .card-title {
    padding-bottom: 48px;
    line-height: 1.2;
    font-size: var(--fs28);
  }
  .card-content {
    gap: 16px;
  }

  .target-label,
  .curriculum-label,
  .target-text,
  .curriculum-list li {
    line-height: 1.45;
    font-weight: 500;
    font-size: var(--fs18);
  }

  .curriculum-list li::before {
    line-height: 24px;
  }

  /* Consulting Section */
  .consulting-tabs {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .tab-button {
    flex: auto;
    white-space: normal;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    border-radius: var(--rd2);
    font-size: var(--fs16);
    padding: 10px;
  }

  .consulting-video-container {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--rd2);
  }

  /* Agent Section */
  .agent-section {
    padding: 80px 20px;
  }
  .agent-card {
    padding: 24px 16px;
  }
  .agent-section {
    padding: 80px 20px;
  }

  .agent-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .agent-grid > *:last-child {
    grid-column: 1;
  }

  .accordion-item {
    padding: 20px;
  }

  .accordion-header {
    align-items: center;
  }
  .agent-card .card-icon {
    top: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
  }

  .agent-card .card-title {
    font-size: var(--fs20);
    padding-right: 70px;
    font-weight: 600;
  }

  .agent-card .card-description {
    font-size: var(--fs16);
  }
  .agent-card {
    margin-top: 0 !important;
  }

  .agent-card .card-icon {
    top: 24px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .agent-card .card-subtitle {
    font-size: var(--fs16);
  }

  .interview-container {
    height: 680px;
  }
  .interview-indicators {
    bottom: 36px;
  }
  .interview-content {
    padding: 40px 20px 80px;
    flex-direction: column;
  }
  .interview-text {
    width: 100%;
  }
  .interview-label {
    font-size: var(--fs20);
    margin-bottom: 0;
    text-align: center;
  }

  .text-ko {
    font-size: var(--fs18);
    line-height: 1.6;
  }

  .text-en {
    font-size: var(--fs13);
    line-height: 1.6;
  }

  .text-author {
    font-size: var(--fs13);
    margin-top: 24px;
  }

  .interview-gradient {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.3) 50%
    );
  }

  .tech-info h3 {
    font-size: var(--fs28);
  }
  .tech-info p {
    font-size: var(--fs20);
  }
  .accordion-header h4 {
    font-size: var(--fs24);
  }
  .accordion-content p {
    font-size: var(--fs20);
  }

  /* General Sections Padding */
  .review-section,
  .tech-section,
  .faq-section,
  .cta-section,
  .support-section,
  .solution-section {
    padding: 100px 20px 80px;
  }

  /* Solution Section */
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .solution-card {
    padding: 24px 16px;
  }
  .solution-card .card-title {
    font-size: var(--fs20);
    font-weight: 600;
  }
  .solution-card .card-subtitle,
  .solution-card .card-description {
    font-size: var(--fs16);
  }
  .solution-card .solution-card-link {
    margin-top: 24px;
  }

  /* CTA Section */
  .cta-background {
    width: 100%;
  }

  .cta-content {
    padding: 10vh 40px;
  }

  /* Support Section */
  .support-item {
    opacity: 1;
  }

  /* FAQ Section */
  .faq-item {
    margin-bottom: 12px;
    padding: 20px;
  }

  .faq-header {
    padding: 0;
    align-items: center;
  }

  .faq-header h3 {
    width: 100%;
    font-size: var(--fs20);
    font-weight: 600;
  }

  .faq-content li,
  .faq-content p,
  .faq-content a {
    font-size: var(--fs20);
  }

  /* Client Section */
  .client-section {
    padding: 10px 20px 80px;
  }
  .client-section ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .client-section li {
    padding: 0;
  }

  /* Footer */
  .site-footer {
    padding: 24px 12px;
  }

  .footer-logo img {
    height: 18px;
  }

  .footer-menu li a {
    font-size: var(--fs16);
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  .footer-content .footer-right {
    justify-content: flex-start;
    gap: 40px;
  }

  /* Back to Top Button */
  .to-top-btn {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }

  /* Modal */
  .mg-modal__dialog {
    margin: 3vh auto;
    width: min(720px, calc(100% - 78px));
  }

  .mg-modal textarea {
    height: 100px;
  }
  .mg-modal__close span {
    font-size: var(--fs24);
  }

  .mg-modal__header h3 {
    font-size: var(--fs20);
  }

  .mg-modal__header p {
    font-size: var(--fs13);
  }

  .mg-modal input[type="text"],
  .mg-modal input[type="email"],
  .mg-modal input[type="tel"],
  .mg-modal textarea {
    font-size: var(--fs16);
  }

  /* About Section */
  #about.about-section {
    padding: 80px 20px;
  }

  #about .about-timeline,
  #about .about-credentials,
  #about .about-solutions {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  #about .timeline-label h3,
  #about .credentials-label h3,
  #about .solutions-label h3 {
    font-size: var(--fs24);
  }

  #about .timeline-year .year {
    font-size: var(--fs20);
  }

  #about .timeline-item .month {
    font-size: var(--fs16);
  }

  #about .timeline-item p {
    font-size: var(--fs18);
  }

  #about .credential-tag {
    font-size: var(--fs16);
  }

  #about .credential-value {
    font-size: var(--fs32);
  }

  #about .solutions-column span {
    font-size: var(--fs18);
  }

  #about .timeline-list {
    gap: 40px;
  }

  #about .credentials-list {
    gap: 32px;
    column-gap: 0;
  }

  #about .solutions-list {
    gap: 24px;
  }

  .section-header .section-desc {
    font-size: var(--fs16);
  }
}
