/* css/about.css */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  /* primary text colour */
  background-color: #fff;
  /* page background */
}

/* rule to prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1250px;
  /* keeps side space */
  margin: 0 auto;
  padding: 0 40px;
  /* adds breathing space on left/right */
}

/* Top Bar */
.top-bar {
  background-color: #f8f8f8;
  /* light neutral background */
  border-bottom: 1px solid #eaeaea;
  /* light border */
  padding: 8px 0;
  font-size: 0.9em;
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
  /* Space between phone and email */
  justify-content: center;
}

.contact-info span {
  margin-right: 0;
  /* Remove the right margin since we're using gap */
}

.contact-info i {
  margin-right: 5px;
  color: #694ec2;
  /* new accent color */
}

/* Main Header */
.main-header {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  position: relative;
  /* Ensures z-index will work */
  z-index: 1001;
  /* FIXED: Puts the header bar above the menu (z-index: 1000) */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Anchor for the absolute-positioned menu toggle */
}

.logo {
  margin-left: 0;
  /* Ensure logo starts from left */
}

.logo img {
  height: 70px;
  width: auto;
}

.main-nav {
  margin-left: auto;
  /* Push nav to right */
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 55px;
  /* Reduced gap between navigation items */
  margin-right: 0;
  /* Remove any right margin */
}

.main-nav li {
  margin-left: 0;
  /* Remove the left margin since we're using gap */
}

/* Navigation links */
.main-nav a {
  text-decoration: none;
  color: #2b2849;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
  /* Prevent text wrapping */
}

.main-nav a:hover,
.main-nav a.active {
  color: #694ec2;
  /* new navigation hover color */
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #2b2849;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  color: #fff;
}

.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.hero-text-centered {
  width: 100%;
  /* Ensure it takes full width */
  text-align: center;
  /* Center all text */
}

.hero-text-centered h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  /* Ensure h1 is centered */
}

.hero-text-centered p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
  /* Center the paragraph text */
  margin-left: auto;
  /* Center the paragraph container */
  margin-right: auto;
  /* Center the paragraph container */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #5e57e3, #377ddf);
  /* gradient background */
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: linear-gradient(135deg, #4d46c9, #2c6bc7);
  /* darker gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(94, 87, 227, 0.3);
}

/* Section Styling */
.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: #f8f9fa;
  /* very light neutral */
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
  font-size: 2.2rem;
  font-weight: 600;
}

/* Intro Section */
.intro-section {
  text-align: center;
}

.intro-section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.intro-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: justify;
}

.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* force 2 equal columns */
  gap: 30px;
  /* space between cards */
  justify-content: center;
  /* keeps grid centered */
}

/* Service Card Container */
.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Allow card to shrink/grow properly */
  width: 100%;
  /* Will be controlled by the grid */
}

.services-highlight .container {
  padding: 0 0px;
  /* Reduced from 20px to 10px */
}

/* --- TOP PART (IMAGE AREA) --- */
.service-card .service-icon {
  background: #eaeaea;
  /* temporary placeholder background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Prevent image overflow */
  width: 100%;
  /* Ensure image area takes full card width */
  height: 370px;
  /* larger image area */
}

.service-card .service-icon img {
  width: 100%;
  /* Image takes full container width */
  height: 100%;
  /* Change from auto to 100% */
  object-fit: cover;
  /* This will crop but maintain aspect ratio */
  display: block;
}

/* --- BOTTOM PART (TEXT AREA) --- */
.service-card .service-info {
  background: #14104d;
  /* your requested color */
  color: #fff;
  padding: 25px;
  text-align: center;
  flex-grow: 0;
  /* Change from 1 to 0 */
  height: 80px;
  /* Reduced bottom height to compensate for larger image */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically */
  align-items: center;
  /* Center content horizontally */
}

.service-card .service-info h3 {
  color: #edebfe;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  /* Remove bottom margin since we're using flex centering */
}

.service-card .service-info a:hover {
  color: #a7b1ff;
  /* subtle hover tint */
  text-decoration: underline;
}

/* News Section */

.news-section .container {
  padding: 0 0px;
  /* Reduced from 20px to 10px */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 60px;
  margin-bottom: 40px;
}

.news-card {
  background: linear-gradient(135deg, #19125f, #191464);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  /* Will be controlled by the grid */
}

.news-content {
  padding: 25px;
}

.news-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #888;
  /* new primary color for news headings */
}

.news-content h3 a {
  color: #edebfe;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-content h3 a:hover {
  color: #888;
  /* new accent color */
}

.news-content p {
  color: #adabcd;
}

.news-meta {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.section-cta {
  text-align: center;
}

/* Get In Touch Section */
.get-in-touch {
  background-color: #edeef4;
  padding: 80px 0;
  position: relative;
}

.get-in-touch-container {
  display: flex;
  align-items: flex-start;
  /* change this line */
  justify-content: space-between;
  gap: 60px;
}

.get-in-touch-text {
  margin-top: 0px;
  /* adjust up/down to fine tune alignment */
}

.get-in-touch-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a144d;
  margin-bottom: 10px;
}

.get-in-touch-text p {
  color: #7a7d90;
  font-size: 1.1rem;
}

.get-in-touch-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 60%;
}

