/* --- d:\deedoc-website\css\style.css --- */

/* --------------------
   Global Styles & Variables
   -------------------- */
:root {
  --color-primary: #d02126;
  /* Red */
  --color-dark: #31353e;
  /* Dark Grey/Charcoal */
  --color-light: #ffffff;
  /* White */
  --color-grey-light: #f4f4f4;
  --color-grey-medium: #e0e0e0;
  --color-grey-dark: #666666;

  --text-on-dark: var(--color-light);
  --text-on-light: var(--color-dark);
  --text-on-primary: var(--color-light);

  --font-primary: 'Roboto', 'Arial', sans-serif;
  /* Example: Using Roboto, add Google Font link if needed */
  --font-secondary: 'Montserrat', 'Arial', sans-serif;
  /* Example for headings */
  --header-height: 80px;
  --transition-speed: 0.3s;
  --border-radius: 6px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-on-light);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1140px;
  /* Common max-width for larger screens */
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  /* Subtle rounding for all images */
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

a:hover {
  color: #a0191d;
  /* Darker shade of primary */
  opacity: 0.85;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  margin-bottom: 0.75em;
  line-height: 1.3;
  color: var(--color-dark);
  font-weight: 600;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--color-dark);
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 15px auto 0;
}


section {
  padding: 70px 0;
}

/* --------------------
   Buttons
   -------------------- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-align: center;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-secondary);
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-on-primary);
  box-shadow: 0 2px 5px rgba(208, 33, 38, 0.3);
}

.btn-primary:hover {
  background-color: #a0191d;
  /* Darker primary */
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(208, 33, 38, 0.4);
}

.btn-secondary {
  background-color: var(--color-dark);
  color: var(--text-on-dark);
  box-shadow: 0 2px 5px rgba(49, 53, 62, 0.3);
}

.btn-secondary:hover {
  background-color: #1e2128;
  /* Darker dark */
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(49, 53, 62, 0.4);
}

/* --------------------
   Header (Mostly Unchanged, ensure it's correct)
   -------------------- */
