/* ========================================
   NAMIDOR HOMEPAGE - ENHANCED STYLES
   Company Colors: #36454F (Charcoal), #FFA500 (Orange), #FFFFFF (White)
   Mobile-First Responsive Design
   ======================================== */

:root {
  --primary-charcoal: #36454F;
  --primary-orange: #FFA500;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-gray: #DCDCDC;
  --text-dark: #2C2C2C;
  --shadow-sm: 0 2px 8px rgba(54, 69, 79, 0.08);
  --shadow-md: 0 4px 16px rgba(54, 69, 79, 0.12);
  --shadow-lg: 0 8px 24px rgba(54, 69, 79, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GENERAL CONTAINER STYLES
   ======================================== */
.homepage-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1250px;
  height: auto;
  padding: 0;
  margin: 0 auto;
  background: transparent;
}

/* ========================================
   NAVIGATION & SLIDER CONTAINER
   ======================================== */
.homepage-nav-n-slider-container {
  position: relative;
  display: block;
  width: 100%;
  height: 300px;
  padding: 0;
  margin: 10px 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ========================================
   LEFT NAVIGATION
   ======================================== */
.homepage-left-nav-container,
.homepage-right-nav-container {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 220px;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: var(--white);
}

.homepage-left-nav-container > h2 {
  display: block;
  height: 45px;
  padding-left: 15px;
  margin-top: 20px;
  margin-left: 10px;
  color: var(--primary-charcoal);
  font-size: 1.1em;
  font-weight: 700;
  border-bottom: 3px solid var(--primary-orange);
  padding-bottom: 10px;
}

.homepage-left-nav-item-content {
  position: relative;
  display: flex;
  align-items: center;
  flex-flow: column nowrap;
  width: 100%;
  height: calc(100% - 60px);
  list-style: none;
  padding: 5px;
  margin: 0;
}

.homepage-left-nav-item-content > li {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  font-size: 1.05em;
  border-bottom: 1px solid var(--border-gray);
  transition: var(--transition);
}

.homepage-left-nav-item-content > li:first-child {
  border-top: 1px solid var(--border-gray);
}

.homepage-left-nav-item-content > li:last-child {
  border-bottom: none;
}

.homepage-left-nav-item-content > li:hover {
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.1) 0%, transparent 100%);
  border-left: 3px solid var(--primary-orange);
}

.homepage-left-nav-item-content > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 12px 10px;
  margin: 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.homepage-left-nav-item-content > li:hover > a {
  color: var(--primary-orange);
  transform: translateX(4px);
}

.homepage-left-nav-item-content > li > a > img {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: var(--transition);
}

.homepage-left-nav-item-content > li:hover > a > img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.homepage-left-nav-item-content > li > a > i {
  padding: 0;
  font-size: 1.3em;
  min-width: 28px;
  text-align: center;
}

/* ========================================
   RIGHT NAVIGATION (Services Banner)
   ======================================== */
.homepage-right-nav-container {
  left: auto;
  right: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, var(--primary-charcoal) 0%, #4A5D6E 100%);
  padding: 10px;
}

.homepage-right-nav-title {
  display: block;
  width: auto;
  height: auto;
  padding: 8px 15px;
  margin: 10px 5px 15px 5px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 165, 0, 0.2);
  border: 2px solid var(--primary-orange);
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.homepage-right-nav-content {
  display: flex;
  align-items: center;
  flex-flow: column nowrap;
  width: 100%;
  height: calc(100% - 60px);
  padding: 5px;
  margin: 10px 0;
  gap: 8px;
}

.homepage-right-nav-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.homepage-right-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-orange), #FFB833);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.homepage-right-nav-item:hover::before {
  opacity: 1;
}

.homepage-right-nav-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.homepage-right-nav-item > h3 {
  position: relative;
  display: block;
  padding: 5px 0;
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  z-index: 5;
  color: #FFFFFF;
}

.homepage-right-nav-item > p {
  position: relative;
  display: inline-block;
  height: auto;
  padding: 4px 12px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-orange);
  border-radius: 20px;
  z-index: 5;
}

.homepage-right-nav-item:hover > p {
  background: var(--primary-charcoal);
}

