@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ============================================================
   global-new.css — Prestige Solutions Shared Styles
   ============================================================ */

/* --- 1. CSS Variables --- */
:root {
  /* Brand */
  --primary-blue: #02a0e1;
  --primary-blue-dark: #0178B4;
  --primary-blue-light: #E8F6FD;
  --primary-gradient: linear-gradient(135deg, #02a0e1 0%, #0264C8 100%);

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(2, 100, 200, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(2, 100, 200, 0.15);
  --shadow-btn: 0 8px 24px rgba(2, 160, 225, 0.28);

  /* Neutral */
  --dark-bg: #11151c;
  --text-main: #222222;
  --text-dark: #1a1a1a;
  --text-gray: #777777;
  --bg-light: #f8f9fb;
}

/* --- 2. Body Reset --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-light);
  position: static;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 3. Layout Override (overrides style.css fixed 1200px width) --- */
.layout {
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* --- 4. Section Title & Divider --- */
.section_title { text-align: center; margin-bottom: 50px; }
.section_title h2 { font-size: 36px; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: -0.01em; }
.section_title p { font-size: 16px; color: var(--text-gray); margin-top: 15px; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.title_divider { width: 60px; height: 4px; background: var(--primary-blue); margin: 20px auto 0; border-radius: 2px; }

/* --- 5. Display Utilities --- */
.pc_only_element { display: block; }
.mobile_only_element { display: none; }
@media (max-width: 768px) {
  .pc_only_element { display: none !important; }
  .mobile_only_element { display: block !important; }
}

/* --- 6. Back to Top Button --- */
#back_to_top {
  position: fixed;
  bottom: 30px;
  right: 88px;
  width: 50px;
  height: 50px;
  background: rgba(2, 160, 225, 0.9);
  color: #fff;
  border: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: var(--shadow-btn);
  transition: 0.3s;
}
#back_to_top:hover { background: #02a0e1; transform: translateY(-5px); }
#back_to_top i { font-size: 24px; }
@media (max-width: 768px) {
  #back_to_top { bottom: max(16px, env(safe-area-inset-bottom)); right: 76px; width: 44px; height: 44px; }
}

/* ============================================================
   HEADER
   ============================================================ */
.web_head { width: 100%; background: transparent; position: relative; }
.main_navigation_bar {
  position: sticky; top: 0; z-index: 9999;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.main_navigation_bar.nav_scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}
.header_flex_container { display: flex; align-items: center; justify-content: space-between; height: 80px; position: relative; }
.header_logo img { max-height: 50px; width: auto; display: block; }
.breadcrumb, .crumbs, .current_location { display: none !important; }

/* PC Nav (≥992px) */
@media (min-width: 992px) {
  .nav_list { display: flex; list-style: none; margin: 0; padding: 0; height: 80px; }
  .nav_main_item { margin: 0 15px; position: relative; height: 80px; }
  .nav_main_item > a { line-height: 80px; display: block; color: #333; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; transition: color 0.25s; position: relative; }
  .nav_main_item > a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--primary-blue); transform: scaleX(0); transition: transform 0.25s ease; transform-origin: left; }
  .nav_main_item:hover > a,
  .nav_main_item.active > a { color: #02a0e1; }
  .nav_main_item:hover > a::after,
  .nav_main_item.active > a::after { transform: scaleX(1); }
  /* Vertical dropdown — left-aligned below nav item */
  .mega_menu_panel.adaptive_panel {
    position: absolute; top: 100%; left: 0; transform: none;
    width: 220px; min-width: 220px; max-width: 280px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2.5px solid var(--primary-blue);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: none; padding: 6px 0; z-index: 10000; white-space: normal;
  }
  /* Invisible bridge: prevents dropdown from closing while cursor moves from nav link down into panel */
  .mega_menu_panel::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; background: transparent; }
  .nav_has_mega:hover > .mega_menu_panel { display: block !important; }
  .mega_inner_flex { display: flex; flex-direction: column; align-items: stretch; }
  .mega_col { padding: 0; border-right: none; text-align: left; }
  .mega_col:not(:last-child) { border-bottom: 1px solid #f5f5f7; }
  .mega_title { display: block; font-weight: 700; color: #1a1a1a; font-size: 14px; padding: 11px 18px; margin-bottom: 0; text-decoration: none; transition: 0.15s; }
  .mega_title:hover { color: var(--primary-blue); background: var(--primary-blue-light); }
  .mega_sub_list { list-style: none; padding: 0 0 6px; margin: 0; display: flex; flex-direction: column; gap: 0; }
  .mega_sub_list li a { display: block; padding: 8px 18px 8px 30px; color: #555; font-size: 13px; text-decoration: none; border: none; border-radius: 0; background: none; transition: 0.15s; }
  .mega_sub_list li a:hover { color: var(--primary-blue); background: var(--primary-blue-light); }
  .mobile_toggle { display: none; }
}

/* Header right tools */
.header_right_tool { display: flex; align-items: center; gap: 8px; }

/* CTA button */
.header_cta_btn { display: inline-flex; align-items: center; padding: 10px 22px; background: var(--primary-gradient); color: #fff !important; font-weight: 700; font-size: 13px; border-radius: 50px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s; box-shadow: 0 4px 14px rgba(2,160,225,0.25); white-space: nowrap; }
.header_cta_btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2,160,225,0.4); }

/* Search — expands left as absolute overlay, never squeezes nav or CTA */
.header_search_box { position: relative; display: flex; align-items: center; }
.search_icon_btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; color: #666; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; z-index: 1; }
.search_icon_btn:hover, .header_search_box.is_open .search_icon_btn { color: var(--primary-blue); }
.search_expand_wrap { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; width: 0; overflow: hidden; opacity: 0; transition: width 0.35s ease, opacity 0.2s ease; pointer-events: none; }
.header_search_box.is_open .search_expand_wrap { width: 260px; opacity: 1; pointer-events: auto; }
.modern_search_input { width: 215px; height: 36px; border-radius: 18px 0 0 18px; border: 1.5px solid #e5e7eb; border-right: none; padding: 0 15px; background: #fff; outline: none; font-size: 13px; color: #333; box-sizing: border-box; flex-shrink: 0; }
.modern_search_input:focus { border-color: var(--primary-blue); }
.modern_search_btn { height: 36px; width: 36px; border-radius: 0 18px 18px 0; background: var(--primary-blue); border: none; color: #fff; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* Mobile Nav (≤991px) */
@media (max-width: 991px) {
  .header_flex_container { position: relative; display: flex; align-items: center; justify-content: space-between; }
  .header_logo img { max-height: 40px; }
  .header_search_box { display: none; }
  .header_cta_btn { display: none; }
  .mobile_toggle {
    display: block !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%);
    font-size: 26px;
    color: #333;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
  }
  .header_nav_menu {
    position: fixed; top: 60px; right: -100%; left: auto;
    width: 280px; height: calc(100vh - 60px);
    background: #fff; z-index: 10000;
    transition: right 0.3s ease; overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .header_nav_menu.active { right: 0; }
  .nav_list { flex-direction: column; padding: 20px 0; }
  .nav_main_item { height: auto; margin: 0; border-bottom: 1px solid #f5f5f5; }
  .nav_main_item > a { line-height: 50px; padding: 0 20px; text-transform: none; }
  .nav_main_item > a::after { display: none; }
  .mega_menu_panel.adaptive_panel { display: none; background: #f9f9f9; padding: 10px 20px; white-space: normal; box-shadow: none; border-top: none; }
  .nav_has_mega.is_open > .mega_menu_panel { display: block !important; }
  .mega_inner_flex { flex-direction: column; }
  .mega_col { padding: 10px 0; border-right: none; border-bottom: 1px dotted #eee; }
  .mega_sub_list { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
}

/* ============================================================
   INNER PAGE — HEADER (breadcrumb strip + title zone)
   The old washed-out grayscale image band carried no information
   and pushed content below the fold — removed site-wide here, so
   every inner page gains a clean, consistent header at once.
   ============================================================ */
.inner_hero { display: none; }

/* Breadcrumb — light full-width strip directly under the nav */
.breadcrumb_bar { background: #f4f6f9; border-bottom: 1px solid #e9edf2; padding: 12px 0; font-size: 12.5px; color: #98a1ad; }
.breadcrumb_bar a { color: #667080; text-decoration: none; transition: 0.2s; }
.breadcrumb_bar a:hover { color: var(--primary-blue); }
.breadcrumb_bar i { margin-right: 5px; color: #c3cad3; }

/* ============================================================
   INNER PAGE — SIDEBAR LAYOUT
   ============================================================ */
.inner_page_container { padding: 60px 0; display: flex; gap: 40px; }
.aside_sticky { width: 280px; flex-shrink: 0; position: sticky; top: 100px; height: fit-content; }
.main_content { flex: 1; min-width: 0; }

.page_intro { padding: 34px 0 30px; }
.page_intro h1 { margin: 0; color: var(--text-dark); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.page_intro h1::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--primary-blue); border-radius: 2px; }
.page_intro + .inner_page_container,
.page_intro + .page_container,
.page_intro + .contact_container,
.page_intro + .its_intro { padding-top: 26px; }
.page_intro + .its_services_sec { padding-top: 40px; }

@media (max-width: 991px) {
  .inner_page_container { padding: 25px 0; display: block; }
  .page_intro { padding: 24px 0 22px; }
  .page_intro h1 { font-size: 25px; }
  .page_intro + .inner_page_container,
  .page_intro + .page_container,
  .page_intro + .contact_container,
  .page_intro + .its_intro { padding-top: 20px; }
  .page_intro + .its_services_sec { padding-top: 32px; }
  .aside_sticky { display: none !important; }
  .main_content { width: 100% !important; }
}

/* --- Sidebar Widgets --- */
.side_widget_card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: var(--shadow-card); margin-bottom: 30px; border: 1px solid #f0f0f5; }
.side_tit { font-size: 18px; font-weight: 800; border-left: 4px solid var(--primary-blue); padding-left: 15px; margin-bottom: 20px; color: var(--text-dark); }
.side_nav_list { list-style: none; padding: 0; margin: 0; }
.side_nav_list > li { margin-bottom: 5px; }
.side_nav_list > li > a { display: block; padding: 12px 15px; color: #555; text-decoration: none; border-radius: 8px; transition: 0.3s; font-weight: 600; font-size: 14px; }
.side_nav_list > li:hover > a,
.side_nav_list > li.active > a { background: rgba(2, 160, 225, 0.08); color: var(--primary-blue); }

/* --- Pagination --- */
.pagination_wrap { margin-top: 50px; text-align: center; }
.pagination_wrap a,
.pagination_wrap span { display: inline-block; padding: 10px 18px; background: #fff; border: 1px solid #eee; border-radius: 6px; margin: 0 3px; color: #666; text-decoration: none; }
.pagination_wrap .current { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.web_footer { background: #0a0e17; color: #64748b; position: relative; z-index: 1; }

/* Main 4-column grid */
.foot_main { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1.5fr; gap: 60px; padding: 70px 0 50px; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Brand column */
.foot_logo { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.foot_logo span { color: #02a0e1; }
.foot_tagline { font-size: 14px; line-height: 1.75; color: #64748b; margin-bottom: 24px; max-width: 280px; }
.foot_socials { display: flex; gap: 10px; }
.p-sns { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 16px; transition: 0.3s; text-decoration: none; }
.p-sns:hover { background: #02a0e1; border-color: #02a0e1; color: #fff; transform: translateY(-3px); }

/* Nav columns */
.foot_col_title { font-size: 11px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 22px; }
.foot_nav_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot_nav_list a { font-size: 14px; color: #64748b; text-decoration: none; transition: 0.25s; display: inline-block; }
.foot_nav_list a:hover { color: #e2e8f0; padding-left: 4px; }

/* Contact list */
.foot_contact_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.foot_contact_list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #64748b; line-height: 1.5; }
.foot_contact_list i { color: #02a0e1; margin-top: 2px; flex-shrink: 0; width: 14px; text-align: center; }
.foot_contact_list a,
.foot_contact_list span { color: #64748b; text-decoration: none; transition: 0.25s; min-width: 0; overflow-wrap: anywhere; }
.foot_contact_list a:hover { color: #e2e8f0; }

/* Partners row */
.foot_partners_row { display: flex; align-items: center; gap: 25px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap; }
.partner_label { font-size: 10px; font-weight: 800; color: #94a3b8; letter-spacing: 2px; flex-shrink: 0; text-transform: uppercase; }
.foot_partner_links { display: flex; gap: 20px; flex-wrap: wrap; min-width: 0; }
.p-flink { font-size: 12px; color: #94a3b8; text-decoration: none; transition: 0.25s; overflow-wrap: anywhere; }
.p-flink:hover { color: #e2e8f0; }

/* Copyright bar */
.foot_bottom { padding: 20px 0; }
.foot_bottom_inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.copy_text,
.foot_author { font-size: 12px; color: #94a3b8; }
.foot_author a { color: #cbd5e1; text-decoration: none; }
.foot_author a:hover { color: #fff; }

/* Footer responsive */
@media (max-width: 991px) {
  .foot_main { grid-template-columns: 1fr 1fr; gap: 35px; padding: 50px 0 35px; }
}
@media (max-width: 768px) {
  .web_footer .layout { padding-left: 18px; padding-right: 18px; }
  .foot_main { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 34px 0 26px; }
  .foot_brand,
  .foot_col:last-child { grid-column: 1 / -1; }
  .foot_tagline { max-width: 100%; }
  .foot_col_title { margin-bottom: 14px; }
  .foot_nav_list { gap: 10px; }
  .foot_contact_list li { align-items: flex-start; }
  .foot_partners_row { display: none; }
  .foot_partner_links { flex-direction: column; gap: 9px; width: 100%; }
  .p-flink { display: block; line-height: 1.45; }
  .foot_bottom { padding: 16px 0 22px; }
  .foot_bottom_inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .copy_text,
  .foot_author { line-height: 1.5; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .foot_main { gap: 22px 16px; padding-top: 30px; }
  .foot_logo { font-size: 20px; }
  .foot_tagline,
  .foot_nav_list a,
  .foot_contact_list li { font-size: 13px; }
}

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */
.ps-ai-context { --ps-main: #02a0e1; position: fixed; bottom: 24px; right: 24px; z-index: 999999; display: flex; flex-direction: column; align-items: flex-end; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

#ps-ai-trigger {
  width: 50px; height: 50px; padding: 0; border-radius: 50%;
  background: var(--ps-main); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-btn); font-size: 18px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#ps-ai-trigger:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(2, 160, 225, 0.4); }
#ps-ai-trigger:active { transform: scale(0.92); }
.ps-trigger-inner { display: flex; align-items: center; justify-content: center; }
.ps-trigger-inner span { display: none; }

#ps-ai-box {
  display: none; width: 350px; height: 500px; background: #fff;
  border-radius: 18px; box-shadow: 0 20px 60px rgba(2, 100, 200, 0.18);
  flex-direction: column; overflow: hidden;
  border: 1px solid #f1f5f9; margin-bottom: 15px;
  transform-origin: bottom right;
  animation: psPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes psPopIn {
  0% { opacity: 0; transform: scale(0.6) translateY(50px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.ps-msg-ai, .ps-msg-user { animation: psSlideUp 0.3s ease-out; margin-bottom: 8px; }
@keyframes psSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.ps-ai-header { background: #111827; color: #fff; padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.ps-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; display: inline-block; margin-right: 5px; box-shadow: 0 0 8px #10b981; }
.ps-ai-title { display: flex; align-items: center; font-size: 14px; font-weight: 700; }
.ps-ai-close { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.ps-ai-close:hover { opacity: 1; }
#ps-ai-logs { flex: 1; overflow-y: auto; padding: 15px; background: #fcfdfe; display: flex; flex-direction: column; }
.ps-msg-ai { background: #f1f5f9; color: #111827; align-self: flex-start; padding: 10px 14px; border-radius: 12px; font-size: 13px; border-bottom-left-radius: 2px; max-width: 85%; line-height: 1.5; }
.ps-msg-user { background: var(--ps-main); color: #fff; align-self: flex-end; padding: 10px 14px; border-radius: 12px; font-size: 13px; border-bottom-right-radius: 2px; max-width: 85%; }
.ps-ai-input-bar { padding: 15px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; background: #fff; }
.ps-ai-input-bar input { flex: 1; border: 1px solid #e2e8f0; padding: 10px 15px; border-radius: 20px; outline: none; font-size: 13px; height: auto !important; transition: all 0.2s; }
.ps-ai-input-bar input:focus { border-color: var(--ps-main) !important; box-shadow: 0 0 0 3px rgba(2, 160, 225, 0.1) !important; background: #fff !important; }
.ps-ai-input-bar button { background: var(--ps-main); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; transition: 0.3s; flex-shrink: 0; }
.ps-ai-input-bar button:active { transform: scale(0.8); }

@media (max-width: 768px) {
  .ps-ai-context { bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; }
  #ps-ai-trigger { width: 48px; height: 48px; }
  #ps-ai-box { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; left: 16px; width: auto; height: min(480px, calc(100vh - 108px)); margin: 0; }
}

/* ============================================================
   FORM MODAL
   ============================================================ */
.form_modal_overlay {
  position: fixed; inset: 0;
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999999;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.form_modal_overlay.active { opacity: 1; pointer-events: all; }

.form_modal_box {
  background: #fff; border-radius: 20px; padding: 50px 40px;
  max-width: 440px; width: 90%; text-align: center;
  transform: scale(0.92) translateY(12px); transition: transform 0.25s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.form_modal_overlay.active .form_modal_box { transform: scale(1) translateY(0); }

.fm_icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.fm_icon_success { background: #ecfdf5; color: #22c55e; }
.fm_icon_error   { background: #fef2f2; color: #ef4444; }

.fm_title { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.fm_desc  { font-size: 15px; color: #777; line-height: 1.6; margin-bottom: 30px; }

.fm_close_btn {
  padding: 14px 45px; background: var(--primary-gradient); color: #fff;
  border: none; border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: 0.25s; box-shadow: var(--shadow-btn); font-family: inherit;
}
.fm_close_btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

@media (max-width: 480px) {
  .form_modal_box { padding: 36px 22px; }
  .fm_title { font-size: 20px; }
}
