/* =============================
   BASIC RESET & GLOBAL STYLES
   ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 15px;
  color: #333;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

/* =============================
   HERO SECTION
   ============================= */
#hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/hero-img.jpg') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero h1 {
  font-size: 5.5em;        /* Bigger text */
  font-weight: 700;        /* Bold */
  line-height: 1.2;        /* Tight spacing */
  color: #ffffff;          /* White text */
  margin-bottom: 20px;
}

.hero-content p {
  font-size: .75em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: #8B0000;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  margin: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #7d7d7e;
}

.btn-secondary {
  background: #8B0000;
}

.btn-secondary:hover {
  background: #8B0000;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: #0c0c0c;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  text-align: center;         /* change from center to left */
  margin: 0;                /* remove auto centering */
  padding: 10px 20px;       /* horizontal padding to push slightly from the left edge */
}

.logo h1 {
  font-size: 1.8em;
  color: #ffffff;
}

.logo h3,
.logo h5 {
  margin: 0;
  line-height: 1.4;
  color: #ffffff;           /* ensure the font stays white */
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fefdfd;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #b0afaf;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #020202;
  position: absolute;
  transition: .3s ease-in-out;
}

.hamburger {
  position: relative;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger Animation */
nav.active .hamburger {
  transform: rotate(45deg);
}

nav.active .hamburger::before {
  top: 0;
  opacity: 0;
}

nav.active .hamburger::after {
  top: 0;
  transform: rotate(90deg);
}

/* 👇 Mobile toggle & dropdown styling */
/* 👇 Add this for mobile responsiveness */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #090909; /* This rule exists, but you say the background is white */
    position: absolute;
    top: 60px; /* Adjust based on header height */
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    color: #050505; /* Change text to dark color for visibility on white background */
  }

  .menu-toggle {
    display: block;
  }

  .hamburger, .hamburger::before, .hamburger::after {
    background-color: #ffffff;
  }
}


/* =============================
   ABOUT SECTION
   ============================= */
#about .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

#about .about-content,
#about .about-image {
  flex: 1;
}

#about .about-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#about p {
  margin-bottom: 15px;
}

/* =============================
   SERVICES SECTION
   ============================= */
#services {
  background-color: #e9ecef;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-item {
  background: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-item i {
  color: #040404;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* =============================
   CONTACT SECTION
   ============================= */
#contact .container {
  text-align: center;
}

#contact .contact-form {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.form-group textarea {
  resize: vertical;
}

#contact .contact-info {
  margin-top: 30px;
}

#contact .contact-info p {
  margin-bottom: 10px;
  font-size: 1.1em;
}

#contact .contact-info i {
  color: #050505;
  margin-right: 10px;
}

/* =============================
   BLOG SECTION
   ============================= */
#blog {
  padding: 4rem 2rem;
}

#blog h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.no-underline {
  text-decoration: none;
  color: inherit; /* Optional: keeps the link from turning blue/purple */
}

#blog .blog-post {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
}

#blog .blog-post h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#blog .post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

#blog .btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #070707;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

#blog .btn-secondary:hover {
  background-color: #010101;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-post h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-post p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blog-post a.read-more {
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
}

.blog-post a.read-more:hover {
    text-decoration: underline;
}
.blog-single {
    padding: 60px 20px;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.blog-single h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-single .meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.blog-single p, .blog-single ul, .blog-single ol {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-single ul, .blog-single ol {
    padding-left: 20px;
}
/* Basic styling for the blog single page - adjust based on your site's main CSS */
.blog-single .container {
    max-width: 900px; /* Example width, adjust to fit your design */
    margin: 0 auto;   /* Center the container */
    padding: 20px;    /* Add some internal padding */
}

.blog-single h2 {
    text-align: center; /* Center the main title */
    margin-bottom: 10px;
    font-size: 2em; /* Adjust size as needed */
}

.blog-single p.meta {
    text-align: center; /* Center meta info */
    font-style: italic;
    color: #666; /* Lighter color */
    margin-bottom: 30px; /* Space below meta */
}

/* --- Newspaper Column Styling --- */
.article-body-columns {
    column-count: 2;      /* Create two columns */
    column-gap: 30px;     /* Space between columns */
    /* optional: column-rule: 1px solid #ccc; */ /* Uncomment for a line between columns */
    margin-bottom: 30px; /* Space below the columns before the next section */
    /* To make text flow nicely, add text-align: justify; if desired, but it can sometimes create large gaps */
    /* text-align: justify; */
}

/* Ensure paragraphs within the columns have appropriate bottom margin */
.article-body-columns p {
    margin-bottom: 1em;
    line-height: 1.6; /* Improve readability in columns */
}

/* Make sure the headings and the case study content below the columns span the full width */
.blog-single h3 {
    /* The default display: block should make it full width, but column-span is explicit */
    column-span: all; /* Ensure heading spans across columns */
    margin-top: 30px; /* Space above case study heading */
    margin-bottom: 15px; /* Space below case study heading */
    font-size: 1.5em; /* Adjust size */
}

/* Ensure the case study paragraphs and list span full width */
.blog-single .container > p, /* Target direct child paragraphs in the container */
.blog-single .container ul {
    column-span: all; /* Ensure these elements span across columns */
    width: 100%; /* Explicitly set width just in case */
}

/* Optional: Add some basic styling for the list */
.blog-single ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-single ul li {
    margin-bottom: 5px;
}

/* --- Responsiveness --- */
/* On smaller screens, switch back to a single column */
@media (max-width: 768px) { /* Adjust this breakpoint as needed */
    .article-body-columns {
        column-count: 1; /* Single column on small screens */
        column-gap: 0;    /* Remove gap */
    }

    /* Reset column-span for elements that should be single column */
     .blog-single h2,
     .blog-single p.meta,
     .blog-single h3,
     .blog-single .container > p,
     .blog-single .container ul {
          column-span: none;
     }
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

footer p {
  margin-bottom: 15px;
}

.social-links a {
  color: #fff;
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #060606;
}

/* =============================
   RESPONSIVENESS
   ============================= */
@media (max-width: 768px) {
  h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }

  #hero {
    padding: 80px 20px;
    min-height: 500px;
  }

  .hero-content h2 {
    font-size: 2.5em;
  }

  .hero-content p {
    font-size: 1em;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    z-index: 999;
  }

  nav ul.nav-list.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    display: block;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }

  #about .container {
    flex-direction: column;
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 25px;
  }

  footer .container {
    flex-direction: column;
  }

  .social-links {
    margin-top: 10px;
  }
}
