html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Remove top spacing only for the hero/first section */
#first-section.page-section {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Section below home */
.page-section {
    padding: 3rem 0;
    background: #ffffff;
}

/* small card spacing used in Home.razor */
.pa-4 {
    padding: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRl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YxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Ensure MudBlazor toolbar inside the appbar stretches to full height and centers children */
.appbar-tall.mud-appbar .mud-toolbar,
.appbar-tall.mud-appbar > .mud-toolbar {
    height: 100%;
    display: flex;
    align-items: center;
}

/* If you use any direct child elements that set their own vertical alignment,
   the following rule helps center them too */
.appbar-tall.mud-appbar > * {
    display: flex;
    align-items: center;
}

.sidebar {
    height: 100%;
    max-height: none;
    overflow: hidden; /* removes internal scrollbars */
    -webkit-overflow-scrolling: auto;
}
/* Ensure appbar content is vertically centered and the image fits the bar height */
.appbar-with-logo.mud-appbar {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Make sure MudBlazor's internal toolbar (if present) fills height and centers children */
.appbar-with-logo.mud-appbar .mud-toolbar,
.appbar-with-logo.mud-appbar > .mud-toolbar {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Constrain the logo image to the appbar height while preserving aspect ratio */
.appbar-with-logo .appbar-logo,
.appbar-with-logo .appbar-logo img,
.appbar-with-logo img {
    max-height: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Optional: remove any top/bottom margin from icon buttons so everything lines up */
.appbar-with-logo .mud-icon-button {
    margin-top: 0;
    margin-bottom: 0;
}

/* Make appbar a flex container and vertically center children (does not change height) */
.appbar-with-logo.mud-appbar {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

/* Ensure MudBlazor internal toolbar (if present) fills height and centers children */
.appbar-with-logo.mud-appbar .mud-toolbar,
.appbar-with-logo.mud-appbar > .mud-toolbar {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Constrain the logo so it fits inside the appbar without changing the bar height.
   Adjust the -12px value if your appbar has different vertical padding. */
.appbar-with-logo .appbar-logo,
.appbar-with-logo .appbar-logo img,
.appbar-with-logo img.appbar-logo {
    display: block;
    width: auto;
    /* ensure logo never exceeds appbar content height */
    max-height: calc(100% - 12px);
    height: auto;
    object-fit: contain;
}

/* Remove extra top/bottom margins on icon buttons so everything lines up */
.appbar-with-logo .mud-icon-button {
    margin-top: 0;
    margin-bottom: 0;
}

/* Contact items in the appbar — stack items vertically and center them in the appbar */
.appbar-contacts {
    display: flex;
    flex-direction: column; /* stack email above phone */
    justify-content: center; /* center the stacked block vertically in the appbar */
    align-items: flex-start; /* LEFT align icon+text groups (changed from flex-end) */
    gap: 0.25rem;
    margin-left: 0.5rem;
    height: 100%; /* ensure it can center vertically inside the appbar */
}

/* Each contact row: grid with a fixed icon column so icons align vertically */
.appbar-contact {
    display: grid;
    grid-template-columns: 28px auto; /* fixed icon column + text column */
    gap: 0.35rem;
    align-items: center; /* vertically center icon and text within the row */
    white-space: nowrap;
    text-align: left;
}

/* Ensure the MudBlazor icon root centers the glyph and uses the fixed column size */
.appbar-contact .mud-icon-root,
.appbar-contact .mud-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Remove extra vertical spacing from MudText inside contact rows */
.appbar-contact .mud-typography {
    margin: 0;
    line-height: 1;
    text-align: left;
}

/* Optional responsive tweak: collapse contact texts on narrow screens */
@media (max-width: 720px) {
    .appbar-contacts {
        gap: 0.15rem;
    }

    .appbar-contact .mud-typography {
        display: none; /* hide text on very small screens, only icons remain */
    }
}

/* Ensure email link in the appbar stays white and not blue */
.appbar-contact a,
.appbar-contact a:link,
.appbar-contact a:visited,
.appbar-contact a:hover,
.appbar-contact a:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Full-bleed wrapper so content spans the viewport width */
.full-bleed {
    width: 100vw;
    /* pull the element out of any centered page container */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Force hero to be a positioned container and stack text above the image */
.full-bleed {
    position: relative; /* required for absolute children */
    overflow: hidden;
}

/* Ensure the image does not create its own stacking context above the text */
.full-bleed .hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    position: relative;
    z-index: 0; /* keep image behind overlay text */
}

/* Place the hero text absolutely over the image and above it */
.full-bleed .hero-text {
    position: absolute !important;
    left: 3rem;
    top: 40%;
    transform: translateY(-40%);
    z-index: 10; /* higher than the image */
    color: #ffffff;
    pointer-events: auto;
    width: 40%;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Remove any margins from MudText that could push layout */
.full-bleed .hero-text .mud-typography {
    margin: 0;
}

/* Responsive: place text above image on small screens */
@media (max-width: 768px) {
    .full-bleed .hero-text {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
        width: 100%;
        padding: 1rem;
        background: rgba(0,0,0,0.45);
    }
}

/* Ensure "India" and the decorative flag are on one horizontal line */
.hero-with-decor {
    display: inline-flex;
    align-items: center; /* vertical center icon and text */
    gap: 0.5rem;
}

/* MudText inside the inline wrapper: remove block behaviour/margins */
.hero-with-decor .mud-typography,
.hero-with-decor .hero-line {
    display: inline-block;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

/* Decorative flag sizing and alignment (use class instead of inline style) */
.hero-decor {
    display: inline-block;
    height: 30px;
    width: auto;
    vertical-align: middle;
}

/* Make the content section fill the viewport height and center its contents */
:root {
  /* adjust this to your actual appbar height if the appbar overlaps content */
  --appbar-height: 64px;
}

#content-section.page-section {
  /* Use calc to account for a top appbar if necessary.
     If your appbar does not overlap, you can use min-height: 100vh; instead. */
  min-height: calc(100vh - var(--appbar-height));
  display: block;            /* don't vertically center — let normal flow place header at top */
  box-sizing: border-box;
  padding-top: 1rem;        /* adjust as needed; set to 0 if you want no top gap */
  padding-bottom: 1rem;
  scroll-margin-top: var(--appbar-height); /* helps fragment links land below the appbar */
}

/* Section heading forced white to match hero text */
.section-heading {
    color: #ffffff !important;
}

/* ensure next-section text is white on the dark background */
.content-section-text {
    color: #ffffff !important;
}

#mission-section.mission-section {
    background: linear-gradient(90deg, #004aad 0%, #cb6ce6 100%);
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
}

    /* Ensure inner elements that previously had solid backgrounds stay transparent so gradient shows */
    #mission-section.mission-section > .mud-container,
    #mission-section.mission-section .mud-paper {
        background: transparent !important;
    }

    /* Ensure text inside mission section remains readable (white) */
    #mission-section.mission-section .content-section-text,
    #mission-section.mission-section .section-heading,
    #mission-section.mission-section .hero-line {
        color: #ffffff !important;
    }

#aboutus-section.aboutus-section {
  background: linear-gradient(135deg, #3a8dff 0%, #0b3d91 100%);
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Ensure inner MudBlazor containers are transparent so the gradient shows */
#aboutus-section.aboutus-section > .mud-container,
#aboutus-section.aboutus-section .mud-paper {
  background: transparent !important;
}

/* Force text inside the about us section to be white for contrast */
#aboutus-section.aboutus-section .content-section-text,
#aboutus-section.aboutus-section .section-heading,
#aboutus-section.aboutus-section .hero-line {
  color: #ffffff !important;
}

/* Contact section: background, spacing, readable text and equal-height grid items */
#contact-section.contact-section {
  /* keep full-viewport feel but account for an appbar if present */
  --appbar-height: 64px;
  min-height: calc(100vh - var(--appbar-height));
  padding: 2rem 0;
  box-sizing: border-box;
  /* subtle dark gradient — adjust colors if you want a different look */
  background: linear-gradient(135deg, rgba(24,6,77,0.95) 0%, rgba(0,74,173,0.95) 100%);
  color: #ffffff;
  overflow: hidden;
  scroll-margin-top: var(--appbar-height);
}

/* Let inner MudBlazor containers be transparent so gradient shows */
#contact-section.contact-section > .mud-container,
#contact-section.contact-section .mud-paper {
  background: transparent !important;
  box-shadow: none !important; /* remove unexpected paper shadows if any */
}

/* Force readable white text inside the section */
#contact-section.contact-section .content-section-text,
#contact-section.contact-section .section-heading,
#contact-section.contact-section .hero-line,
#contact-section.contact-section .content-section-text strong {
  color: #ffffff !important;
}

/* Make images responsive inside this section */
#contact-section.contact-section img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure grid items stretch to equal height and papers fill their columns */
#contact-section.contact-section .mud-grid {
  align-items: stretch; /* ensure row items stretch vertically */
}

