/* =========================
   Custom Styles for AtlasSecurity
========================= */

/* Base Body Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f6f7f8;
    color: #111418;
    transition: background-color 0.2s, color 0.2s;
}

body.dark {
    background-color: #101922;
    color: #ffffff;
}

/* Sticky Header */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #f0f2f4;
}

body.dark .sticky-nav {
    background-color: rgba(16, 25, 34, 0.8);
    border-color: #1f2937;
}

/* Scrollbar Hiding */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Buttons */
.btn-primary {
    background-color: #137fec;
    color: white;
    font-weight: bold;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: rgba(19, 127, 236, 0.9);
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #f0f2f4;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

body.dark .card {
    background-color: #1a1f29;
    border-color: #2c2f3a;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Rounded Profile Images */
.size-5, .size-6, .size-8, .size-10 {
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
}

/* Tags / Labels */
.label-primary {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: rgba(19, 127, 236, 0.1);
    color: #137fec;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: inherit;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Links */
a {
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #137fec;
}

/* Input Fields */
input[type="text"], input[type="email"], input[type="search"] {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: transparent;
    transition: border-color 0.2s;
}
input:focus {
    outline: none;
    border-color: #137fec;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: #6b7280;
    border-top: 1px solid #f0f2f4;
    padding: 3rem 1.5rem;
    text-align: center;
}

body.dark footer {
    background-color: #101922;
    border-color: #1f2937;
    color: #9ca3af;
}

/* Hero / Featured Section */
.featured-section {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #f0f2f4;
}

body.dark .featured-section {
    background-color: #1a1f29;
    border-color: #2c2f3a;
}

/* Hover Effects for Cards */
.card:hover .card-title {
    color: #137fec;
    transition: color 0.2s;
}

/* Horizontal Scroll Categories */
.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}
.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* List Styling - Fix for bullet points */
ul {
  list-style-type: disc !important;
  padding-left: 20px !important;
  margin: 10px 0 !important;
}

ol {
  list-style-type: decimal !important;
  padding-left: 20px !important;
  margin: 10px 0 !important;
}

li {
  margin: 5px 0;
  display: list-item !important;
}
/* Spacing Fix - Match Google Docs Style */

/* Paragraph spacing */
p {
  margin-bottom: 12px !important;
  margin-top: 12px !important;
  line-height: 1.6 !important;
}

/* Heading spacing */
h1 {
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

h2 {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}

h3 {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

/* List spacing */
ul, ol {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding-left: 40px !important;
}

li {
  margin-bottom: 6px !important;
  line-height: 1.5 !important;
}

/* Article content container spacing */
article, .article-content, .glass-content {
  padding: 20px !important;
}

/* Ensure proper spacing between sections */
section {
  margin-bottom: 16px !important;
}
/* Title centering */
h1 {
  text-align: center !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

/* Date right alignment */
.date, .article-date, time {
  text-align: right !important;
  display: block !important;
  margin-bottom: 12px !important;
}

/* Bold text fix - ensure strong tags work */
strong, b {
  font-weight: 700 !important;
  color: inherit !important;
}

/* Better bullet spacing */
li {
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
}

/* Paragraph spacing to match Google Docs */
p {
  margin-bottom: 10px !important;
  margin-top: 10px !important;
  line-height: 1.5 !important;
}

/* Heading spacing */
h2 {
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
}

h3 {
  margin-top: 20px !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
}

/* List container spacing */
ul, ol {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  padding-left: 40px !important;
}

/* Glassmorphic card styling matching the page design */
.glass-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}
body.dark .glass-card {
    background: rgba(26, 31, 41, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}