/* Roboto for navbar font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Outfit font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/*Global reset*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
}

.nav-brand{
  gap: 0px;
}

/* navbar*/
.contact-us {
    padding: 5px;
}

.company_name {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: -10px !important;
}

.nav-link .active {
    display: inline-block;
    width: auto;
    text-align: center;
    background-color: #152440;
    color: #F3525A;
}

.nav-link{
    color: #152440;
}

.nav-link:hover{
    color: #F3525A;
}

.navbar_marytechenock {
    background-color: #152440; /* Set navbar background color */
    border-width: 0px;
    max-height: 14vh;
    font-family: "Roboto", sans-serif;
    transition: all 0.3s ease-in;
    border-bottom: #fff 1px solid;
    box-shadow: 0 5px 3px 4px rgba(0, 0, 0, 0.2);
}

.nav-item {
    font-size: 13px;
}

.navbar-brand {
  display: flex;
  align-items: center; /* Vertically align logo and text */
}

.navLogo {
  max-width: 150px; /* Adjust as needed */
  margin-right: 10px; /* Space between logo and text */
}

.company_name {
  color: white;
  font-size: 1.2rem; /* Adjust as needed */
}

/* Navbar Toggler Fixes */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 0.25rem;
    transition: box-shadow .15s ease-in-out;
}

.navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block !important;
    visibility: visible !important;
}

/* Custom navbar toggler */
.navbar_marytechenock .navbar-toggler {
    border-color: rgb(249, 237, 245);
    padding: 6px 10px;
}

.navbar_marytechenock .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(249, 237, 245, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
}

@media (max-width: 991.98px) { /* Bootstrap breakpoint for navbar collapse */
  .navbar {
      height: auto; /* Allow navbar to expand vertically */
      padding: 15px 0; /* Add some padding */
  }
  
  .navbar-toggler {
      margin-left: auto;
      margin-right: 15px;
  }
  
  .navbar_marytechenock .navbar-toggler {
      border: 2px solid #fff;
  }
  
  .navbar-collapse {
    background-color: #00203f;
    padding: 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
  }
  
  .navbar-nav {
      width: 100%; /* Make nav items take full width */
  }
  
  .nav-item {
      text-align: center;
      margin-bottom: 10px; /* Add space between nav items */
  }
  
  .contact-us {
      display: block !important; /* Show contact button on mobile */
      margin: 10px auto; /* Center the button */
  }
}

.btn-danger {
    background-color: #F3525A;
    font-weight: 600;
}

.btn-danger:hover{
    background-color: #F6F6F6;
    color: #152440;
}

/* hero section */
.hero {
  position: relative;
  height: 100vh;
}

.display-4,
.display-6, .lead {
  font-family: "Kanit", sans-serif;
  color: #F6F6F6;
}

.display-4,
.display-6, .led {
  font-family: "Kanit", sans-serif;
  color: #000;
}

.request_quote_btn {
    background-color: #152440;
    border: none;
    border-radius: 2px;
}

.cardLogo {
    width: 50px;
    margin: 30px;
    align-self: center;
    border-radius: 50%;
}

.navbar_marytechenock .nav-pills > li > a {
    color: rgb(255, 255, 255);
}

.navbar_marytechenock .nav-pills > li > a:hover,
.navbar_marytechenock .nav-pills > li > a:focus {
    transition: all 0.3s ease-out;
    color: #F3525A;
}

.nav-pills .nav-item {
    margin-bottom: 0.5rem; /* this is for space between rows when stacked in tablet or mobile view*/
}

.navbar_marytechenock .nav-pills .nav-item > .active,
.navbar_marytechenock .nav-pills > .active > a:hover,
.navbar_marytechenock .nav-pills > .active > a:focus {
    color: #152440; /* Font color for active font */
    background-color: #ffffff; /* Blue color for background */
    display: inline-block;
}

.footer {
    background-color: #152440;
}

.footerText{
    color:#F6F6F6;
}

.card{
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 10px rgba(0,0,0,.25), 0 0 6px rgba(0,0,0,.25);
    transition: .3s transform cubic-bezier(.155,1.105,.295,1.12),.3s box-shadow,.3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
    cursor: pointer;
}

.card:hover{
     transform: scale(1.05);
     box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
}

.cardLogo {
    width:30px;
    margin: 30px;
    text-align: center;
}

