:root {
  --primary-color: #0056b3;
  --secondary-color: #ff6b00;
  --bg-dark: #001a35;
  --bg-light: #f8f9fa;
  --text-dark: #333;
  --text-muted: #666;
  --white: #ffffff;
  --container-width: 1200px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 8px;
  --bg-breadcrumb: #f1f3f5;
  --border-color: #e9ecef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

/* Header */
.main-header {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav ul li a {
  font-weight: 500;
  color: var(--text-dark);
}

.main-nav ul li a:hover {
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-link {
  color: var(--text-dark);
  font-weight: 500;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #004494;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #001a35 0%, #003366 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-box {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  display: flex;
}

.search-box input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 50px 0 0 50px;
  border: none;
  font-size: 16px;
  outline: none;
}

.search-box button {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: #e66000;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 24px;
}

/* Services Section */
.services {
  padding: 60px 0;
  background: var(--bg-light);
}

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

.service-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.service-icon.blue { background: rgba(0, 86, 179, 0.1); color: #0056b3; }
.service-icon.green { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.service-icon.orange { background: rgba(255, 107, 0, 0.1); color: #ff6b00; }
.service-icon.purple { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.service-icon.pink { background: rgba(232, 62, 140, 0.1); color: #e83e8c; }
.service-icon.teal { background: rgba(32, 201, 151, 0.1); color: #20c997; }
.service-icon.red { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.service-icon.yellow { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.service-icon.indigo { background: rgba(102, 16, 242, 0.1); color: #6610f2; }

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
}

/* Main Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 60px 0;
}

.hot-news {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.section-header h2 {
  font-size: 24px;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.news-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.news-list li a {
  display: block;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.news-list li a:hover {
  background: #e9ecef;
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Article Cards */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-content h4 a:hover {
  color: var(--primary-color);
}

.article-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.date {
  font-size: 12px;
  color: #999;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Sidebar Widgets */
.widget {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.widget h3 {
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud li a {
  background: var(--bg-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.tag-cloud li a:hover {
  background: var(--primary-color);
  color: var(--white);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.content-area .banner img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--white);
}

/* Article Page Styles */
.breadcrumb-area {
  background: var(--bg-breadcrumb);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  margin-left: 10px;
  opacity: 0.5;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--bg-dark);
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.featured-image {
  margin-bottom: 30px;
}

.featured-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content-text {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.article-content-text p {
  margin-bottom: 25px;
}

.article-content-text .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
}

.article-content-text h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--bg-dark);
}

.article-content-text h3 {
  font-size: 22px;
  margin: 30px 0 15px;
}

.article-content-text ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-content-text ul li {
  list-style: disc;
  margin-bottom: 10px;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--bg-light);
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  font-size: 20px;
  color: var(--text-muted);
}

/* Code Block Styling */
.code-block {
  background: #282c34;
  border-radius: var(--radius);
  margin: 30px 0;
  overflow: hidden;
}

.code-header {
  background: #21252b;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #abb2bf;
  font-size: 13px;
}

.code-block pre {
  padding: 20px;
  margin: 0;
  color: #abb2bf;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.copy-btn {
  background: transparent;
  border: 1px solid #4b5263;
  color: #abb2bf;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #4b5263;
}

/* Sidebar TOC */
.toc-widget {
  position: sticky;
  top: 100px;
}

#toc ul {
  padding-left: 0;
}

#toc li {
  margin-bottom: 10px;
}

#toc a {
  font-size: 14px;
  color: var(--text-muted);
}

#toc a:hover {
  color: var(--primary-color);
}

#toc ul ul {
  padding-left: 15px;
  margin-top: 5px;
}

.share-icons {
  display: flex;
  gap: 10px;
}

.share-icons a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }
.share-ln { background: #0077b5; }

.related-list li {
  margin-bottom: 15px;
}

.related-list a {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.related-list img {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.related-list span {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 30px; }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.page-item.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.page-item:hover:not(.active) {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.page-item.next {
  width: auto;
  padding: 0 20px;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
}

.btn-top, .btn-chat {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.btn-top {
  background: var(--white);
  color: var(--primary-color);
}

.btn-chat {
  background: #0084ff;
  color: var(--white);
}

.btn-top:hover, .btn-chat:hover {
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