.get-in-touch-form input {
  padding: 18px 22px;
  border: none;
  border-radius: 30px;
  background: #f6f7fb;
  box-shadow: inset 6px 6px 10px rgba(0, 0, 0, 0.05),
    inset -6px -6px 10px rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.get-in-touch-form :hover {
  background: #ffffff;
}

.get-in-touch-form :focus-within {
  background: #ffffff;
}

.btn-gradient {
  background: linear-gradient(135deg, #6652e8, #3b82f6);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #5943e1, #2563eb);
  box-shadow: 0 5px 15px rgba(94, 87, 227, 0.4);
  transform: translateY(-2px);
}

/* Footer */
.main-footer {
  background-color: #161153;
  /* new primary dark color */
  color: #ecf0f1;
  /* light text on dark bg */
  padding: 30px 0 15px;
}

.footer-links-centered {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links-centered a {
  color: #bdc3c7;
  /* medium light link colour */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.footer-links-centered a:hover {
  color: #fff;
}

.footer-contact-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer alignment fix */
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9em;
}

.contact-item i {
  color: #fff;
  /* new accent color for icons */
  width: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Ensures <sup> doesn't push the address line down */
.footer-contact sup {
  font-size: 0.7em;
  vertical-align: top;
  position: relative;
  top: -0.2em;
}

/* Fix alignment of icons and text for all contact items */
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9em;
}

/* Tighter alignment for multi-line address */
.footer-contact .contact-item span {
  line-height: 1.4;
}

/* Move footer contact & social section to right and closer together */
.footer-contact-social {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 70px;
  margin-right: 50px;
}

.follow-us-text {
  color: #bdc3c7;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons-row {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #5e57e3;
  /* new accent color border */
  border-radius: 10px;
  color: #5e57e3;
  /* new accent color */
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  background: transparent;
}

.footer-social a i {
  font-size: 18px;
}

.footer-social a:hover {
  background: linear-gradient(135deg, #5e57e3, #377ddf);
  color: #fff;
  transform: translateY(-13px);
  border-color: transparent;
}

.footer-bottom {
  border-top: 1px solid #2a2468;
  /* darker border line using primary color */
  padding-top: 15px;
  text-align: center;
  color: #bdc3c7;
  font-size: 0.85em;
}

/* Additional elements with the new color scheme */
.service-card.featured {
  background: linear-gradient(135deg, #161153, #2a2468);
  color: #fff;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured a {
  color: #fff;
}

.service-card.featured a:hover {
  color: #bdc3c7;
}

/* About Page Enhancements Starts*/

/*About Info*/

.about-info-grid {
  text-align: center;
}

.about-info-block {
  padding-bottom: 25px;
}

.about-info-block p {
  font-size: 1.3rem;
}

/*Management Section*/
.management-section {
  background-color: #fff;
  padding-bottom: 0px;
  padding-top: 40px;
}

.management-section .container {
  max-width: 1350px;
  /* slightly wider than default 1250px */
}

.management-profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  /* left smaller, right larger */
  align-items: start;
  /* ensure both start from the top */
  gap: 0px;
  margin-bottom: 70px;
}

.profile-left {
  text-align: center;
  align-self: start;
  /* keeps left content aligned to top */
  margin-top: 0;
  /* ensure no top spacing */
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.profile-left h3 {
  font-size: 1.4rem;
  color: #14104d;
  font-weight: 700;
  margin-bottom: 5px;
}

.designation {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 2px 0;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Adjust spacing between logos */
  margin-top: 12px;
}

.certification-logo {
  width: 120px;
}

.profile-right {
  margin-top: -9px;
}

.profile-right p {
  color: #222;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.management-profile .profile-right p:first-child {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .management-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-right {
    margin-top: 30px;
    text-align: left;
  }
}

/* Responsive Fix */
@media (max-width: 992px) {
  .management-profile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .right-column {
    text-align: left;
    margin-top: 25px;
  }
}

/* About Page Enhancements Ends*/

/*
|--------------------------------------------------------------------------
| Responsive Design
|--------------------------------------------------------------------------
*/
@media (max-width: 768px) {
  .container {
    padding: 0 20px !important;
  }

  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .contact-info span {
    margin: 0;
    /* Reset margin */
  }

  .social-links {
    margin-top: 10px;
  }

  .logo img {
    height: 60px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    /* This will be relative to .header-content */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    /* This is fine, but it's relative to the header */
  }

  body.menu-open .menu-toggle {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 70%;
    max-width: 300px;
    /* Added max-width */
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* This menu is on layer 1000 */
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 60px;
    /* Space for a close button or header */
  }

  .main-nav.active {
    right: 0;
    /* Slide in */
  }

  .main-nav ul {
    flex-direction: column;
    margin-top: 15px;
    gap: 0;
    /* Reset gap for column layout */
    width: 100%;
  }

  .main-nav li {
    margin: 0;
    /* Reset margin */
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 15px 20px;
    /* Add horizontal padding */
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
  }

  .hero-image img {
    height: 400px;
  }

  .hero-text-centered h1 {
    font-size: 2rem;
  }

  .hero-text-centered p {
    font-size: 1rem;
  }

  .services-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .footer-links-centered {
    gap: 20px;
  }

  .footer-contact-social {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin-right: 0;
    /* Reset margin for center alignment */
    align-items: center;
    /* Horizontally center the stacked children */
  }

  .footer-contact {
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-top: 5px;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-links-centered {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    align-items: center;
    /* Horizontally center the stacked links */
  }

  .footer-contact {
    gap: 12px;
  }

  .hero-text-centered h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Responsive layout */
@media (max-width: 992px) {
  .get-in-touch-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .get-in-touch-form {
    width: 100%;
    align-items: center;
  }

  .get-in-touch-form input {
    width: 90%;
    max-width: 400px;
    /* Added for better control */
  }

  .btn-gradient {
    width: 90%;
    max-width: 400px;
    /* Added for better control */
  }
}