.homepage-right-nav-item > img {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 50px;
  height: 70px;
  object-fit: contain;
  z-index: 1;
  border-radius: 5px;
  opacity: 0.9;
  transition: var(--transition);
}

.homepage-right-nav-item:hover > img {
  opacity: 1;
  transform: scale(1.1);
}

/* ========================================
   SLIDER CONTAINER
   ======================================== */
.homepage-slider-container {
  position: absolute;
  top: 0;
  left: 5px;
  display: block;
  width: calc(100% - 10px);
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 8px;
}

.homepage-slider-container a {
  display: block;
  margin: auto;
}

.homepage-slider-content {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.homepage-slider-item {
  float: left;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
  -webkit-transition: transform 0.5s ease;
  transition: transform 0.5s ease;
}

.homepage-slider-item > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.homepage-slider-item-loading {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  width: 100%;
  height: 100%;
  font-size: 2em;
  color: var(--primary-orange);
  z-index: 10;
}

.homepage-slider-item > a > img {
  display: inline-block;
  width: 100%;
  height: 100%;
  margin: 5px auto;
  object-fit: cover;
  visibility: hidden;
}

/* Slider Navigation Dots */
.homepage-slider-dot-content {
  position: absolute;
  bottom: 15px;
  display: block;
  width: 100%;
  text-align: center;
  z-index: 100;
}

.homepage-slider-dot-content > span {
  display: inline-block;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.homepage-slider-dot-content > span.active {
  background: var(--primary-orange);
  border-color: var(--white);
  transform: scale(1.3);
}

.homepage-slider-dot-content > span:hover {
  background: var(--primary-orange);
  transform: scale(1.2);
}

/* Slider Navigation Arrows */
.homepage-slider-arrow-prev,
.homepage-slider-arrow-next {
  position: absolute;
  top: calc(50% - 25px);
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  margin: 0;
  background: rgba(54, 69, 79, 0.8);
  font-size: 1.8em;
  font-weight: bold;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  z-index: 100;
  transition: var(--transition);
  border: 2px solid transparent;
}

.homepage-slider-arrow-next {
  left: auto;
  right: 10px;
}

.homepage-slider-arrow-prev:hover,
.homepage-slider-arrow-next:hover {
  background: var(--primary-orange);
  color: var(--white);
  border-color: var(--white);
  transform: scale(1.1);
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.container-fluid.bg-white {
  background: var(--white) !important;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 30px 20px !important;
  margin: 30px auto !important;
}

.container-fluid.bg-white h1 {
  color: var(--primary-charcoal);
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.container-fluid.bg-white h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #FFB833);
  border-radius: 2px;
}

#our-partners-list a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 15px;
  border-radius: 10px;
  display: block;
}

#our-partners-list a:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--light-gray);
}

#our-partners-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

#our-partners-list a:hover img {
  transform: scale(1.05);
}