#contact-section.contact-section .mud-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#contact-section.contact-section .mud-grid-item > .mud-paper {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Small responsive tweaks */
@media (max-width: 768px) {
  #contact-section.contact-section {
    padding: 1rem 0;
    min-height: auto;
  }

  #contact-section.contact-section .mud-grid {
    gap: 1rem;
  }
}

/* Social icons row: equal spacing and uniform size */
.social-row {
  display: flex;
  justify-content: space-between; /* equal distance between items */
  align-items: center;
  gap: 1rem;            /* spacing fallback for browsers that support gap */
  width: 100%;
  max-width: 360px;     /* limit overall width so spacing looks even; adjust as needed */
  margin: 0 auto;       /* center the row inside its grid cell */
}

.social-row a {
  display: inline-block;
  flex: 0 0 auto;       /* don't stretch */
  text-decoration: none;
}

/* Make all icons identical visual size while preserving aspect ratio */
.social-row img {
  width: 36px;          /* uniform icon size */
  height: 36px;
  object-fit: contain;
  display: block;
}

/* Responsive: reduce icon size on small screens */
@media (max-width: 480px) {
  .social-row {
    max-width: 260px;
    gap: 0.5rem;
  }
  .social-row img {
    width: 28px;
    height: 28px;
  }
}

/* Golden gradient for textiles section (overrides inline background) */
#textiles-section.textiles-section {
  /*background: linear-gradient(135deg, #f6d365 0%, #fda085 50%, #fbc86a 100%) !important;*/
  background-color: #ff751f;
  color: #1f1f1f;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Let inner MudBlazor containers be transparent so the gradient shows */
#textiles-section.textiles-section > .mud-container,
#textiles-section.textiles-section .mud-paper {
  background: transparent !important;
  box-shadow: none !important;
}

/* Force readable text color on the golden background */
#textiles-section.textiles-section .content-section-text,
#textiles-section.textiles-section .section-heading,
#textiles-section.textiles-section .hero-line,
#textiles-section.textiles-section ul,
#textiles-section.textiles-section li {
  color: #1f1f1f !important;
}