
:root {
  /* Color Palette */
  --primary-color: #00f0ff;
  --primary-dark: #00c3ff;
  --accent-color: #007bff;
  --text-color: #334155;
  --text-light: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: #1e293b;
  --text-header: #f1f5f9;
  --success-color: #10b981;
  --border-color: #e2e8f0;

  /* Typography */
  --font-family-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 70px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-main);
  background-color: var(--bg-body);
  color: var(--text-color);
  line-height: var(--line-height-base);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Utility Classes & Layout */
.wrap {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
header.bgall {
  background-color: var(--bg-header);
  color: var(--text-header);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.header_list {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-logo-link img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1); /* Make logo white if it's SVG/PNG */
}

/* Navigation (Desktop) */
nav.bgall {
  background-color: #334155;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav .wrap {
  display: flex;
  justify-content: center;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
}

.header-menu li a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.header-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.header-menu li a:hover {
  color: #fff;
}

.header-menu li a:hover::after {
  width: 100%;
}

/* Mobile Menu */
[x-cloak] { 
  display: none !important; 
}

#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-card);
  padding: 2rem;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform var(--transition-speed) ease;
  z-index: 200;
  display: flex !important; /* Override x-show for transition logic usually handled by JS libraries, keeping it simple here */
  flex-direction: column;
}

/* Note: Actual toggle logic depends on AlpineJS in HTML, but CSS needs to handle state if class-based */
#mobileMenu[style*="display: none"] {
  transform: translateX(100%);
}
#mobileMenu:not([style*="display: none"]) {
  transform: translateX(0);
}

#mobileMenu .header-menu {
  flex-direction: column;
  gap: 1.5rem;
}

#mobileMenu .header-menu li a {
  color: var(--text-color);
  font-size: 1.1rem;
}

#mobileMenu .header-menu li a:hover {
  color: var(--accent-color);
}

/* Buttons */
.m_but {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #0f172a;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
  transition: all var(--transition-speed) ease;
}

.m_but:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.5);
}

/* Content Area */
.cms-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
  background-color: var(--bg-card);
  margin-top: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.cms-content h1, 
.cms-content h2, 
.cms-content h3 {
  color: #1e293b;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cms-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

.cms-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
}

.cms-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.cms-content p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.05rem;
}

/* Lists within content */
.wp-block-list {
  counter-reset: list-counter;
  padding-left: 0;
  margin-bottom: 2rem;
}

.wp-block-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.wp-block-list li::before {
  counter-increment: list-counter;
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-body);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.wp-block-list li strong {
  color: #1e293b;
}

/* Images in content */
.wp-block-image {
  margin: 2rem 0;
  text-align: center;
}

.wp-block-image img {
  box-shadow: var(--shadow-hover);
  transition: transform var(--transition-speed) ease;
}

.wp-block-image img:hover {
  transform: scale(1.01);
}

/* Blockquote */
.wp-block-quote {
  background: #eff6ff;
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: #334155;
}

/* Call to Action Button in Content */
.wp-block-buttons {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.btn-box .btn {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-color), var(--primary-dark));
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-box .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.btn-box .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 123, 255, 0.4);
}

.btn-box .btn:hover::before {
  left: 100%;
}

/* Footer */
footer.bgall {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: auto; /* Stick to bottom if content is short */
  border-top: 1px solid #1e293b;
}

.copu {
  text-align: center;
  font-size: 0.9rem;
}

/* Helper Classes & Responsive Utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.ml-auto {
  margin-left: auto;
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .header_list {
    padding: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }
  
  .wrap {
    padding: 0 1rem;
  }

  .cms-content {
    padding: 2rem 1rem;
    margin-top: 1rem;
  }

  .wp-block-list li {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .wp-block-list li::before {
    position: static;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .btn-box .btn {
    width: 100%;
    text-align: center;
  }
}