#our-partners-list h3 {
  color: var(--primary-charcoal);
  font-weight: 600;
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */
.homepage-cat-content {
  min-height: 350px;
  padding: 10px;
  margin: 20px 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.homepage-cat-content div.col-lg-3 {
  padding: 5px 10px;
}

.homepage-cat-content div.col-lg-3 > a {
  display: none;
}

/* Category Title Bar (Mobile) */
.homepage-cat-content-title {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 50px;
  margin: 0;
  padding: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB833 100%);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.homepage-cat-content-title > h1 {
  position: relative;
  width: calc(100% - 100px);
  padding: 15px 10px;
  margin: 0;
  font-weight: 700;
  font-size: 1.02em;
  line-height: 1.3;
  float: left;
}

.homepage-cat-content-title > a {
  position: relative;
  float: right;
  padding: 15px 15px;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.homepage-cat-content-title > a:hover {
  color: var(--primary-charcoal);
}

/* Category Grid Items */
.homepage-cat-content .col-lg-9 {
  margin: 0 8px;
}

.homepage-cat-content div.col {
  position: relative;
  height: 150px;
  margin: 2px;
  overflow: hidden;
  background-color: var(--light-gray);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.homepage-cat-content div.col:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.homepage-cat-content .col > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.homepage-cat-content .col > a > img {
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.homepage-cat-content .col > a:hover > img {
  transform: scale(1.1);
}

.homepage-cat-content .col > a > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  height: auto;
  min-height: 40px;
  padding: 8px 10px;
  line-height: 1.4;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--white);
  background: linear-gradient(to top, rgba(54, 69, 79, 0.95) 0%, rgba(54, 69, 79, 0.7) 70%, transparent 100%);
  overflow: hidden;
  transition: var(--transition);
}

.homepage-cat-content .col > a:hover > span {
  background: linear-gradient(to top, var(--primary-orange) 0%, rgba(255, 165, 0, 0.9) 70%, transparent 100%);
}

.homepage-cat-content .col:nth-child(3),
.homepage-cat-content .col:nth-child(4) {
  display: none;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Small devices (portrait phones, 481px and up) */
@media only screen and (min-width: 480px) {
  .homepage-nav-n-slider-container {
    height: 400px;
  }

  .homepage-slider-item > a > img {
    height: 380px;
    margin: 10px auto;
  }

  .homepage-cat-content div.col {
    height: 200px;
  }
}

/* Small devices (portrait tablets and large phones, 601px and up) */
@media only screen and (min-width: 600px) {
  .homepage-nav-n-slider-container {
    height: 450px;
  }

  .homepage-slider-item > a > img {
    height: 430px;
    margin: 10px auto;
  }

  .homepage-cat-content .col:nth-child(3) {
    display: block;
  }

  .homepage-cat-content div.col {
    margin: 5px;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .homepage-nav-n-slider-container {
    border-radius: 12px;
  }

  .homepage-left-nav-container {
    display: block;
  }

  .homepage-slider-container {
    left: 230px;
    width: calc(100% - 240px);
  }

  .homepage-cat-content div.col {
    height: 200px;
  }

  .homepage-cat-content .col:nth-child(4) {
    display: block;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .homepage-nav-n-slider-container {
    height: 500px;
    border-radius: 12px;
  }

  .homepage-slider-container {
    left: 280px;
    width: calc(100% - 300px);
  }

  .homepage-slider-item > a > img {
    height: 480px;
    margin: 10px auto;
  }

  /* Hide slider controls by default, show on hover */
  .homepage-slider-dot-content,
  .homepage-slider-arrow-prev,
  .homepage-slider-arrow-next {
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
  }

  .homepage-slider-container:hover > .homepage-slider-dot-content,
  .homepage-slider-container:hover > .homepage-slider-arrow-prev,
  .homepage-slider-container:hover > .homepage-slider-arrow-next {
    opacity: 1;
  }

  .homepage-cat-content {
    padding: 10px;
  }

  .homepage-cat-content div.col-lg-3 {
    padding: 5px;
    padding-left: 10px;
  }

  /* Large Category Card (Desktop) */
  .homepage-cat-content div.col-lg-3 > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .homepage-cat-content div.col-lg-3 > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(54, 69, 79, 0.2);
  }

  .homepage-cat-content div.col-lg-3 > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
  }

  .homepage-cat-content div.col-lg-3 > a > img {
    position: absolute;
    bottom: 40px;
    left: calc(50% - 150px);
    display: block;
    width: auto;
    height: 300px;
    object-fit: contain;
    z-index: 0;
    transition: var(--transition);
  }

  .homepage-cat-content div.col-lg-3 > a:hover > img {
    transform: scale(1.05);
  }

  .homepage-cat-content div.col-lg-3 > a > h1 {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    line-height: 1.3;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
  }

  .homepage-cat-content div.col-lg-3 > a > span {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    padding: 12px 30px;
    font-size: 0.95em;
    font-weight: 700;
    border-radius: 50px;
    color: var(--white);
    background: var(--primary-orange);
    z-index: 2;
    transition: var(--transition);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
  }

  .homepage-cat-content div.col-lg-3 > a:hover > span {
    background: var(--primary-charcoal);
    transform: translateX(-50%) translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .homepage-cat-content-title {
    display: none;
  }

  .homepage-cat-content .col-lg-9 {
    margin: 0;
  }

  .homepage-cat-content div.col {
    height: 200px;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .homepage-right-nav-container {
    display: block;
  }

  .homepage-slider-container {
    left: 240px;
    width: calc(100% - 480px);
  }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.homepage-cat-content {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}