/* 4C InfoTech Solutions — Brand foundation */

:root {
  --4c-navy: #102a43;
  --4c-blue: #1769aa;
  --4c-cyan: #20b8d5;
  --4c-text: #243447;
  --4c-muted: #627d98;
  --4c-light: #f4f8fc;
  --4c-white: #ffffff;
}

/* Base typography and page colors */
body {
  color: var(--4c-text);
  background: var(--4c-white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--4c-navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--4c-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--4c-cyan);
}

/* Main content area */
.container-header {
  background: var(--4c-navy);
  background-image: none;
}

.container-header .mod-menu a,
.container-header .navbar-brand,
.container-header .navbar-brand a {
  color: var(--4c-white);
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus {
  color: var(--4c-cyan);
}

/* Buttons */
.btn,
button,
input[type="submit"] {
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary,
.btn.btn-primary {
  color: var(--4c-white);
  background: var(--4c-blue);
  border-color: var(--4c-blue);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--4c-navy);
  border-color: var(--4c-navy);
}

/* Form controls */
.form-control,
input[type="text"],
input[type="email"],
textarea,
select {
  border-radius: 5px;
  border-color: #cbd5e1;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--4c-blue);
  box-shadow: 0 0 0 3px rgb(23 105 170 / 15%);
}

/* Footer */
.container-footer {
  color: #e6edf5;
  background: var(--4c-navy);
  background-image: none;
}

.container-footer a {
  color: #bfefff;
}

.container-footer a:hover {
  color: var(--4c-white);
}

/* Images and mobile layout */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .container-component,
  .container-sidebar-left,
  .container-sidebar-right {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
/* 4C InfoTech staging header */
.container-header {
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 2px 12px rgba(16, 42, 67, 0.08);
}

.container-header .navbar-brand,
.container-header .navbar-brand a,
.container-header .mod-menu a {
  color: #102a43 !important;
}

.container-header .navbar-brand img {
  width: auto;
  max-width: 320px;
  max-height: 78px;
  object-fit: contain;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus {
  color: #1769aa !important;
}

@media (max-width: 767px) {
  .container-header .navbar-brand img {
    max-width: 230px;
    max-height: 60px;
  }
}

/* Hide article metadata on the staging website */
.com-content-article .article-info {
    display: none !important;
}
/* Hide the Joomla article title on the homepage only */
body.itemid-101 .com-content-article .page-header {
    display: none !important;
}

/* 4C InfoTech — align navigation with the logo */
.container-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 4%;
}

.container-header .navbar-brand {
    margin-right: auto;
}

.container-header .container-nav {
    margin-left: auto;
}

.container-header .mod-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.container-header .mod-menu > li {
    margin: 0;
}

.container-header .mod-menu a {
    padding: 8px 0;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767px) {
    .container-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .container-header .container-nav {
        margin-left: 0;
        width: 100%;
    }

    .container-header .mod-menu {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}


/* Align the navigation and logo in one header row */
.container-header {
    position: relative;
}

.container-header .container-topbar {
    position: absolute !important;
    top: 50% !important;
    right: 23% !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 5;
    width: auto !important;
    max-width: 70%;
    padding: 0 !important;
    margin: 0 !important;
}

.container-header .container-topbar .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0;
    padding: 0;
}

.container-header .container-topbar .mod-menu > li {
    margin: 0 !important;
}

.container-header .container-header,
.container-header > .grid-child {
    min-height: 96px;
}

.container-header > .grid-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 4% !important;
}

.container-header .navbar-brand {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .container-header .container-topbar {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 0 5% 12px !important;
    }

    .container-header > .grid-child {
        min-height: auto;
        padding: 12px 5% !important;
    }
}
.container-header .container-topbar {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
}


/* 4C InfoTech Services page */
.services-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.services-page .services-intro {
  max-width: 850px;
  margin-bottom: 36px;
}

.services-page .eyebrow {
  color: #1769aa;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.services-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.services-page .services-lead {
  color: #52677d;
  font-size: 1.12rem;
  line-height: 1.8;
}

.services-page .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 56px;
}

