/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

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

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

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

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #2980b9;
  color: white;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 18px;
  border-radius: 5px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

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

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

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo h1 {
  color: var(--secondary-color);
  font-size: 2.75rem;
  word-break: break-word; /* Add this for long words */
  max-width: 100%;
}

@media (max-width: 600px) {
  .logo h1 {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 10px;
  }
}

.logo h1 span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpeg'); /*Free Licence from Shutter Stock*/
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 180px 0 100px;
  margin-top: 70px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Services Preview */
.services-preview {
  padding: 80px 0;
  text-align: center;
}

.services-preview h3 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

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

.service-card {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Testimonials */
.testimonials {
  background: var(--light-color);
  padding: 80px 0;
  text-align: center;
}

.testimonials h3 {
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.testimonial blockquote {
  font-size: 1.3rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--text-color);
}

.testimonial p {
  color: var(--text-light);
  font-weight: bold;
}

/* CTA Section */
.cta {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.cta .btn {
  background: white;
  color: var(--primary-color);
  font-weight: bold;
}

.cta .btn:hover {
  background: var(--light-color);
}

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

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

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--light-color);
}

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

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

.footer-section ul li a {
  color: #bdc3c7;
}

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

.social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #bdc3c7;
  font-size: 1.5rem;
}

.social-links a:hover {
  color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      padding: 15px;
  }

  nav ul {
      margin-top: 15px;
  }

  nav ul li {
      margin: 0 10px;
  }

  .hero {
      padding: 150px 0 80px;
  }

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

/* Additional Styles for All Pages */

/* Page Hero */
.page-hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/office.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 150px 0 80px;
  margin-top: 70px;
}

.page-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
}

/* Article Page Styles */
/* Add space above the articles heading */
.article-preview h3 {
    margin-bottom: 6px;
    font-size: 2rem;
    color: var(--secondary-color);   
}

.article-preview h4 {
    margin-bottom: 6px;
    font-size: 1.0rem;
    color: var(--secondary-color);  
}

.article-preview p {
    margin-bottom: 12px;  
}

/* Optional: Improve the article grid and card layout */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from auto-fit to always 3 columns */
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 18px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.article-card:hover {
    /*box-shadow: 0 4px 16px rgba(0,0,0,0.12); */
    transform: translateY(-10px);
}

.article-preview {
    padding-top: 90px;   /* Already added for navbar */
    padding-bottom: 60px; /* Add this for space at the bottom */
}

.article-indent-list {
    padding-left: 30px; /* Indent the list */
}

.article-hr {
  border: none;
  border-top: 1px solid var(--secondary-color); /* Use your brand color */
  margin: 2rem 0;
  width: 80%;
  margin-left: 40px; /* Center the line */
}

/* Services Detail Page */
.services-detail {
  padding: 80px 0;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.service:nth-child(even) .service-text {
  order: 2;
}

.service:nth-child(even) .service-image {
  order: 1;
}

.service-image i {
  font-size: 8rem;
  color: var(--primary-color);
  text-align: center;
  display: block;
}

.service-text h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-text ul {
  margin: 20px 0;
  padding-left: 20px;
}

.service-text ul li {
  margin-bottom: 10px;
}

/* About Page Styles */
.about-content {
  padding: 80px 0;
}

.about-intro {
  margin-bottom: 60px;
}

.about-intro h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.about-intro p {
  margin-bottom: 15px;
  max-width: 800px;
}

.team-section {
  margin: 60px 0;
}

.team-section h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
}

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

.team-member {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.team-member .position {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 15px;
}

.values-section {
  margin: 60px 0;
}

.values-section h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  text-align: center;
}

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

.value-card {
  background: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.value-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-content {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form h3, .contact-info h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 3px;
}

.office-hours {
  margin-top: 40px;
}

.map-container {
  margin-top: 30px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Active Navigation Item */
nav ul li a.active {
  color: var(--accent-color);
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service {
      grid-template-columns: 1fr;
  }
  
  .service:nth-child(even) .service-text,
  .service:nth-child(even) .service-image {
      order: initial;
  }
  
  .contact-grid {
      grid-template-columns: 1fr;
  }
  
  .service-image i {
      font-size: 5rem;
      margin-bottom: 20px;
  }
}