* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background-color: #fff;
  min-width: 100%;
}

/* ============ Sidebar ============ */
.sidebar {
  width: 250px;
  background-color: #1d2743;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 0;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  flex-shrink: 0;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 15px;
}

.sidebar-logo {
  width: 140px;
  margin: 0 auto 12px auto;
  display: block;
}

.sidebar-title {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  padding: 10px 0 0 0;
  margin-bottom: 10px;
}

/* Menu Styling */
.menu {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 25px;
}

.menu a {
  text-decoration: none;
  color: rgba(203, 212, 225, 0.6);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.menu a i {
  width: 14px;
  text-align: center;
  font-size: 12px;
}

.menu a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.login {
  font-size: 14px;
  color: #cbd4e1;
  padding: 12px;
  border-top: 1px solid #2b3757;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* ============ Main Section ============ */
.main {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 0;
}

/* Header Buttons */
header {
  display: flex;
  justify-content: flex-end;
  padding: 20px 40px;
  border-bottom: 1px solid #efefef;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
}

.home,
.contact {
  background: linear-gradient(to right, #1d2743 60%, #d71e42 100%);
}

.btn:hover {
  opacity: 0.85;
}

/* ============ Main Content ============ */
main {
  margin-top: 100px;
  padding: 0 20px;
}

h1 {
  font-size: 2rem;
  color: #1d2743;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.section-title {
  display: block;
  width: 35%;
  margin: 0 auto 50px auto;
  background-color: rgba(232, 229, 234, 0.7);
  color: #6c6c6c;
  padding: 16px 0;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease;
}

.section-title span {
  display: inline-block;
  transition: opacity 0.5s ease;
}

.section-title .fade-out {
  opacity: 0;
}

.fade-out {
  opacity: 0;
}

/* Centered Logo */
.main-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.main-logo {
  width: 220px;
  max-width: 80%;
}

/* Selection Prevention */
.main,
.main *:not(a):not(button):not(input):not(textarea):not(select):not([contenteditable="true"]) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  cursor: default;
}

.main a,
.main button,
.main input,
.main textarea,
.main select {
  -webkit-user-select: text;
  user-select: text;
  cursor: pointer;
}

/* ============ Modal Styles ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 34, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 1100;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-width: 820px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(11, 18, 36, 0.45);
  overflow: hidden;
  transform: translateY(18px) scale(.99);
  transition: transform .22s ease, opacity .22s ease;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgb(32,42,68), rgb(32,42,68));
}

.modal-title {
  font-size: 1.05rem;
  color: white;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.modal-close:hover {
  background: rgba(15,23,42,0.04);
  color: white;
}

.modal-body {
  padding: 20px;
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 120px;
}

.modal-body img {
  display: block;
  margin: 14px auto;
  width: auto;
  max-width: min(640px, 100%);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.modal-body .center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-body .lead {
  font-weight: 600;
  color: #0f2340;
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,252,0.98));
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  color: #0f2340;
  border: 1px solid rgba(15,23,42,0.06);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 80px;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.03);
}

.modal-body ul,
.modal-body ol {
  padding-left: 40px;
  margin-left: 0;
}

.modal-body ul li,
.modal-body ol li {
  margin-bottom: 8px;
  text-indent: 0;
}

/* ============ Mobile-First Responsive Design ============ */

/* Tablet */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
    padding: 20px 0;
  }
  
  .sidebar-logo {
    width: 120px;
  }
  
  .menu {
    gap: 20px;
    padding: 0 15px;
  }
  
  .section-title {
    width: 50%;
  }
  
  main {
    margin-top: 80px;
  }
}

/* Large Mobile */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 15px 10px;
    border-radius: 0;
    border-bottom: 1px solid #2b3757;
  }
  
  .sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  
  .sidebar-logo {
    width: 100px;
    margin: 0 15px 0 0;
  }
  
  .sidebar-title {
    display: none;
  }
  
  .menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 10px;
    justify-content: center;
    flex: 1;
  }
  
  .menu a {
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    min-height: 44px;
    justify-content: center;
  }
  
  .nav-text {
    display: none;
  }
  
  .login {
    display: none;
  }
  
  .main {
    flex: 1;
    min-height: calc(100vh - 80px);
  }
  
  header {
    padding: 15px 20px;
    justify-content: center;
  }
  
  .header-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
    min-width: 120px;
  }
  
  main {
    margin-top: 40px;
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
  }
  
  .section-title {
    width: 90%;
    font-size: 14px;
    padding: 12px 0;
    margin-bottom: 30px;
  }
  
  .main-logo-container {
    margin-top: 30px;
  }
  
  .main-logo {
    width: 180px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .sidebar {
    padding: 12px 8px;
  }
  
  .sidebar-logo {
    width: 80px;
    margin: 0 10px 0 0;
  }
  
  .menu {
    gap: 8px;
  }
  
  .menu a {
    font-size: 10px;
    padding: 6px 8px;
    min-height: 40px;
  }
  
  .menu a i {
    font-size: 14px;
  }
  
  header {
    padding: 12px 15px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 110px;
  }
  
  main {
    margin-top: 30px;
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .section-title {
    width: 95%;
    font-size: 13px;
    padding: 10px 0;
    margin-bottom: 25px;
  }
  
  .main-logo {
    width: 150px;
  }
  
  /* Modal mobile optimizations */
  .modal-overlay {
    padding: 15px;
  }
  
  .modal {
    max-height: 85vh;
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .modal-body ul,
  .modal-body ol {
    padding-left: 25px;
  }
  
  .modal-actions {
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  
  .btn-ghost {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .sidebar-logo {
    width: 70px;
  }
  
  .menu a {
    font-size: 9px;
    padding: 5px 6px;
  }
  
  .menu a i {
    font-size: 12px;
  }
  
  h1 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 12px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 100px;
  }
  
  .main-logo {
    width: 130px;
  }
}

/* Mobile Height Adjustments */
@media (max-height: 700px) {
  .modal {
    max-height: 95vh;
  }
  
  main {
    margin-top: 25px;
  }
  
  .main-logo-container {
    margin-top: 20px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .menu a:hover {
    transform: none;
  }
  
  .btn:hover {
    opacity: 1;
  }
  
  .menu a:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.98);
  }
  
  .btn:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .sidebar {
    padding: 10px 8px;
  }
  
  .menu a {
    min-height: 36px;
    padding: 4px 6px;
  }
  
  main {
    margin-top: 20px;
  }
  
  .section-title {
    margin-bottom: 20px;
  }
  
  .modal-overlay {
    padding: 10px;
  }
  
  .modal {
    max-height: 80vh;
  }
}