.services-page .service-card {
  padding: 30px 26px;
  background: #f7faff;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(16, 42, 67, 0.04);
}

.services-page .service-number {
  color: #1769aa;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.services-page .service-card h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.services-page .service-card p {
  color: #52677d;
  line-height: 1.75;
}

.services-page .service-card ul {
  padding-left: 20px;
  margin-top: 18px;
}

.services-page .service-card li {
  margin-bottom: 9px;
}

.services-page .services-cta {
  padding: 40px 28px;
  text-align: center;
  background: #f1f7fd;
  border-radius: 12px;
}

.services-page .services-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.services-page .services-cta p {
  color: #52677d;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .services-page .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-page {
    padding: 28px 16px 44px;
  }

  .services-page .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-page .service-card {
    padding: 24px 20px;
  }
}
  
/* 4C InfoTech — permanent Services card grid */
.services-page .services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch;
    width: 100%;
}

.services-page .service-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.06);
}

.services-page .service-card h2,
.services-page .service-card h3 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .services-page .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .services-page .services-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Hide Joomla's automatic page title on the Services page only */
body.itemid-102 .com-content-article .page-header {
    display: none !important;
}


/* =========================================
   4C InfoTech - Contact Consultation Card
   ========================================= */

body.itemid-106 .com-content-article {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
}

body.itemid-106 .com-content-article h1,
body.itemid-106 .com-content-article h2 {
    color: #102d50;
}

body.itemid-106 .com-content-article .cf-form,
body.itemid-106 .com-content-article form.cf-form {
    max-width: 720px;
    margin: 28px auto 40px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(16, 45, 80, 0.09);
}

body.itemid-106 .com-content-article .cf-control-group {
    margin-bottom: 20px;
}

body.itemid-106 .com-content-article .cf-form label {
    color: #263b53;
}

body.itemid-106 .com-content-article .cf-form input,
body.itemid-106 .com-content-article .cf-form select,
body.itemid-106 .com-content-article .cf-form textarea {
    max-width: 100%;
    border-radius: 6px;
}

@media (max-width: 600px) {
    body.itemid-106 .com-content-article {
        padding: 16px;
    }

    body.itemid-106 .com-content-article .cf-form,
    body.itemid-106 .com-content-article form.cf-form {
        padding: 20px;
        margin-top: 20px;
    }
}

/* 4C InfoTech - Consultation Form Card */
body.itemid-106 #cf_1 {
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    margin: 28px auto 40px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid #dce7f2 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(16, 45, 80, 0.10) !important;
}

body.itemid-106 #cf_1 form#cf1 {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 600px) {
    body.itemid-106 #cf_1 {
        width: calc(100% - 24px) !important;
        padding: 18px !important;
        margin: 20px auto 30px !important;
    }
}

/* Contact page: two-column layout */
body.itemid-106 .contact-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 24px;
}

body.itemid-106 .contact-info,
body.itemid-106 .contact-form-card {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 55, 90, 0.08);
}

body.itemid-106 .contact-info h1,
body.itemid-106 .contact-info h2,
body.itemid-106 .contact-form-card h2 {
    color: #123b67;
    margin-top: 0;
}

body.itemid-106 .contact-services li {
    margin-bottom: 16px;
}

body.itemid-106 .contact-info a {
    color: #1769aa;
    overflow-wrap: anywhere;
}

body.itemid-106 .contact-form-card .convertforms {
    width: 100%;
    max-width: 100%;
}

body.itemid-106 .contact-form-card .cf-form-wrap,
body.itemid-106 .contact-form-card .cf-fields {
    width: 100%;
    max-width: 100%;
}

