:root {
  --accent: #66fcf1;
  --bg: #0b0c10;
  --fg: #c5c6c7;
  --card-bg: #1f2833;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.6;
}

/* Hero Section */
.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 5rem 5%;
}
.hero-text h1 { font-size: 3.5rem; color: var(--accent); margin-bottom:1rem; line-height: 56px; }
.hero-text p { color: var(--fg); margin-bottom:1.5rem; text-align: left; }
.post-meta span { margin-right:1.5rem; font-size:0.9rem; color:var(--fg); }
.hero-image img { width:100%; 
/*border-radius:8px;*/
border-left: 2px solid white;
}

/* Content Section */
.blog-content-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem 5%;
}
.sidebar1 { display: flex; flex-direction: column; gap:2rem; }

/* Table of Contents */
.toc-box {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: bold;
  cursor: pointer;
}
.toc-arrow { transition: transform 0.3s ease; }
.toc-box.collapsed .toc-arrow { transform: rotate(180deg); }
.toc-list {
  list-style: none;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg);
}
.toc-box.collapsed .toc-list { max-height: 0; padding: 0; }
.toc-list li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s;
}
.toc-list li a:hover { background: rgba(102,252,241,0.1); }

/* Share Box */
.share-box h3 { color:var(--accent); margin-bottom:1rem; }
.social-icons { display:flex; gap:1rem; }
.icon {
  width:2.5rem; height:2.5rem; background:var(--card-bg);
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; font-size:1.2rem; transition:transform 0.3s;
}
.icon:hover { transform:scale(1.1); }

/* Enhanced Subscribe Box */
.subscribe-box {
  background: var(--card-bg); 
  padding:1.5rem; 
  border-radius:8px;
  position: relative;
}
.subscribe-box h3 { color:var(--accent); margin-bottom:0.5rem; }
.subscribe-box p { color:var(--fg); margin-bottom:1rem; font-size:0.9rem; }

.subscribe-form input {
  width:100%; 
  padding:0.8rem; 
  margin-bottom:1rem;
  border:2px solid var(--accent); 
  border-radius:6px;
  background:var(--bg); 
  color:#fff;
  transition: border-color 0.3s ease;
}
.subscribe-form input:focus {
  outline: none;
  border-color: #45a29e;
}

/* Country Dropdown Styles */
.country-select {
  position: relative;
  margin-bottom: 1rem;
  z-index: 1;
}

#countrySelected {
  padding: 0.8rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

#countrySelected:hover {
  border-color: #45a29e;
}

.country-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 6px;
  max-height: 0;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.country-list.active {
  max-height: 250px;
  opacity: 1;
  visibility: visible;
}

.country-list li {
  list-style: none;
  padding: 0.8rem 1rem;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.country-list li:not(:last-child) {
  border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

.country-list li:hover {
  background: rgba(102, 252, 241, 0.05);
  padding-left: 1.2rem;
}

.country-list li::before {
  content: "📍";
  margin-right: 0.8rem;
  filter: hue-rotate(120deg);
  opacity: 0.7;
}

.optin {
  display:flex; 
  align-items:flex-start; 
  gap:0.5rem; 
  font-size:0.85rem;
  color:var(--fg); 
  margin-bottom:1rem;
}
.btn-subscribe {
  width:100%; 
  padding:0.75rem; 
  background:var(--accent);
  border:none; 
  color:var(--bg); 
  border-radius:4px; 
  cursor:pointer;
  transition:background 0.3s;
}
.btn-subscribe:hover { background:#45a29e; }

/* Article Content */
.article-content {
  background: var(--bg);
  color: var(--fg);
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}
.content-block { margin: 2rem 0; }
.blog-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.breadcrumbs {
  color: var(--fg);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  background: rgba(102,252,241,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 1.5rem 0;
}
.blog-image { margin: 2rem 0; }
.blog-image img { width: 100%; border-radius: 8px; }
figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg);
  margin-top: 0.5rem;
}
.styled-list { padding-left: 1.5rem; margin: 1rem 0; }
.styled-list li { margin: 0.5rem 0; position: relative; }
.styled-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}
.callout-box {
  padding: 1.5rem;
  border-left: 4px solid;
  margin: 1.5rem 0;
  background: rgba(102,252,241,0.05);
}
.callout-box.tip { border-color: #4CAF50; }
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.tech-table {
  width: 100%;
  border-collapse: collapse;
}
.tech-table th, .tech-table td {
  padding: 1rem;
  border: 1px solid var(--fg);
  text-align: left;
}
.tech-table th { background: var(--card-bg); }
.code-block {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
code { font-family: 'Courier New', monospace; font-size: 0.9rem; }
.pull-quote {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 2rem 0;
  padding: 1.5rem;
  text-align: center;
  background: rgba(102,252,241,0.05);
  font-style: italic;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}
.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
}
.stat-value {
  font-size: 2rem;
  color: var(--accent);
  font-weight: bold;
}
.stat-label { font-size: 0.9rem; color: var(--fg); }
.blog-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 2rem 0;
}
.blog-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .blog-hero { grid-template-columns: 1fr; text-align:center; }
  .blog-content-section { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.5rem; line-height: 1.3; 
      text-align: left;
  }
}
@media (max-width: 768px) {
  .blog-hero { padding: 4rem 5%; }
  .hero-text h1 { font-size: 2rem; }
  .article-content { padding: 0.5rem; }
 .share-box h3{
     text-align: center;
 }
}
@media (max-width: 480px) {
  .post-meta { flex-wrap: wrap; gap: 0.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .tech-table th, .tech-table td { padding: 0.75rem; }
  #countrySelected { padding: 0.6rem; }
  .country-list li { padding: 0.6rem; }
}