/* =============== GLOBAL STYLES =============== */
:root {
  --primary-color: #1a5276;
  --secondary-color: #2e86c1;
  --accent-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f8fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-accent {
  background: var(--accent-color);
}

.btn-accent:hover {
  background: #e67e22;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* =============== HEADER & NAVIGATION =============== */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  position: relative;
  margin-left: 30px;
}

.nav-links li a {
  font-weight: 600;
  color: var(--dark-color);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  width: 250px;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  border-radius: 5px;
  padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 8px 15px;
  transition: var(--transition);
}

.dropdown-menu li:hover {
  background: #f1f1f1;
}

.dropdown-menu li a {
  display: block;
  color: var(--dark-color);
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* =============== SERVICES SECTION =============== */
.services {
  background-color: white;
}

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

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

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

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-content p {
  margin-bottom: 15px;
  color: #666;
}




 /* =============== FOOTER =============== */
 footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-color);
}

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

.footer-column ul li a {
  color: #bbb;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 5px;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}
/*responsive*/
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f5f5f5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
    z-index: 1000;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .service-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Blog System Specific Styles */
/* Blog System Specific Styles */
.blog-section {
  padding: 60px 0;
  background-color: #f5f8fa;
}
.blog-container {
  width: 100%;
  max-width: 900px; /* Reduced from 1200px for better readability */
  margin: 0 auto;
  padding: 0 20px;
}
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}
.blog-header h2 {
  font-size: 2.5rem;
  color: #1a5276;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.blog-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f39c12;
}
/* Form Styles */
.blog-form-container {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: inherit;
  transition: border 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: #2e86c1;
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.blog-submit-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #1a5276;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-submit-btn:hover {
  background: #2e86c1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Blog Posts Display - Vertical Layout */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.blog-post {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.blog-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 320px;
  display: block;
}
.blog-content {
  padding: 35px; /* Increased from 25px for better readability */
}
.blog-title {
  font-size: 1.8rem; /* Increased from 1.5rem */
  color: #1a5276;
  margin-bottom: 20px; /* Increased from 15px */
  line-height: 1.3;
}
.blog-text {
  color: #333; /* Darker text for better contrast */
  margin-bottom: 25px; /* Increased from 20px */
  line-height: 1.8; /* Increased from 1.6 for better readability */
  font-size: 1.1rem; /* Slightly larger text */
}
.blog-meta {
  display: flex;
  align-items: center;
  color: #777;
  font-size: 0.95rem; /* Slightly increased */
}
.blog-date-icon {
  background: #f1f8ff;
  color: #2e86c1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
/* PDF-like reading experience */
.blog-post {
  page-break-inside: avoid;
  min-height: 600px; /* Minimum height for substantial content area */
}
/* Responsive Adjustments */
@media (max-width: 992px) {
  .blog-header h2 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .blog-section {
    padding: 40px 0;
  }
  .blog-image {
    height: 280px; /* Slightly reduced for smaller screens */
  }
}
@media (max-width: 576px) {
  .blog-header h2 {
    font-size: 1.8rem;
  }
  .blog-form-container {
    padding: 20px;
  }
  .blog-content {
    padding: 25px;
  }
  .blog-image {
    height: 240px;
  }
}