body.itemid-106 .contact-form-card input,
body.itemid-106 .contact-form-card textarea,
body.itemid-106 .contact-form-card select {
    max-width: 100%;
}

@media (max-width: 800px) {
    body.itemid-106 .contact-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 16px;
    }

    body.itemid-106 .contact-info,
    body.itemid-106 .contact-form-card {
        padding: 22px;
    }
}


/* Make Contact page cards equal height */
body.itemid-106 .contact-layout {
    align-items: stretch !important;
}

body.itemid-106 .contact-info,
body.itemid-106 .contact-form-column {
    height: 100%;
    box-sizing: border-box;
}

body.itemid-106 .contact-info {
    height: 100%;
}


/* About page cards */
body.itemid-104 .about-page {
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 24px;
}

body.itemid-104 .about-hero-card,
body.itemid-104 .about-card,
body.itemid-104 .about-cta-card {
    background: #fff;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 55, 90, 0.08);
    padding: 30px;
    box-sizing: border-box;
}

body.itemid-104 .about-hero-card {
    margin-bottom: 24px;
    border-top: 4px solid #1769aa;
}

body.itemid-104 .about-eyebrow {
    color: #1769aa;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

body.itemid-104 .about-page h1,
body.itemid-104 .about-page h2 {
    color: #123b67;
    margin-top: 0;
}

body.itemid-104 .about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

body.itemid-104 .about-card {
    height: 100%;
}

body.itemid-104 .about-card li {
    margin-bottom: 10px;
}

body.itemid-104 .about-cta-card {
    margin-top: 24px;
    background: #f1f6fc;
    text-align: center;
}

body.itemid-104 .about-cta-button {
    display: inline-block;
    background: #1769aa;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 6px;
    margin-top: 8px;
}

body.itemid-104 .about-cta-button:hover {
    background: #123b67;
}

@media (max-width: 700px) {
    body.itemid-104 .about-page {
        padding: 0 16px;
    }

    body.itemid-104 .about-card-grid {
        grid-template-columns: 1fr;
    }

    body.itemid-104 .about-hero-card,
    body.itemid-104 .about-card,
    body.itemid-104 .about-cta-card {
        padding: 22px;
    }
}
body.itemid-104 .about-card-grid {
    align-items: stretch;
}

body.itemid-104 .about-card {
    height: 100%;
    min-height: 175px;
    box-sizing: border-box;
}

/* Align About page heading with the content cards */
body.itemid-104 main > .com-content-article > .page-header {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 24px;
    box-sizing: border-box;
}

body.itemid-104 .about-page {
    margin-top: 24px;
}


/* 4C InfoTech Solutions - Footer cards */
.site-footer {
    background: #112b43;
    color: #ffffff;
    padding: 48px 5% 22px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.site-footer .site-footer-grid {
    max-width: 1180px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.site-footer .footer-column {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 24px 22px;
    min-width: 0;
}

.site-footer .footer-column h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin: 0 0 18px;
}

.site-footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-column li {
    margin: 0 0 12px;
}

.site-footer .footer-column a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer .footer-column a:hover {
    color: #35c2dc;
    text-decoration: underline;
}

.site-footer .site-footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .site-footer-bottom p {
    margin: 0;
}

@media (max-width: 900px) {
    .site-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-footer .site-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* Footer: expand cards across the available width */
.site-footer .site-footer-grid {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto 32px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.site-footer .footer-column {
    width: 100%;
    min-height: 180px;
    box-sizing: border-box;
    padding: 24px;
}

.site-footer .footer-column li {
    overflow-wrap: anywhere;
}

.site-footer .site-footer-bottom {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .site-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .site-footer .site-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer: larger, more spacious cards */
.site-footer .site-footer-grid {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.site-footer .footer-column {
    width: 100%;
    min-width: 0;
    min-height: 220px;
    box-sizing: border-box;
    padding: 30px 28px;
    border-radius: 14px;
}

.site-footer .footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.site-footer .footer-column li {
    margin-bottom: 16px;
    line-height: 1.6;
}

.site-footer .footer-column a {
    font-size: 1rem;
}

.site-footer .site-footer-bottom {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .site-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .site-footer .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* 4C InfoTech footer - larger cards */
.site-footer .site-footer-grid {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.site-footer .footer-column {
    width: 100%;
    min-width: 0;
    min-height: 280px;
    padding: 36px 32px;
    box-sizing: border-box;
    border-radius: 14px;
}

.site-footer .footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 26px;
}

.site-footer .footer-column li {
    margin-bottom: 20px;
    line-height: 1.7;
}

.site-footer .footer-column a {
    font-size: 1.05rem;
}

.site-footer .site-footer-bottom {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .site-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .site-footer .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer .footer-column {
        min-height: 0;
        padding: 28px;
    }
}


/* 4C InfoTech footer layout — final width and spacing override */
.container-footer {
    width: 100% !important;
    max-width: none !important;
    padding: 48px 4% 24px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-grid {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto 32px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-grid > .footer-column {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 260px !important;
    padding: 32px 30px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-bottom {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .container-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (max-width: 560px) {
    .container-footer {
        padding: 32px 16px 20px !important;
    }
    .container-footer .site-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .container-footer .site-footer-grid > .footer-column {
        min-height: 0 !important;
        padding: 24px !important;
    }
}

/* FINAL FOOTER WIDTH OVERRIDE — staging site */
.container-footer,
footer.container-footer {
    width: 100% !important;
    max-width: none !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
    box-sizing: border-box !important;
}

.container-footer > .grid-child,
.container-footer .grid-child,
.container-footer .mod-custom,
.container-footer .moduletable {
    width: 100% !important;
    max-width: 1500px !important;
    box-sizing: border-box !important;
}

.container-footer footer.site-footer {
    display: block !important;
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto 24px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-grid > .footer-column {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 240px !important;
    padding: 30px 28px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-bottom {
    width: 100% !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .container-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 560px) {
    .container-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .container-footer .site-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .container-footer .site-footer-grid > .footer-column {
        min-height: 0 !important;
        padding: 24px !important;
    }
}
/* Final footer alignment adjustment */
.container-footer .site-footer {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 40px 24px 28px !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto 18px !important;
}

.container-footer .footer-column {
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.container-footer .site-footer-bottom {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

@media (max-width: 800px) {
    .container-footer .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .container-footer .site-footer-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Footer cards: reduce height */
.container-footer .footer-column {
    padding: 22px 26px !important;
    min-height: 0 !important;
}

.container-footer .footer-column h3 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.container-footer .footer-column ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.container-footer .footer-column li {
    margin-bottom: 10px !important;
}

.container-footer .footer-column li:last-child {
    margin-bottom: 0 !important;
}


/* Insights page */
.insights-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 24px 56px;
    color: #172f4d;
}

.insights-hero {
    background: #f3f7fc;
    border: 1px solid #d9e5f2;
    border-top: 4px solid #1769aa;
    border-radius: 14px;
    padding: 38px 34px;
    margin-bottom: 28px;
}

.insights-page .eyebrow,
.insight-category {
    color: #1769aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.insights-hero h1 {
    color: #12304f;
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.insights-hero p {
    max-width: 850px;
    line-height: 1.8;
    margin-bottom: 0;
}

.insights-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
    margin-bottom: 32px;
}

.insight-card {
    background: #fff;
    border: 1px solid #d9e5f2;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(18, 48, 79, 0.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.insight-card h2 {
    color: #12304f;
    font-size: 21px;
    line-height: 1.4;
    margin: 14px 0 12px;
}

.insight-card p {
    line-height: 1.75;
    margin-bottom: 22px;
}

.insight-link {
    color: #1769aa;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}

.insight-link:hover {
    color: #0e4c80;
    text-decoration: underline;
}

.insights-cta {
    background: #122d48;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 36px 24px;
    margin-top: 32px;
}

.insights-cta h2 {
    color: #fff;
    margin-top: 0;
}

.insights-cta p {
    margin-bottom: 22px;
}

.insights-button {
    display: inline-block;
    background: #20b6cf;
    color: #102c45 !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    padding: 13px 22px;
}

.insights-button:hover {
    background: #45c9dc;
}

@media (max-width: 900px) {
    .insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .insights-grid {
        grid-template-columns: 1fr !important;
    }

    .insights-hero {
        padding: 28px 22px;
    }

    .insight-card {
        padding: 24px 20px;
    }
}
/* Align Insights page heading with the content cards */
body.itemid-105 main > .com-content-article > .page-header {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 0;
    box-sizing: border-box;
}

body.itemid-105 main > .com-content-article > .page-header h1 {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Data & Cloud Solutions page */
.service-detail-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 24px 0 56px;
    color: #102f4b;
}

.service-detail-hero {
    background: #f2f7fc;
    border: 1px solid #d7e5f4;
    border-top: 4px solid #1769aa;
    border-radius: 12px;
    padding: 34px 38px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(16, 47, 75, 0.06);
}

.service-detail-page .eyebrow {
    display: block;
    color: #1769aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.service-detail-page h1 {
    color: #102f4b;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    margin: 0 0 14px;
}

.service-detail-page h2 {
    color: #102f4b;
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.service-detail-page p {
    line-height: 1.75;
    margin: 0 0 14px;
}

.service-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
    align-items: stretch;
    margin: 28px 0 36px;
}

.service-detail-card {
    min-width: 0;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 47, 75, 0.07);
}

.service-detail-card h2 {
    font-size: 22px;
}

.service-detail-card ul {
    padding-left: 22px;
    margin: 16px 0 0;
}

.service-detail-card li {
    line-height: 1.7;
    margin-bottom: 8px;
}

.service-detail-cta {
    background: #102b45;
    color: #fff;
    text-align: center;
    padding: 36px 28px;
    border-radius: 12px;
    margin-top: 32px;
}

.service-detail-cta h2 {
    color: #fff;
}

.service-detail-cta p {
    max-width: 760px;
    margin: 0 auto 22px;
}

.service-detail-button {
    display: inline-block;
    background: #20b5cf;
    color: #102b45 !important;
    font-weight: 700;
    text-decoration: none !important;
    padding: 13px 22px;
    border-radius: 6px;
}

.service-detail-button:hover {
    background: #5bd0e2;
    color: #102b45 !important;
}

@media (max-width: 900px) {
    .service-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .service-detail-page {
        padding: 20px 16px 40px;
    }

    .service-detail-hero {
        padding: 26px 22px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .service-detail-card {
        padding: 24px 22px;
    }
}
/* Align Data & Cloud Solutions page heading with its content card */
body.itemid-113 .com-content-article .page-header {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}
/* Hide only the Data & Cloud Solutions item in the top navigation */
.container-header .mod-menu a[href*="data-cloud-solutions"] {
    display: none !important;
}


/* Services page: match the About page's introductory card */
.services-page .services-intro {
    max-width: 1120px;
    margin: 0 auto 32px;
    padding: 0;
}

.services-page .services-hero-card {
    box-sizing: border-box;
    width: 100%;
    padding: 32px;
    background: #f1f6fc;
    border: 1px solid #d6e4f3;
    border-top: 4px solid #1769aa;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 39, 65, 0.06);
}

.services-page .services-hero-card .eyebrow {
    margin: 0 0 16px;
    color: #1769aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.services-page .services-hero-card h1 {
    margin: 0 0 12px;
    color: #12304d;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.25;
}

.services-page .services-hero-card .services-lead {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .services-page .services-hero-card {
        padding: 24px;
    }
}
/* Hide redundant Joomla page headings on About and Services */
body.itemid-102 .com-content-article .page-header,
body.itemid-103 .com-content-article .page-header,
body.itemid-104 .com-content-article .page-header,
body.itemid-105 .com-content-article .page-header,
body.itemid-106 .com-content-article .page-header,
body.itemid-107 .com-content-article .page-header,
body.itemid-113 .com-content-article .page-header{
    display: none !important;
}

/* Keep About and Insights hero cards visually consistent */
.about-page .about-hero,
.about-page .about-hero-card,
.about-page .about-intro {
    background-color: #f1f6fc !important;
}


/* Contact information icons and layout */
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 0;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eaf3fc;
    color: #1769aa;
    font-size: 23px;
}

.contact-detail > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-detail a {
    color: #1769aa;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    text-decoration: underline;
}


/* 4C InfoTech - Main Navigation Icons */

/* Align icons and labels */
.container-header .mod-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Common icon styling */
.container-header .mod-menu > li > a::before {
    display: inline-block;
    color: #1769aa;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Home */
.container-header .mod-menu .item-101 > a::before {
    content: "\2302";
    font-size: 21px;
}

/* Services */
.container-header .mod-menu .item-102 > a::before {
    content: "\2699";
}

/* Solutions & Products */
.container-header .mod-menu .item-103 > a::before {
    content: "\25A6";
}

/* About */
.container-header .mod-menu .item-104 > a::before {
    content: "\2139";
}

/* Insights */
.container-header .mod-menu .item-105 > a::before {
    content: "\2727";
}

/* Contact */
.container-header .mod-menu .item-106 > a::before {
    content: "\2709";
}

/* Hover */
.container-header .mod-menu > li > a:hover::before {
    color: #20b8d5;
}


/* ==================================================
   4C InfoTech - Shared About / Privacy / Terms Layout
   Apply the same card styling across all three pages
   ================================================== */

.about-page {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0;
    box-sizing: border-box;
}

.about-page .about-hero-card,
.about-page .about-card,
.about-page .about-cta-card {
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 55, 90, 0.08);
    padding: 30px;
    box-sizing: border-box;
}

.about-page .about-hero-card {
    background: #f1f6fc;
    margin-bottom: 24px;
    border-top: 4px solid #1769aa;
}

.about-page .about-eyebrow {
    color: #1769aa;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about-page h1,
.about-page h2 {
    color: #123b67;
    margin-top: 0;
}

.about-page .about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.about-page .about-card {
    height: 100%;
    min-height: 175px;
}

.about-page .about-card li {
    margin-bottom: 10px;
}

.about-page .about-cta-card {
    margin-top: 24px;
    background: #f1f6fc;
    text-align: center;
}

.about-page .about-cta-button {
    display: inline-block;
    background: #1769aa;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 6px;
    margin-top: 8px;
}

.about-page .about-cta-button:hover {
    background: #123b67;
}

@media (max-width: 700px) {
    .about-page {
        width: calc(100% - 32px);
    }

    .about-page .about-card-grid {
        grid-template-columns: 1fr;
    }

    .about-page .about-hero-card,
    .about-page .about-card,
    .about-page .about-cta-card {
        padding: 22px;
    }
}

/* 4C InfoTech - Shared hero card styling */
.about-page {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 12px;
    box-sizing: border-box;
}

.about-page .about-hero-card {
    display: block;
    width: 100%;
    padding: 30px;
    margin: 0 auto 24px;
    box-sizing: border-box;
    background: #f1f6fc !important;
    border: 1px solid #dbe5f0;
    border-top: 4px solid #1769aa;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .08);
}

.about-page .about-eyebrow {
    color: #1769aa;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    margin: 0 0 16px;
}

.about-page .about-hero-card h1 {
    color: #123b67;
    margin: 0 0 10px;
}

.about-page .about-hero-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .about-page {
        padding: 0 16px;
    }

    .about-page .about-hero-card {
        padding: 22px;
    }
}