/* CSS Variables for consistent theming */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #1e3a5f;
  --accent-color: #4a90e2;
  --text-color: #333;
  --light-text: #666;
  --border-color: #e0e0e0;
  --background-color: #f8f9fa;
  --white: #ffffff;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

a:hover {
  color: var(--accent-color);
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.nav-logo h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.stat p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Section Styling */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--background-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-card p {
  color: var(--light-text);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 2rem;
  color: var(--light-text);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.feature h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.feature p {
  color: var(--light-text);
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-image {
  width: 100%;
  height: 300px;
  background: var(--background-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--light-text);
  text-align: center;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--background-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.contact-item p {
  color: var(--light-text);
  margin: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Blog Styles */
.blog-header {
  background-color: var(--background-color);
  padding: 200px 0 60px;
  text-align: center;
  background: url("/assets/images/slider1.jpg") center center/cover no-repeat;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: var(--light-text);
}

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

.blog-post {
  padding: 60px 0;
}

.blog-post .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.post-header {
  margin-bottom: 3rem;
}

.post-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.post-meta span {
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-meta i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.post-image {
  margin: 4rem 0;
  text-align: center;
}

.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.post-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body strong {
  color: var(--secondary-color);
}

.lead {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.info-box {
  background-color: var(--background-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

.info-box h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.info-box i {
  margin-right: 0.5rem;
}

.cta-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-tags {
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  background-color: var(--background-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-share h4 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.share-btn.facebook {
  background-color: #3b5998;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.linkedin {
  background-color: #0077b5;
}

.share-btn.email {
  background-color: var(--primary-color);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
}

/* Sidebar Styles */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.sidebar-widget h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.author-card {
  text-align: center;
}

.author-avatar {
  margin-bottom: 1rem;
}

.author-info h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.author-info p {
  color: var(--light-text);
  font-size: 0.9rem;
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-post h4 {
  margin-bottom: 0.5rem;
}

.related-post a {
  color: var(--secondary-color);
  transition: var(--transition);
}

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

.related-post .post-date {
  color: var(--light-text);
  font-size: 0.9rem;
}

.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-contact p {
  color: var(--light-text);
  font-size: 0.9rem;
  margin: 0;
}

.quick-contact i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.calculator-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calculator-result {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--box-shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blog-post .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services,
  .about,
  .contact {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .post-header h1 {
    font-size: 2rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .placeholder-image {
    height: 200px;
  }

  .post-image .placeholder-image {
    height: 250px;
  }
}