.header {
  background-color: var(--color-light);
  color: var(--text-on-light);
  padding: 0;
  /* Padding handled by container and item heights */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: var(--header-height);
  box-shadow: var(--shadow-light);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header.scrolled {
  background-color: #6c7280;
  color: var(--text-on-dark);
  box-shadow: var(--shadow-medium);
}

.header.scrolled .logo a {
  /* If you have a different logo for scrolled state or want to change its color */
}

.header.scrolled .main-nav .nav-links-list a {
  color: var(--text-on-dark);
}

.header.scrolled .main-nav .nav-links-list a:hover,
.header.scrolled .main-nav .nav-links-list a.active {
  color: var(--color-primary);
}

.header.scrolled .hamburger i {
  color: var(--text-on-dark);
}

.logo img {
  height: 45px;
  /* Adjust as needed */
  max-height: calc(var(--header-height) - 30px);
}

.main-nav {
  display: none;
}

/* Mobile first: hidden */
.main-nav .nav-links-list {
  display: flex;
}

.main-nav .nav-links-list li {
  margin-left: 25px;
}

.main-nav .nav-links-list a {
  color: var(--text-on-light);
  padding: 10px 15px;
  font-weight: 600;
  font-family: var(--font-secondary);
  position: relative;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.main-nav .nav-links-list a.active,
.main-nav .nav-links-list a:hover {
  color: var(--color-primary);
}

.main-nav .nav-links-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  /* Adjusted for better visual */
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.hamburger {
  display: block;
  /* Shown on mobile */
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--color-dark);
  padding: 10px;
}

.hamburger.active i::before {
  content: "\f00d";
}

.nav-menu {
  /* This is the <nav> element */
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  padding: 20px 0;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.nav-menu.active {
  display: block;
}

.nav-menu .nav-links-list {
  flex-direction: column;
  align-items: center;
}

.nav-menu .nav-links-list li {
  margin: 12px 0;
  width: 100%;
  text-align: center;
}

.nav-menu .nav-links-list a {
  color: var(--text-on-dark);
  padding: 12px 20px;
  display: block;
  width: 90%;
  margin: 0 auto;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.nav-menu .nav-links-list a:hover,
.nav-menu .nav-links-list a.active {
  background-color: var(--color-primary);
  color: var(--text-on-primary);
}

/* --------------------
   Page Content Adjustments
   -------------------- */
body>.header+section:not(.hero):not(.page-hero) {
  padding-top: calc(var(--header-height) + 70px);
}

/* For subpages that use .page-hero, ensure subsequent sections also have enough top padding if the hero is short */
.page-hero + section {
    padding-top: 70px; /* Adjust as needed, ensures consistent spacing after a page-hero */
}
body > .header + .page-hero + section { /* If page-hero is the very first section */
     padding-top: 70px; /* Standard section padding is fine here as page-hero handles header offset */
}

/* --------------------
   Generic Page Hero (for subpages)
   -------------------- */
.page-hero {
  padding: calc(var(--header-height) + 70px) 0 70px 0;
  background-size: cover;
  background-position: center center;
  color: var(--color-light);
  text-align: center;
  position: relative;
  /* For pseudo-element overlay if not using inline gradient */
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-light);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* --------------------
   Hero Section (Homepage - existing styles, minor tweaks if needed)
   -------------------- */
.hero { /* Homepage specific hero */
  background-color: var(--color-grey-light);
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  color: var(--color-dark);
  margin-bottom: 20px;
  font-size: 2.0rem;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  color: var(--color-grey-dark);
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* --------------------
   Key Services (Homepage - Renamed from Services Overview)
   -------------------- */
.key-services { /* Was .services-overview */
  background-color: var(--color-light);
}

/* Industries section on Homepage - Icon specific styling */
.industry-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: block; /* Or inline-block if you prefer */
    transition: transform var(--transition-speed) ease;
}
.industry:hover .industry-icon {
    transform: scale(1.1);
}

/* Latest Blog Posts Section (Homepage Placeholder) */
.latest-blog {
    background-color: var(--color-grey-light);
}
.blog-card-placeholder { /* Basic placeholder styling */
    background-color: var(--color-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    margin-bottom: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background-color: var(--color-light);
  padding: 35px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid var(--color-grey-medium);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-card img,
.service-card .service-icon {
  /* For icon fonts or images */
  height: 60px;
  width: 60px;
  margin: 0 auto 25px auto;
  color: var(--color-primary);
  font-size: 2.5rem;
  /* For FontAwesome icons */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  color: var(--color-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-grey-dark);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* --------------------
   Industries Section (Homepage - existing styles)
   -------------------- */
.industries {
  background-color: var(--color-grey-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.industry {
  padding: 25px;
  background-color: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.industry img {
  height: 70px;
  margin: 0 auto 20px auto;
  opacity: 0.9;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.industry:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.industry h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  font-weight: 600;
}


/* --- Styles for Education Page --- */
.mission-section .container,
.global-impact .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.mission-content,
.mission-image,
.impact-content,
.impact-image {
  flex: 1;
}

.mission-content h2,
.impact-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.mission-content p,
.impact-content p {
  margin-bottom: 20px;
  color: var(--color-grey-dark);
}
.mission-content h3 { /* For "Our Mission:" subheading */
  font-size: 1.5rem;
  margin-top: 20px;
  color: var(--color-grey-dark);
}

.mission-image img,
.impact-image img {
  box-shadow: var(--shadow-medium);
}

.education-services {
  background-color: var(--color-grey-light);
}

/* .service-card used here, already styled */

.professional-dev {
  background-color: var(--color-light);
}

.dev-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.dev-column h4 { /* Added for subheadings in dev-columns */
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-grey-medium);
}

.dev-column h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start; /* Align items to start for multi-line text */
}
.dev-column ul li { /* If using ul for these items */
  margin-bottom: 12px;
  align-items: center;
}

.dev-column h3 i {
  color: var(--color-primary);
  margin-right: 12px;
  font-size: 1.3rem;
}
.dev-column ul {
    list-style: none;
    padding-left: 0;
}

.impact-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 150px;
  box-shadow: var(--shadow-light);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-light);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.testimonials {
  background-color: var(--color-grey-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.testimonial-card {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
}

.testimonial-content p {
  font-style: italic;
  color: var(--color-grey-dark);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-grey-medium);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 3px;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.testimonial-author p {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* --- Styles for Solutions Page --- */
.solutions-section .solution {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-grey-medium);
}

.solutions-section .solution:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.solution-content,
.solution-image {
  flex: 1;
}

.solution-content h2 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.solution-content p {
  margin-bottom: 20px;
  color: var(--color-grey-dark);
}

.solution-content ul {
  list-style: none;
  /* Was disc, but FontAwesome is better */
  padding-left: 0;
  margin-bottom: 25px;
}

.solution-content ul li {
  margin-bottom: 10px;
  color: var(--color-grey-dark);
  position: relative;
  padding-left: 25px;
}

.solution-content ul li::before {
  content: "\f00c";
  /* FontAwesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 3px;
}
.solution-content h5 { /* For "Industries We Serve" subheading */
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-dark);
}
.solution-content ul.checklist li {
    padding-left: 0; /* Override default icon padding */
    display: flex;
    align-items: center;
}
.solution-content ul.checklist li i {
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 0.9em;
}

.solution-image img {
  box-shadow: var(--shadow-medium);
}

.cta-section {
  background-color: var(--color-dark);
  color: var(--color-light);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-light);
  margin-bottom: 15px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.case-snapshot {
    background-color: var(--color-grey-light);
    padding: 15px;
    border-left: 4px solid var(--color-primary);
    margin: 20px 0;
    font-style: italic;
  opacity: 0.9;
}

/* --- Styles for Resources Page --- */
.resources-tabs {
  background-color: var(--color-light);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--color-grey-medium);
}

.tab-btn {
  padding: 12px 20px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-grey-dark);
  transition: color var(--transition-speed), border-bottom-color var(--transition-speed);
  font-size: 1rem;
}

.tab-btn:hover {
  color: var(--color-dark);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.resources-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.resource-card,
.tool-card {
  /* Similar to service-card */
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--color-grey-medium);
  display: flex;
  flex-direction: column;
}

.resource-icon,
.tool-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.resource-card h3,
.tool-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.resource-card p,
.tool-card p {
  color: var(--color-grey-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

.resource-card .btn-secondary,
.tool-card .btn-secondary {
  margin-top: auto;
}

.articles-list .article-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-grey-medium);
}

.articles-list .article-item:last-child {
  border-bottom: none;
}

.article-item h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.article-item p {
  color: var(--color-grey-dark);
  margin-bottom: 15px;
}

.read-more {
  font-weight: bold;
}

.read-more i {
  margin-left: 5px;
  transition: transform var(--transition-speed) ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

.discounts-list .discount-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  padding: 25px;
  background-color: var(--color-grey-light);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.discount-logo {
  font-size: 2.5rem;
  color: var(--color-primary);
  min-width: 50px;
  text-align: center;
}

.discount-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.discount-info p {
  color: var(--color-grey-dark);
  margin-bottom: 15px;
}

.newsletter-section {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.newsletter-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.newsletter-content h2 {
  color: var(--color-light);
}

.newsletter-content p {
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  padding: 14px;
  border: 1px solid var(--color-grey-medium);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
}

.newsletter-form .btn-primary {
  white-space: nowrap;
}


/* --- Styles for About Us Page --- */
.our-story {
  background-color: var(--color-grey-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  /* The central line */
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--color-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  z-index: 1;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: 30px;
}

.timeline-item::after {
  /* The circles on the timeline */
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--color-light);
  border: 3px solid var(--color-primary);
  top: 15px;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-year {
  position: absolute;
  top: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  z-index: 3;
  background-color: var(--color-grey-light);
  /* Match section bg */
  padding: 2px 5px;
}

.mission-statement-about { /* For mission statement on About Us page */
    text-align: center;
    margin-bottom: 50px;
}
.mission-statement-about p { color: var(--color-grey-dark); max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.1rem;}

.timeline-item:nth-child(odd) .timeline-year {
  right: -70px;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -70px;
  text-align: right;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--color-light);
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-grey-dark);
}

.core-values {
  background-color: var(--color-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 20px;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background-color: var(--color-grey-light);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 50px;
  /* Adjust for icon vertical centering */
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--color-grey-dark);
}

.leadership-team {
  background-color: var(--color-grey-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--color-light);
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  object-fit: cover;
  border: 4px solid var(--color-primary);
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.team-member .position {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-member .bio {
  font-size: 0.9rem;
  color: var(--color-grey-dark);
  margin-bottom: 15px;
}

.team-member .social-links a {
  color: var(--color-dark);
  font-size: 1.3rem;
  margin: 0 8px;
}

.team-member .social-links a:hover {
  color: var(--color-primary);
}

.global-presence {
  background-color: var(--color-light);
}

.office-locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.office {
  background-color: var(--color-grey-light);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.office img {
  margin-bottom: 20px;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.office h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.office p {
  color: var(--color-grey-dark);
  margin-bottom: 8px;
}

.office p i {
  margin-right: 8px;
  color: var(--color-dark);
}

.our-partners {
    background-color: var(--color-grey-light);
}
.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.partner-logo img {
    max-height: 80px; /* Adjust as needed */
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}
.partner-logo img:hover { opacity: 1; }


/* --- Styles for Contact Page --- */
.contact-section .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-form,
.contact-info {
  flex: 1;
}

.contact-form h2,
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-grey-medium);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(208, 33, 38, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.8rem;
  color: var(--color-primary);
  min-width: 30px;
  text-align: center;
  margin-top: 3px;
}

.info-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-content p {
  color: var(--color-grey-dark);
  margin-bottom: 3px;
  line-height: 1.5;
}

.map-section {
  background-color: var(--color-grey-light);
}

.map-container iframe {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.team-contact {
  background-color: var(--color-light);
}

/* .team-grid and .team-member already styled (from About Us page) */
.team-contact .team-member img {
  border-color: var(--color-grey-medium);
  /* Different border for these context images */
}

.team-contact .team-member p {
  font-size: 0.95rem;
}

.team-contact .team-member p:last-of-type {
  margin-bottom: 0;
}


.consultation-cta {
  background-color: var(--color-primary);
  color: var(--color-light);
  text-align: center;
}

.consultation-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.consultation-cta .cta-content h2 {
  color: var(--color-light);
}

.consultation-cta .cta-content p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

.consultation-cta .btn-primary {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.consultation-cta .btn-primary:hover {
  background-color: var(--color-grey-light);
  color: var(--color-primary);
}


/* --------------------
   Footer (Mostly Unchanged)
   -------------------- */
.footer {
  background-color: var(--color-dark);
  color: var(--text-on-dark);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.footer-about img {
  max-width: 180px;
  margin: 0 auto 20px auto;
}

.footer-about p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--color-light);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-links ul li a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-contact p i {
  margin-right: 10px;
  color: var(--color-primary);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #4a4e57;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 15px;
}

.social-links a {
  color: #ccc;
  font-size: 1.6rem;
  margin: 0 12px;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* --- Styles for Blog Pages (New) --- */
.blog-listing .blog-grid-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden; /* To contain image border-radius */
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
}
.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image-link { display: block; }
.blog-card-image {
    width: 100%;
    height: 250px; /* Adjust as needed */
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: 0; /* Reset for card structure */
    border-bottom-right-radius: 0;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-meta {
    font-size: 0.85rem;
    color: var(--color-grey-dark);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px; /* row-gap column-gap */
}
.blog-card-meta i {
    margin-right: 5px;
    color: var(--color-primary);
}
.blog-card-meta a { color: var(--color-grey-dark); }
.blog-card-meta a:hover { color: var(--color-primary); }

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-title a {
    color: var(--color-dark);
}
.blog-card-title a:hover {
    color: var(--color-primary);
}
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-grey-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}
.btn-small { /* For "Read More" on blog cards */
    padding: 8px 18px;
    font-size: 0.9rem;
    align-self: flex-start; /* Align button to the start of the flex item */
}

.pagination {
    margin-top: 50px;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--color-grey-medium);
    border-radius: var(--border-radius);
    color: var(--color-dark);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}
.page-numbers:hover, .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

/* Blog Single Post */
.blog-single-post .post-content {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.post-header { margin-bottom: 30px; }
.post-title { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.3; }
.post-meta { font-size: 0.9rem; color: var(--color-grey-dark); margin-bottom: 25px; }
.post-meta span { margin-right: 20px; }
.post-meta i { margin-right: 6px; color: var(--color-primary); }
.post-meta a { color: var(--color-grey-dark); }
.post-meta a:hover { color: var(--color-primary); }
.post-featured-image { width: 100%; margin-bottom: 30px; border-radius: var(--border-radius); }

.post-body h2 { font-size: 1.8rem; margin-top: 30px; margin-bottom: 15px; }
.post-body h3 { font-size: 1.5rem; margin-top: 25px; margin-bottom: 10px; }
.post-body p { margin-bottom: 20px; line-height: 1.8; }
.post-body ul, .post-body ol { margin-bottom: 20px; padding-left: 25px; }
.post-body ul li { list-style: disc; margin-bottom: 8px; }
.post-body ol li { list-style: decimal; margin-bottom: 8px; }
.post-body blockquote {
    margin: 25px 0;
    padding: 20px;
    background-color: var(--color-grey-light);
    border-left: 5px solid var(--color-primary);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-grey-dark);
}
.post-body figure { margin: 25px 0; text-align: center; }
.post-body figure img { max-width: 80%; margin: 0 auto; box-shadow: var(--shadow-light); }
.post-body figure figcaption { font-size: 0.9rem; color: var(--color-grey-dark); margin-top: 10px; font-style: italic; }

.post-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-grey-medium); }
.post-tags a, .share-buttons a { margin-right: 8px; display: inline-block; }
.post-tags a { background-color: var(--color-grey-light); color: var(--color-dark); padding: 5px 10px; border-radius: var(--border-radius); font-size: 0.85rem; }
.post-tags a:hover { background-color: var(--color-primary); color: var(--color-light); }
.share-buttons { margin-top: 15px; }
.share-buttons a { font-size: 1.3rem; color: var(--color-dark); }
.share-buttons a:hover { color: var(--color-primary); }

.author-box { display: flex; gap: 20px; margin-top: 40px; padding: 25px; background-color: var(--color-grey-light); border-radius: var(--border-radius); }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-size: 1.3rem; margin-bottom: 5px; }
.author-info p { font-size: 0.95rem; color: var(--color-grey-dark); margin-bottom: 10px; }
.author-info a { font-weight: bold; font-size: 0.9rem; }

.related-posts { margin-top: 50px; }
.related-posts-title { font-size: 1.8rem; margin-bottom: 25px; text-align: center; }
.blog-card-small .blog-card-image { height: 180px; } /* Smaller image for related posts */
.blog-card-small .blog-card-title { font-size: 1.2rem; }

.comments-section { margin-top: 50px; }
.comments-title { font-size: 1.8rem; margin-bottom: 25px; }
.comment-form p:first-child { font-size: 0.9rem; color: var(--color-grey-dark); margin-bottom: 15px; }
.form-group-inline { display: flex; flex-direction: column; gap: 20px; }
.form-group-inline > div { flex: 1; }


/* --------------------
   Media Queries for Responsiveness
   -------------------- */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  h1 {
    font-size: 3.2rem;
  }

  .page-hero h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
  }

  section {
    padding: 80px 0;
  }

  body>.header+section:not(.hero):not(.page-hero) {
    padding-top: calc(var(--header-height) + 80px);
  }

  .page-hero + section {
    padding-top: 80px;
  }

  /* Header */
  .hamburger {
    display: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
    position: static;
    width: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    top: auto;
    left: auto;
    z-index: auto;
  }

  .nav-menu.active {
    /* For desktop, .active on .nav-menu should not change its base desktop style */
    display: flex;
    /* Ensure it remains flex if JS toggled it to block */
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .nav-menu .nav-links-list {
    flex-direction: row;
  }

  .nav-menu .nav-links-list li {
    margin: 0 0 0 25px;
    width: auto;
  }

  .nav-menu .nav-links-list a {
    color: var(--text-on-light);
    padding: 5px 10px;
    display: inline-block;
    width: auto;
  }

  .header.scrolled .nav-menu .nav-links-list a {
    color: var(--text-on-dark);
  }

  .nav-menu .nav-links-list a:hover,
  .nav-menu .nav-links-list a.active {
    background-color: transparent;
    color: var(--color-primary);
  }

  /* Hero Section */
  .hero {
    text-align: left;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
  }

  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-content .subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-image {
    flex: 0 0 45%;
  }

  /* Services Overview & Grids */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-listing .blog-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dev-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .office-locations {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Education Page Specific */
  .mission-section .container,
  .global-impact .container {
    flex-direction: row;
    text-align: left;
  }

  .mission-content,
  .impact-content {
    text-align: left;
  }

  .mission-section .container.reverse,
  /* Add class="reverse" to container for image-left */
  .global-impact .container.reverse {
    flex-direction: row-reverse;
  }

  .impact-stats {
    justify-content: flex-start;
  }


  /* Solutions Page Specific */
  .solutions-section .solution {
    flex-direction: row;
    gap: 50px;
  }

  .solutions-section .solution:nth-child(even) {
    flex-direction: row-reverse;
    /* Alternate layout */
  }

  .solution-content {
    text-align: left;
  }

  /* Resources Page Specific */
  .newsletter-section .container {
    flex-direction: row;
    text-align: left;
  }

  .newsletter-content {
    flex: 1;
  }

  .newsletter-form {
    flex: 1;
    max-width: none;
  }


  /* About Page Specific */
  .timeline::after {
    left: 50%;
    margin-left: -1.5px;
  }

  /* Ensure it's centered */
  .timeline-item:nth-child(odd) .timeline-year {
    right: auto;
    left: calc(100% + 30px);
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-year {
    left: auto;
    right: calc(100% + 30px);
    text-align: right;
  }

  /* Contact Page Specific */
  .contact-section .container {
    flex-direction: row;
    gap: 50px;
  }

  .consultation-cta .container {
    flex-direction: row;
    text-align: left;
  }

  .consultation-cta .cta-content {
    flex: 1;
  }

  /* Blog Single Post */
  .post-title { font-size: 2.8rem; }
  .form-group-inline { flex-direction: row; }


  /* Footer */
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    gap: 50px;
  }

  .footer-about img {
    margin: 0 0 20px 0;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p {
    margin-bottom: 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    /* width: 85%; already set, max-width is better */
  }

  h1 {
    font-size: 3.5rem;
  }

  .page-hero h1 {
    font-size: 4rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Homepage services */
  .education-services .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Education page services */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* More flexible for team */
  .resources-grid,
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-listing .blog-grid-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

  /* .container max-width: 1140px; already set */
  .main-nav .nav-links-list li {
    margin-left: 30px;
  }

  .main-nav .nav-links-list a {
    font-size: 1rem;
  }
}

/* Timeline adjustments for smaller tablets where 50% width is too tight */
@media (max-width: 767px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    margin-bottom: 40px;
  }

  .timeline-item::before {
    /* The line connecting to circle */
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 15px;
  }

  /* Circle position */
  .timeline-year {
    position: static;
    /* Stack above content */
    margin-bottom: 10px;
    text-align: left !important;
    font-size: 1.1rem;
  }

  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    left: auto;
    right: auto;
  }
}