/* Custom CSS */
/* Define CSS Variables for consistent theming */
:root {
  --dark-purple: #2c2541;
  --accent-red: #cc0000;
  --light-gray-bg: #f8f9fa;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333;
}

* {
  font-family: "Titillium Web", sans-serif;
}

/* Base Body Styles */
body {
  font-family: Arial, sans-serif;
  background-color: var(--light-gray-bg);
  color: var(--text-color-dark);
  margin: 0; /* Reset default body margin */
  padding: 0; /* Reset default body padding */
}

/* General Section Padding */
.content-section,
.dark-bg,
.light-bg {
  padding: 60px 0; /* Standardized padding for main sections */
}
.content-section {
  padding: 40px 0; /* Potentially smaller padding for specific content sections */
}
.dark-bg {
  background-color: var(--dark-purple);
  color: var(--text-color-light);
}
.light-bg {
  background-color: var(--light-gray-bg);
  color: var(--text-color-dark);
}

/* --- Navbar Styling --- */
.navbar {
  background-color: #f0f0f0; /* Light grey navbar background */
  padding: 1rem 0;
  border-bottom: 3px solid var(--accent-red);
}

.navbar-brand {
  color: black !important; /* Make brand text black */
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand .logo-placeholder {
  width: 40px;
  height: 40px;
  background-color: var(--accent-red);
  border-radius: 5px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: normal;
}

.navbar-nav .nav-link {
  position: relative;
  color: black !important; /* Initial color before hover */
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: -5px; /* Position above the text */
  left: 50%;
  transform: translateX(-50%);
  width: 0; /* Starts with no width */
  height: 2px; /* Thickness of the dash */
  background-color: var(--accent-red);
  transition: width 0.3s ease; /* Smooth transition for dash growth */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  /* Added active state */
  color: var(--accent-red) !important; /* Red on hover and for active link */
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  /* Dash for active link */
  width: 80%; /* Dash length on hover and for active link */
}

/* Dropdown specific styles */
.navbar .dropdown-menu {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  padding: 0.5rem 0;
}

.navbar .dropdown-menu .dropdown-item {
  color: var(--text-color-dark); /* Dark text for dropdown items */
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: var(--accent-red);
  color: white;
}

/* Search Container in Navbar */
.navbar .search-container {
  border: 1px solid #666; /* Visible border on light background */
  border-radius: 5px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.navbar .search-container input {
  border: none;
  background-color: transparent;
  color: black; /* Input text color */
  padding: 0.375rem 0.75rem;
}

.navbar .search-container input::placeholder {
  color: #666; /* Placeholder text color for visibility */
}

.navbar .search-container button {
  background-color: transparent;
  border: none;
  color: black; /* Search icon/button color */
  padding: 0.375rem 0.75rem;
  cursor: pointer;
}

/* Social Icons in Navbar */
.navbar .social-icons a {
  color: black; /* Social icons color for visibility */
  margin-left: 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.navbar .social-icons a:hover {
  color: var(--accent-red);
}

/* --- Hero Section (Homepage) --- */
.hero-section {
  background-color: var(--dark-purple); /* Fallback */
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Crect width="100" height="100" fill="%23ccc"%3E%3C/rect%3E%3Ctext x="50" y="50" font-family="Arial" font-size="10" fill="%23666" text-anchor="middle" dominant-baseline="middle"%3EHero Image Placeholder%3C/text%3E%3C/svg%3E'); /* Generic SVG placeholder */
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black; /* Text color inside hero */
  text-align: center;
  position: relative;
  padding: 40px 0; /* Add some padding */
}
.hero-section h2 {
  font-size: 2.5rem;
}
.hero-section p {
  font-size: 1rem;
  color: black(255, 255, 255, 0.8);
}

/* --- About Us Hero Section (specific for About Us page) --- */
.about-hero-section {
  /* Using a placeholder. In production, replace with image_0ef145.jpg path */
  background-image: url("https://via.placeholder.com/1500x400/343a40/ffffff?text=About+Us+Background");
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  color: black;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.about-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: -1;
}
.about-hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
}
.about-hero-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  color: black(255, 255, 255, 0.9);
}

/* --- NCR Counterpoint SQL Retail Store POS System section (About Us page) --- */
.pos-system-section h2 {
  font-size: 2.2rem;
  color: var(--dark-purple);
  margin-bottom: 30px;
  text-align: center;
}
.pos-system-section .lead-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.pos-system-section .text-content {
  color: #555;
  line-height: 1.6;
}
.pos-system-section .img-container {
  text-align: center;
  margin-bottom: 30px; /* Space below image on smaller screens */
}
.pos-system-section .img-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Swift Installation & User friendly section (About Us page) --- */
.swift-install-section {
  background-color: white; /* As per image */
  padding: 60px 0;
  text-align: center;
}
.swift-install-section h2 {
  font-size: 2.5rem;
  color: var(--dark-purple);
  margin-bottom: 30px;
}
.swift-install-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}
.swift-install-section .text-block {
  background-color: var(
    --light-gray-bg
  ); /* Slight background for distinction */
  padding: 30px;
  border-radius: 8px;
  height: 100%; /* For equal height in row */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.swift-install-section .text-block h4 {
  color: var(--dark-purple);
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.swift-install-section .text-block p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: none; /* Override previous max-width */
}

/* --- Card Styles (Features, etc.) --- */
.card-custom,
.feature-item-grid {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-custom h3 {
  color: var(--dark-purple);
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.card-custom .icon-placeholder,
.feature-item-grid .icon-box {
  width: 80px;
  height: 80px;
  background-color: var(--accent-red);
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}
.feature-item-grid {
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
}
.feature-item-grid .icon-box {
  width: 60px; /* Smaller for feature grid */
  height: 60px;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.feature-item-grid h5 {
  color: var(--dark-purple);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.feature-item-grid p {
  font-size: 0.9rem;
  color: #555;
}

/* --- Testimonial Card --- */
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--text-color-light);
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.testimonial-card .quote-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-card .quote-content {
  margin-left: 40px;
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-card .author-info {
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.testimonial-card .author-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--light-gray-bg);
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-dark);
  font-size: 0.8rem;
}
.testimonial-card .author-details strong {
  display: block;
  color: var(--accent-red);
}
.testimonial-card .author-details span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Contact Form --- */
.contact-form-container {
  background-color: white;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.contact-form-container .form-control,
.contact-form-container .form-select {
  border-color: #ddd;
  padding: 0.75rem 1rem;
  margin-bottom: 15px;
  color: var(--text-color-dark); /* Ensure input text is visible */
}
.contact-form-container textarea {
  min-height: 120px;
}
.contact-form-container .btn-submit {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
  padding: 0.8rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.contact-form-container .btn-submit:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* --- Call to Action Buttons --- */
.btn-red {
  background-color: var(--accent-red);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-decoration: none; /* Remove underline */
  display: inline-block; /* For proper padding and margin */
}
.btn-red:hover {
  background-color: #a00;
  color: white;
}

.btn-outline-dark-purple {
  border: 2px solid var(--dark-purple);
  color: var(--dark-purple);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  display: inline-block;
}
.btn-outline-dark-purple:hover {
  background-color: var(--dark-purple);
  color: white;
}

/* --- Info Blocks (Compliance, Let's Talk, Start New POS - used in Contact and other sections) --- */
.info-block {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--text-color-light);
  height: 100%;
}
.info-block h4 {
  color: var(--accent-red);
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.info-block .icon-circle {
  width: 40px;
  height: 40px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 15px;
}

/* --- Numbered List Items (used in home page) --- */
.info-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-list-item .number-circle {
  width: 30px;
  height: 30px;
  background-color: var(--accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 15px;
}
.info-list-item p {
  margin-bottom: 0;
  line-height: 1.4;
  color: var(--text-color-dark); /* Ensure visibility on light background */
}

/* --- Phone Contact Block (used in home page) --- */
.phone-contact {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  max-width: 400px; /* Constrain width as per image */
  margin-left: auto; /* Center if needed */
  margin-right: auto; /* Center if needed */
}
.phone-contact .avatar-placeholder {
  width: 60px;
  height: 60px;
  background-color: #ccc;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.7rem;
}
.phone-contact .phone-number {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--dark-purple);
  margin-bottom: 5px;
}
.phone-contact .contact-text {
  font-size: 0.9rem;
  color: #777;
}

/* --- Generic Placeholder Styles (for images etc.) --- */
.img-placeholder,
.wide-img-placeholder {
  width: 100%;
  height: 250px; /* Default for .img-placeholder */
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 5px;
}
.wide-img-placeholder {
  height: 350px;
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* --- Let's Get Started Section (common across pages) --- */
.let-s-get-started-section {
  background-color: var(--dark-purple);
  padding: 80px 0;
  text-align: center;
}
.let-s-get-started-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color-light);
}
.let-s-get-started-section .section-description {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.7);
}
.let-s-get-started-section .schedule-button {
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

/* --- Contact Us Intro Section (specific for Contact Us page) --- */
.contact-us-intro-section {
  background-color: white;
  padding: 80px 0;
  text-align: center;
}
.contact-us-intro-section h1 {
  font-size: 3rem;
  color: var(--dark-purple);
  margin-bottom: 20px;
}
.contact-us-intro-section .lead {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 60px;
}
.contact-us-intro-section .info-card {
  background-color: transparent;
  border: none;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-us-intro-section .info-card .icon-lg {
  font-size: 3rem;
  color: var(--accent-red);
  margin-bottom: 20px;
}
.contact-us-intro-section .info-card h4 {
  color: var(--dark-purple);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.contact-us-intro-section .info-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}
.contact-us-intro-section .info-card p strong {
  color: var(--accent-red);
}

/* --- Footer --- */
footer {
  background-color: var(--dark-purple);
  color: var(--text-color-light);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer .map-link {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .map-link:hover {
  color: var(--accent-red);
}

/* Map Link Container (often placed just above footer) */
.map-link-container {
  background-color: var(--dark-purple); /* Or match footer background */
  color: var(--text-color-light);
  padding-bottom: 20px;
  text-align: center;
}
.map-link-container .map-link {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}
.map-link-container .map-link:hover {
  color: var(--accent-red);
}

/* --- NEW: Industry Cards Grid --- */
.industry-card {
  background-color: #3f3554; /* Dark background as seen in images for cards */
  color: white;
  min-height: 200px; /* Adjust as needed */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover; /* Ensure background image covers the card */
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  transition: background 0.3s ease;
}
.industry-card h5 {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  margin: 0;
  font-weight: bold;
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.industry-card:hover::before {
  background: rgba(0, 0, 0, 0.7); /* Darker overlay on hover */
}

/* --- NEW: About Us - NCR Counterpoint SQL Retail Store POS System Features Section --- */
.pos-features-about-section {
  background-color: var(
    --light-gray-bg
  ); /* Matches the screenshot background */
  padding: 60px 0; /* Standard section padding */
}

.pos-features-about-section .section-heading {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative; /* For the green line */
}

.pos-features-about-section .section-heading .why-choose-us-label {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--accent-red);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pos-features-about-section .section-heading::after {
  content: "";
  display: block;
  width: 60px; /* Length of the green line */
  height: 4px;
  background-color: #6cbf4d; /* Green color for the line */
  margin: 15px auto 0; /* Center the line below the heading */
}

.feature-grid-about .feature-box-about {
  background-color: white;
  border: 1px solid #e0e0e0; /* Subtle border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
  transition: transform 0.2s ease; /* Hover effect */
}

.feature-grid-about .feature-box-about:hover {
  transform: translateY(-5px);
}

.feature-grid-about .feature-icon-about {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-red); /* Red color for icons */
}

.feature-grid-about h5 {
  color: var(--dark-purple);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature-grid-about p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* --- NEW: News Hero Section --- */
.news-hero-section {
  background-color: #f0f4f8; /* Light background as per screenshot */
  padding: 80px 0;
  text-align: left;
  min-height: 250px;
  display: flex;
  align-items: center;
}
.news-hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--dark-purple);
  margin-bottom: 15px;
}
.news-hero-section p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
}

/* --- NEW: News Articles Stacked Horizontally within each card --- */
.news-articles-stacked {
  padding: 60px 0;
}

.news-card-horizontal {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card-horizontal .news-img-container {
  /* On small screens, image will be on top (flex-column).
       On md and up, it will be left (flex-md-row). */
  width: 100%; /* Default to full width on small screens */
  height: 250px; /* Consistent height for images */
  overflow: hidden; /* Hide overflowing parts of the image */
}

@media (min-width: 768px) {
  /* Medium devices and up */
  .news-card-horizontal .news-img-container {
    width: 400px; /* Fixed width for the image container on larger screens */
    height: 250px; /* Maintain height */
  }
}

.news-card-horizontal img {
  width: 100%;
  height: 100%; /* Make image fill its container */
  object-fit: cover; /* Ensures image covers the area without distortion */
}

.news-card-horizontal .news-card-body {
  /* flex-grow-1 is already applied in HTML */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes meta to bottom if content is short */
}

.news-card-horizontal .news-category {
  font-size: 0.85rem;
  color: var(--accent-red);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.news-card-horizontal .news-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--dark-purple);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card-horizontal .news-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: auto; /* Pushes meta to the bottom */
}

.news-card-horizontal .news-meta .bullet-separator {
  margin: 0 5px;
}