.cardRed {
    border-color: #F3525A;
    border-style: ridge;
    border-width: 2px;
    text-align: center;
    background-color: #F4F6F9;
}

.cardBlue {
    border-color: #152440;
    border-style: ridge;
    border-width: 2px;
    text-align: center;
    background-color: #F4F6F9;
}

.cardBlack {
    border-color: #000000;
    border-style: ridge;
    border-width: 2px;
    text-align: center;
    background-color: #F4F6F9;
}

#main_text {
    font-family: Kanit;
    float: left;
    margin: 5%;
    width: 90%;
    display: block;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#servicesBanner {
    background-image: url(../images/servicesBG.png);
    background-repeat: no-repeat;
    background-size: cover;
    /* The div block for the servicesBanner has no vertical size,
    so we need a height to see the background image */
    height: 100%;
}

.bannerTitle {
    background-color: #F6F6F6;
    width: fit-content;
    margin: auto;
    padding: 5px;
    border-style: solid;
    border-radius: 5px;
    border-color: #F3525A;
    border-width: 1px;
    box-shadow: 0px 2px 5px;
}

.accordion-item{
    background-color: #f4f4f5;
    border: none;
}

.accordion-button{
    background-color: #152440;
    color: #F6F6F6;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #F3525A;
    border-color: #152440;
    border-width: 1px;
    border-style: solid;
    color:#152440;
    box-shadow: none;
}

.accordion-button:not(.collapsed) span{
  color: #152440;
}

.accordion-body {
    background-color: #f6f6f6;
}

.accordion-button:not(.collapsed)::after{
    color: #F3525A;
}

