

:root {
  /* Primary theme colors */
  --color-primary: #000560;
  --color-secondary: #3d3d3d;
  --color-success: #056000;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #0dcaf0;
  --color-light: #f8f9fa;
  --color-dark: #212529;

  /* Text colors */
  --color-text-primary: #212529;
  --color-text-secondary: #6c757d;
  --color-text-light: #ffffff;

  /* Background colors */
  --bg-primary: var(--color-primary);
  --bg-secondary: var(--color-secondary);
  --bg-success: var(--color-success);
  --bg-danger: var(--color-danger);
  --bg-warning: var(--color-warning);
  --bg-info: var(--color-info);
  --bg-light: var(--color-light);
  --bg-dark: var(--color-dark);
}

@font-face {
  font-family: 'Raleway';
  src: url('/railwayfont.woff2') format('woff2');
  font-weight: 400; /* Thay đổi tùy thuộc vào font */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/opensans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Italic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Italic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 250;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Thin.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 250;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Thin.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 250;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ThinItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 250;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ThinItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 275;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLight.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 275;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLight.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 275;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLightItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 275;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraLightItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Light.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Light.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-LightItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-LightItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-MediumItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-MediumItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-SemiBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-SemiBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-BoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-BoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBold.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 800;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 800;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-ExtraBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Black.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-Black.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 900;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-BlackItalic.woff') format('woff');
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 900;
    src: local('Poppins'), url('https://fonts.cdnfonts.com/s/16009/Poppins-BlackItalic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-VariableFont_wdthwght.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Italic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Italic-VariableFont_wdthwght.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Light.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 300;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-LightItalic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 600;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-SemiBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-BoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-ExtraBold.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 800;
    src: local('Open Sans'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-ExtraBoldItalic.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans Light';
    font-style: normal;
    font-weight: 300;
    src: local('Open Sans Light'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-Light-webfont.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans Condensed';
    font-style: normal;
    font-weight: 700;
    src: local('Open Sans Condensed'), url('https://fonts.cdnfonts.com/s/14884/OpenSans-CondBold.woff') format('woff');
}



.nav-bar-new-court {
    padding-left: 25px;
    padding-right: 25px;
    height: 100px;
    background-color: #fff !important;
    display: flex;
    align-items: center;
}

/* .nav-bar-new-court > .container {
    width: 100% !important;
} */

.nav-bar-new-court .navbar-nav li a {
    color: var(--color-primary) !important;
    font-family: Raleway !important;
    font-weight: 400;
    font-size: 19px !important;
}

.nav-bar-new-court .navbar-nav li a:hover,
.nav-bar-new-court .navbar-nav li a:active,
.nav-bar-new-court .navbar-nav li a:focus {
    background-color: transparent !important;
    border: none !important;
}


.nav-bar-new-court .navbar-brand {
    padding: 0;
}

.nav-bar-new-court .navbar-toggle {
    background-color: transparent !important;
    border: none !important;
}

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/Frontpage-copy.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 70vh; /* ↓ reduce from 100vh */
  min-height: 500px; /* ensures decent height on laptops */
  margin: 0;
  padding: 0;
  border-bottom: none;
}

/* remove any gap between hero and footer */
.wrapper-body, .page-copy {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Fix extra spacing under hero before footer */
.row.sectionBlockLayout.hero-banner + .footer,
.row.sectionBlockLayout.hero-banner + .footer-bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-copy > div:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hero-logo-overlay {
  position: absolute;
  top: 50%;
  left: 32%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-logo {
  width: 780px;
  max-width: 90%;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 40px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
}

.hero-logo:hover {
  transform: scale(1.02); /* only scale, no jump */
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .hero-logo-overlay {
    top: 50%;
    left: 50%;
  }
  .hero-logo {
    width: 90%;
    padding: 15px 25px;
  }
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .hero-logo {
    max-width: 90%;
    padding: 15px 25px;
  }
}

.header-block {
    max-width: 1425px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 90px;
    padding-right: 90px;
    margin: auto;
}

.header-block > p > span {
  font-family: "Open Sans";
  line-height: 24px;
}

.header-block-main {
  font-family: Raleway;
  text-transform: uppercase;
  font-size: 60px;
  line-height: 60px;
}

.footer-bottom {
  background-color: #313233 !important;
}

.copyright-footer {
    width: 100%;
    background-color: #252525;
}

.footer-bottom .privacy-placement {
    margin-top: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.main-footer h2,
.main-footer p {
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
}

.description-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1122px;
  margin: auto;
  text-align: center;
}

.description-text p:first-child {
  font-size: 24px;
  font-family: 'Poppins', sans-serif !important;
  color: #000560 !important;
  font-weight: 400;
  line-height: 28px;
}

.description-text p:nth-child(2) {
  font-size: 19px;
  font-family: "Open Sans" !important;
  color: #2b2b2b !important;
  font-weight: 400;
  line-height: 30px;
}

.title-and-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  min-width: 300px;
  min-height: 300px;
  border-radius: 8px;
}

.card .card-link {
    display: flex;
    position: absolute;
    width: calc(100% - 30px);
    height: 100%;
    padding: 24px;
    align-items: flex-end;
    font-family: Poppins;
    font-size: 27px;
    line-height: 30px;
    font-weight: 500;
    text-decoration: none;
    color: white !important;
    background-color: #00056060;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.card .card-link:hover {
    text-decoration: none;
    color: white !important;
    background-color: #000560bd;
}

.product-card:first-child .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/04/1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card:nth-child(2) .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/04/2.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card:nth-child(3) .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/04/two-adirondack-beach-chairs-silhouetted-against-a-2025-03-11-18-31-10-utc.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card:nth-child(4) .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/03/3.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card-2:first-child .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/03/lake-3778907_1920.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-card-2:nth-child(2) .card {
  background-image: url('https://nrfm.webninja.xyz/wp-content/uploads/2025/03/business-7533126_1280.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer {
    margin-top: 42px !important;
}

/* =============================
   FINAL NEWCOURT FOOTER
   ============================= */

.simple-footer {
  background-color: #ffffff !important;  /* override dark wrapper */
  border-top: 1px solid #ddd;
  padding: 30px 0;
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* override parent dark blocks in Power Pages */
.footer,
.footer-bottom,
.copyright-footer {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Left: Logo --- */
.footer-left {
  flex: 1;
  text-align: left;
  min-width: 200px;
}

.footer-logo {
  height: 50px;
  width: auto;
}

/* --- Center: Privacy Links --- */
.footer-center {
  flex: 2;
  text-align: center;
  font-size: 14px;
}

.footer-center a {
  color: #1d556f;
  text-decoration: none;
  margin: 0 4px;
}

.footer-center a:hover {
  text-decoration: underline;
}

/* --- Right: Contact Links --- */
.footer-right {
  flex: 1;
  text-align: right;
  font-size: 15px;
  line-height: 1.8;
  min-width: 150px;
}

.footer-right a {
  color: #1d556f;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left, .footer-right {
    text-align: center;
  }
}

/* =========================================
   FIX: Remove unwanted white space before footer
   ========================================= */
.footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.footer-bottom {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure no double padding around our new white footer */
.simple-footer {
  margin-top: 0 !important;
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}

/* =========================================
   FIX: Remove gap between hero and footer
   ========================================= */

/* remove default Power Pages spacing around content */
.wrapper-body, 
#mainContent,
.page-copy {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* make sure hero banner fills the wrapper height */
.wrapper-body > .page-copy > div:first-child {
  margin: 0 !important;
  padding: 0 !important;
}

/* hero section should stretch fully */
.hero-banner {
  position: relative;
  width: 100%;
  background-image: url("/Frontpage-copy.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65vh; /* adjust to your preferred hero height */
  min-height: 480px;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

/* ensure footer connects directly */
.footer, .footer-bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* optional: subtle*
/* =========================================
   FINAL FIX — Remove all spacing under hero
   ========================================= */

/* override Power Pages section layout spacing */
.row.sectionBlockLayout.hero-banner,
[data-component-theme="portalThemeColor8"].row.sectionBlockLayout.hero-banner {
  margin: 0 !important;
  padding: 0 !important;
}

/* neutralize default row and section padding */
#mainContent .page-copy,
#mainContent .xrm-editable-html,
#mainContent .xrm-attribute-value,
#mainContent .row.sectionBlockLayout {
  margin: 0 !important;
  padding: 0 !important;
}

/* wrapper fix */
#mainContent.wrapper-body {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ensure hero visually connects to footer */
.hero-banner {
  height: 65vh;
  min-height: 480px;
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

/* Power Pages adds invisible <p> inside XRM containers — kill those */
#mainContent .xrm-editable-html p:empty,
#mainContent .xrm-attribute-value p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* finally make footer attach cleanly */
footer.footer,
.footer-bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =====================================================
   DIFFERENT SPACING: HOMEPAGE vs OTHER PAGES
   ===================================================== */

/* Default (all pages) — footer has breathing room */
.wrapper-body {
  min-height: calc(100vh - 250px);
  padding-bottom: 40px;
}

.footer {
  margin-top: 60px !important;
  padding-top: 30px !important;
  border-top: 1px solid #ddd;
}

/* Homepage only: tighter layout (no extra white space) */
.wrapper-body:has(.hero-banner) {
  min-height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.wrapper-body:has(.hero-banner) .footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* Ensure hero flush with footer */
.hero-banner {
  margin-bottom: 0 !important;
}

/* =========================================
   2️⃣ FOOTER PADDING — ALL EXCEPT HOME
   ========================================= */

/* Default (non-home pages) */
.wrapper-body:not(:has(.hero-banner)) .footer {
  margin-top: 80px !important;
  padding-top: 50px !important;
}

/* Home page — keep tight */
.wrapper-body:has(.hero-banner) .footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================
   1️⃣ WIDEN NAVIGATION + FOOTER CONTAINERS
   ========================================= */

/* Expand the page container width globally */
.container, .footer-container, .navbar .container {
  max-width: 1440px !important;   /* previously ~1140px */
  padding-left: 40px !important;
  padding-right: 40px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Keep text nicely aligned for very large screens */
@media (min-width: 1600px) {
  .container, .footer-container, .navbar .container {
    max-width: 1600px !important;
  }
}

/* =====================================================
   1️⃣  EXPAND NAV + FOOTER WIDTH + HERO WIDTH
   ===================================================== */

/* Make hero, nav bar and footer span full width */
.nav-bar-new-court,
.hero-banner,
.footer,
.footer-bottom {
  width: 100% !important;
}

/* Increase inner content width for nav and footer */
.nav-bar-new-court .container,
.footer .footer-container,
.footer-bottom .container {
  max-width: 1600px !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Allow hero banner image to fully expand */
.hero-banner {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* =====================================================
   2️⃣  ADD FOOTER PADDING FOR NON-HOME PAGES
   ===================================================== */

/* When wrapper-body does NOT have a hero-banner → add breathing space */
.wrapper-body:not(:has(.hero-banner)) .footer,
.wrapper-body:not(:has(.hero-banner)) .footer-bottom {
  margin-top: 60px !important;
  padding-top: 40px !important;
  border-top: 1px solid #e0e0e0 !important;
}

/* Homepage (contains hero-banner) → keep tight */
.wrapper-body:has(.hero-banner) .footer,
.wrapper-body:has(.hero-banner) .footer-bottom {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

/* =====================================================
   3️⃣  SAFETY OVERRIDES TO WIN AGAINST PORTAL THEME
   ===================================================== */
#mainContent.wrapper-body,
.page-copy,
.xrm-editable-html,
.xrm-attribute-value,
.sectionBlockLayout {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.container {
  max-width: 1600px !important;
  width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

/* =========================================
   ALIGN NAVBAR AND FOOTER WIDTHS PERFECTLY
   ========================================= */

/* Ensure both header and footer containers use identical spacing and max width */
.nav-bar-new-court .container,
.footer .container,
.footer-bottom .container,
.footer-container {
  max-width: 1600px !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Keep hero image aligned with header/footer */
.hero-banner {
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* Fix Power Pages’ default footer shrink */
.footer, .footer-bottom {
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* Prevent scrollbars caused by rounding differences */
body {
  overflow-x: hidden;
}

/* =========================================
   ENHANCED FOOTER TEXT STYLING
   ========================================= */

.footer {
  background-color: #ffffff;
  color: #1d1d1f; /* slightly darker text for better contrast */
  font-family: 'Poppins', 'Open Sans', sans-serif;
  letter-spacing: 0.2px;
}

/* Center text section (privacy, cookies, etc.) */
.footer-center {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  line-height: 1.8;
}

.footer-center a {
  color: #000560;
  text-decoration: none;
  font-weight: 600;
}

.footer-center a:hover {
  text-decoration: underline;
  color: #c2972b; /* gold brand accent */
}

/* Right-side contact links */
.footer-right {
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.footer-right a {
  color: #000560;
  font-weight: 600;
  text-decoration: none;
}

.footer-right a:hover {
  color: #c2972b;
  text-decoration: underline;
}

/* Left-side logo + tagline */
.footer-left {
  text-align: left;
}

.footer-left .footer-logo {
  height: 48px;
  margin-bottom: 8px;
}

.footer-left p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
}

/* Add subtle top border + breathing space */
.footer {
  border-top: 1px solid #ddd;
  padding: 35px 0;
}

/* Optional: make text alignment responsive */
@media (max-width: 768px) {
  .footer-right,
  .footer-center,
  .footer-left {
    text-align: center;
  }
  .footer {
    padding: 45px 15px;
  }
}

/* =====================================================
   ADD FOOTER BREATHING SPACE ONLY ON NON-HOME PAGES
   ===================================================== */
body:not([data-sitemap-state="/"]) #mainContent {
  margin-bottom: 60px !important;   /* space before footer */
  padding-bottom: 30px !important;  /* internal breathing space */
}

/* FIX: Force normal text color for all Fluent DetailsList rows */
div[class^="root-"].ms-DetailsRow,
div[class*="root-"].ms-DetailsRow {
    color: rgb(55, 55, 55) !important; /* or #333 */
}

.signinpage.wrapper-body {
    margin: 2rem auto !important;
}
