/* ========== RESPONSIVE ROW & COL-MD-6 STYLING ========== */

/* ========== COL-MD-6 & COL-MD-4 RESPONSIVE STYLING ========== */

/* Base styling for col-md-6 and col-md-4 */
.col-md-6,
.col-md-4 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {

  .col-md-6,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {

  .col-md-6,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* ========== ROW RESPONSIVE STYLING ========== */

/* Base row styling */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  box-sizing: border-box;
}

/* Container classes */
.container,
.top-bar,
.navbar {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

/* Responsive container widths */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .row {
    margin-right: -10px;
    margin-left: -10px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 720px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 960px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 1140px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {

  .container,
  .top-bar,
  .navbar {
    max-width: 1320px;
  }
}

/* Row variations for different spacing */
.row.no-gutters {
  margin-right: 0;
  margin-left: 0;
}

.row.no-gutters>[class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

/* Responsive row spacing */
.row.row-cols-1>* {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .row.row-cols-sm-2>* {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .row.row-cols-md-2>* {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .row.row-cols-md-3>* {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .row.row-cols-lg-3>* {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .row.row-cols-lg-4>* {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Row alignment utilities */
.row.justify-content-center {
  justify-content: center;
}

.row.justify-content-between {
  justify-content: space-between;
}

.row.justify-content-around {
  justify-content: space-around;
}

.row.align-items-center {
  align-items: center;
}

.row.align-items-start {
  align-items: flex-start;
}

.row.align-items-end {
  align-items: flex-end;
}

/* Optional: Additional responsive utilities */
.col-md-6.responsive,
.col-md-4.responsive {
  transition: all 0.3s ease;
}

/* Mobile-first approach alternative */
.col-md-6.mobile-first,
.col-md-4.mobile-first {
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6.mobile-first {
    width: 50%;
    float: left;
  }

  .col-md-4.mobile-first {
    width: 33.333333%;
    float: left;
  }
}

/* Responsive images and content inside columns */
.col-md-6 img,
.col-md-4 img {
  max-width: 100%;
  height: auto;
}

.col-md-6 .responsive-content,
.col-md-4 .responsive-content {
  width: 100%;
  overflow: hidden;
}

/* Clear floats for older browser support */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* ...................................................................... */
.nav-bon {
  background-color: #002060;
}

.nav-con {
  border-bottom: 1px solid #ddd;
}