.heading_section{
    height: 40vh;
    background-image: url('../images/234.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

.organisational_heading{
    height: 40vh;
    background-image: url('../images/58.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

.organisational_heading h1 {
    color: #F4F6F9;
    text-shadow: 2px 2px 5px #152440;
    margin: auto;
    padding: 5px;
}

.mobile_heading{
    height: 40vh;
    background-image: url('../images/mobile.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

.mobile_heading h1 {
    color: #F4F6F9;
    text-shadow: 2px 2px 5px #152440;
    margin: auto;
    padding: 5px;
}

.sectionHeader{
    text-align: center;
    font-family: Kanit;
    font-weight: bolder;
}

.headerB{
    color: #152440;
    font-weight: normal;
}

.section_img{
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 58vh;
    padding: 5%;
    border-style: groove;
}

.requestQuoteServices {
    background-color: #152440;
    border-top: solid 3px #F3525A;
    border-bottom: solid 3px #F3525A;
}

.requestQuoteServices h2 {
    color: #F3525A;
    padding: 10px;
    margin-top: 10%;
}

.requestQuoteServices p{
    color: #F4F6F9;
    padding: 5px;
    font-size:smaller;
}

.reqImg {
    border: #c3c3c4 10px solid;
}

.form-label{
    color: #f4f4f5;/*Darker Color*/
    padding: 10px;
    font-weight:bold;
}

.request_quote_btn {
    background-color:#F3525A;
    border-radius: 5px;
    border: 1px solid #f6f6f6;
}

.request_quote_btn:hover{
    color: #000;
    background-color: #f4f4f5;
}

.request_quote_img{
    height: auto;
    border-radius: 2px;
    border-color: #F3525A;
}

.height {
    margin-top: 50px;
}

/* footer */
.marytechenockFooter {
    margin-top: 0;
    width: 200px;
    position: relative;
    clear: both;
}

.heading_section_business{
    height: 40vh;
    background-image: url('../images/businessTech2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.business-tech-paragraph-section{
    margin-top: 1px !important;
}

.business-tech-content1, .business-tech-content2{
    margin-top: -47px !important
}

.business-tech-section-image1{
    background-image: url('../images/businessTech3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.business-tech-section-image2{
    background-image: url('../images/businessTech2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

h2{
    color: #F3525A;
}

.h4{
    color: #152440;
}

.flipCards {
    margin-bottom: 40px;
}

.flip-card {
    perspective: 1000px;
    height: 300px;  /* Adjust as needed */
    margin-bottom: 20px; /* Space between card and footer */
    position: relative;
    padding:5%;
}

.flip-card-inner {
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: #f8f9fa;
    color: #000;
}

.flip-card-back {
    background-color: #F4F6F9;
    color: #000;
    transform: rotateY(180deg)
}

.card-img-top {
    max-height: 200px;
    object-fit: cover;
}

.card-text {
    padding:10%;
    margin-top:10%;
}

.businessTech_heading{
    height: 40vh;
    background-image: url('../images/35.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: slideBg 10s linear infinite;
}

@keyframes slideBg {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%; /* Move to the right */
  }
  100% {
    background-position: 0% 0%;  /* Back to the starting position */
  }
}

.businessTech_heading h1 {
    color: #F4F6F9;
    text-shadow: 2px 2px 5px #152440;
    margin: auto;
    padding: 5px;
}

.contactUs_heading{
    background-image: url('../images/contact\ cover.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
    position: relative;
    overflow: hidden;
}
@media (min-width: 769px) {
    .contactUs_heading {
        height: 40vh;
        min-height: 300px;
    }
}

/* For mobile - use aspect ratio or fixed height */
@media (max-width: 768px) {
    .contactUs_heading {
        height: 35vh;
        min-height: 250px;
        background-size: cover !important;
        background-position: center center !important;
    }
        .contactUs_heading .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.contactUs_heading h1, .contactHead, .Odoo_heading h1, .odoo_lead_section h2 {
    color: #F4F6F9;
    text-shadow: 2px 2px 5px #152440;
    margin: auto;
    padding: 5px;
}

.whatsapp-icon button{
    background-color: #F3525A;
    border-radius: 5px;
}

/*Odoo*/
.Odoo_heading{
    height: 40vh;
    background-image: url('../images/odoo1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

.odoo_lead_section{
    height: 25vh;
    background-color: #152440;
}

.odoo_lead_section2{
    height: 25vh;
    background-color: #152440;
    border-radius: 0px 0px 9px 9px;
}

/*BeatRoute - KEEP DESKTOP AS IS, ONLY CHANGE MOBILE*/
.Beatroute_heading{
    height: 40vh;
    background-image: url('../images/beat.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

.beatroute_logo_img{
    width: 50px;
    height: 50px;
    align-self: center;
}

.beatroute_h1{
    color:rgba(61, 133, 198, 1);
    text-shadow: 1px 1px 2px #152440;
    margin: auto;
    padding: 5px;
}

/* BeatRoute Logo Grid Styles - ORIGINAL DESKTOP LAYOUT */
.beatroute_companyLogos{
    height: 60vh; /* Fixed height for desktop */
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for desktop */
    grid-template-rows: repeat(4, auto); /* Adjusted for better mobile layout */
    gap: 5px; /* Original gap */
    margin-top: 20px;
}

.beatroute_card{
    margin: 10px;
    width: 100px;
    height: 57px;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 2px 2px 5px #a0a3a8;
    background-color: #fff;
}

.beatroute_card img, .beatroute_img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Change from cover to contain to show full logos */
}

/* Mobile screens (up to 767px) - 3 CARDS PER ROW ONLY */
@media (max-width: 767px) {
    .beatroute_companyLogos {
        height: auto; /* Allow dynamic height on mobile */
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row on mobile */
        grid-template-rows: auto; /* Auto rows for mobile */
        gap: 10px; /* Slightly larger gap for mobile */
    }
    
    .beatroute_card {
        width: auto; /* Allow cards to resize on mobile */
        height: auto; /* Allow cards to resize on mobile */
        min-height: 80px; /* Minimum height for mobile */
        min-width: 90px; /* Minimum width for mobile */
        margin: 0; /* Remove margin on mobile */
        padding: 10px; /* Add padding for better spacing */
    }
    
    .beatroute_card img {
        max-height: 50px; /* Slightly smaller logos on mobile */
    }
}

/* Tablet screens (768px to 991px) - Keep original 6 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .beatroute_companyLogos {
        /* Keep original 6 columns for tablet */
        grid-template-columns: repeat(6, 1fr);
        height: 50vh; /* Slightly smaller height for tablet */
    }
}

/* Desktop screens (992px and above) - Keep original exactly as it was */
@media (min-width: 992px) {
    .beatroute_companyLogos {
        /* Keep original desktop layout exactly as it was */
        height: 60vh;
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
    
    .beatroute_card {
        /* Keep original desktop card styling */
        margin: 10px;
        width: 100px;
        height: 57px;
    }
}

.partners_card {
    border-radius: 1rem; /* Rounded corners by default */
    transition: transform 0.3s ease, border-radius 0.3s ease; /* Smooth transitions */
    overflow: hidden; /* Prevents image overflow on scale */
}

.partners_card:hover {
    transform: scale(1.1);
    border-radius: 0; /* Square corners on hover */
}

.partners_card img {
    display: block; /* Prevents small gap below image */
    margin: 0 auto; /* Center the image horizontally */
    max-width: 100%; /* Ensure image doesn't overflow container */
    max-height: 60px; /* Maintain aspect ratio */
    cursor: pointer;
}

.partners_card a { /* Style the link to cover the entire card */
    display: block; /* Make the link a block element */
    width: 100%;
    height: 100%;
}

:root {
    --primary: #F3525A;
    --secondary: #040470;
    --light: #FFFFFF;
    --dark: #152440;
}

.heading_sectionCyber{
    height: 40vh;
    background-image: url('../images/3567.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -10px !important;
}

/* Events Section Styles */
.events-section {
  background-color: #f8f9fa;
}

.event-card {
  transition: transform 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.event-card .card-title {
  font-weight: 600;
  color: #2c3e50;
}

/* Registration Form Styles */
.registration-section {
  background-color: #f8f9fa;
}

#registration-form label {
  font-weight: 500;
}

/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
}

/* Footer base */
.mary-footer {
  background-color: #0f223a; /* deep navy like screenshot */
  color: #ffffff;
  padding: 60px 0 40px;
  font-size: 14px;
}

/* Footer headings */
.mary-footer h6 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Footer links */
.mary-footer a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

.mary-footer a:hover {
  color: #4da3ff;
  text-decoration: underline;
}

/* Logo */
.marytechenockFooter {
  max-width: 150px;
  margin-top: 10px;
}

/* Contact text alignment */
.mary-footer p {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Icons spacing */
.mary-footer i {
  margin-right: 8px;
  color: #ffffff;
}

/* Flags */
.mary-footer img[alt*="flag"],
.mary-footer img[alt*="zim"],
.mary-footer img[alt*="bots"] {
  margin-bottom: 10px;
}

/* Grid consistency */
.mary-footer .row > div {
  margin-bottom: 25px;
}

/* Divider hidden on desktop */
.mary-footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Team card image uniform sizing */
.teamBody img {
  width: 100%;
  height: 320px;            /* adjust once, applies to all */
  object-fit: cover;        /* crops without distortion */
  object-position: top;     /* keeps faces visible */
  display: block;
}

/* =========================================== */
/* FORCE IMAGE COVER - REMOVE ALL WHITE SPACE */
/* =========================================== */

/* Why Choose Us Section - FORCE IMAGE TO COVER */
.choose_us {
    width: 100%;
    position: relative;
    height: 40vh; /* Same as other sections */
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden; /* Prevent any overflow */
    background-color: #152440; /* Background color for any gaps */
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose_us img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Force image to cover entire container */
    object-position: center center;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 100%;
    min-height: 100%;
}

/* =========================================== */
/* DESKTOP PROTECTION - KEEP ORIGINAL DESKTOP STYLING */
/* =========================================== */
@media (min-width: 769px) {
    .company_name {
        margin-left: -25px !important; /* Original desktop positioning */
        font-size: 20px !important; /* Original desktop font size */
    }
    
    .navLogo {
        max-width: 150px !important; /* Original desktop logo size */
    }
    
    .carousel-item img {
        height: 100vh !important; /* Original full height */
    }
    
    .choose_us {
        height: 40vh; /* Original desktop height */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mary-footer {
    text-align: center;
  }

  .mary-footer i {
    display: inline-block;
    width: auto;
  }
  
  .choose_us {
      height: 30vh; /* Consistent with other mobile sections */
  }
  
  .choose_us img {
      object-fit: cover !important; /* Maintain cover on mobile */
      object-position: center center;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
    .choose_us {
        height: 25vh;
    }
}

/* BANNER FIX - Display in full on desktop */
.choose_us {
    width: 100vw;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.choose_us .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
}

.banner-image {
    width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Desktop specific - Make banner fill full width */
@media (min-width: 769px) {
    .choose_us {
        height: auto;
    }
    
    .banner-image {
        min-height: 40vh;
        object-fit: cover;
    }
}

/* Mobile - already working, keep as is */
@media (max-width: 768px) {
    .choose_us {
        height: auto;
        left: 0;
        right: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .banner-image {
        height: auto;
    }
}