/* ========== Global Styles ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9fb;
}

/* Containers */
.container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
margin-left: auto;
  margin-right: auto;
  
  
  padding-left: 1rem;
  padding-right: 1rem;
}

h1, h2, h3 {
  color: #222;
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
}

.muted {
  color: #666;
  font-size: 0.95em;
}

/* ========== Header ========== */
header {
  background: #0077cc;
  color: white;
  padding: 15px 0;
}

header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo .mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00cc88;
  display: inline-block;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* ========== Hero Section ========== */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.hero h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 10px;
  background: #0077cc;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005fa3;
}

.btn.alt {
  background: #00cc88;
}

.btn.alt:hover {
  background: #009966;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.9em;
}

/* ========== Cards ========== */
.card {
  flex:0 1 auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ========== Grid Layouts ========== */
.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid.cols-3, .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ========== Code Blocks ========== */
pre {
  background: #f4f4f4;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.95em;
}

code {
  font-family: "Courier New", monospace;
}





/* ========== Ads Placeholder ========== */
.ad {
  background: #e8f4ff;
  border: 2px dashed #0077cc;
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  font-size: 0.95em;
  color: #0077cc;
  border-radius: 8px;
}

/* ========== Footer ========== */
footer {
  background: #222;
  color: #ddd;
  padding: 30px 0;
  margin-top: 30px;
}

footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 6px;
}

footer a {
  color: #ddd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}



  img {
  max-width: 100%;
  height: auto;
  display: block;
}



