/* Custom CSS for Franchise Brigade */

/* Basic reset and layout fixes */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #f1f1f1;
}

/* Hero section fixes */
#hero-section {
  margin-top: 88px;
  color: #fff;
  padding: 140px 0;
  position: relative;
}

#hero-section .banner-expo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  height: 440px;
}

#hero-section h1 {
  color: #fff;
  margin-top: -114px;
  font-size: 33px;
  margin-bottom: 6px;
}

#hero-section h1 span {
  color: #ff0;
}

#hero-section h2 {
  font-size: 25px;
  color: #fff;
  z-index: 8;
  text-shadow: 2px 2px 8px #4c482f;
  margin: 5px 0 30px;
}

/* Hero search form */
.hero-search {
  position: relative;
  z-index: 2;
}

.hero-search-main {
  list-style: none;
  margin-bottom: 0;
  padding-inline-start: 0px;
}

.hero-search-main li {
  display: inline-block;
}

.hero-search-main li select {
  width: 356px !important;
}

.form-control-custom {
  height: 46px !important;
  padding: 0.6rem 7.9rem !important;
  border-radius: 0 !important;
}

.btn-main-hero {
  width: 60px;
  font-size: 13px;
  line-height: 1;
  height: 47px !important;
}

.btn-main {
  border-color: #ed1c24;
  border-radius: 0;
  outline: 0;
  color: #fff;
  background-color: #ed1c24;
}

/* Navigation fixes */
#header {
  padding: 0;
  width: 100%;
  position: fixed;
  z-index: 5;
  top: 0;
}

/* Main content area */
#main {
  margin-top: -100px;
}

/* Franchise Card Logo Fixes - Improved Centering and Sizing */
.card .brand-image-section {
  overflow: hidden !important;
  position: relative !important;
  height: 128px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #fafafa !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
}

.card .brand-main-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  padding: 8px !important;
}

.card .brand-main-section a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}

.card .franchise-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 4px !important;
  max-width: none !important;
  max-height: none !important;
}

/* Franchise Title Text Wrapping Fixes */
.card .card-body-section h2 {
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-top: 9px !important;
  margin-bottom: 9px !important;
  font-weight: 600 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  min-height: auto !important;
  height: auto !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.card .card-body-section h2 span,
.card .card-body-section h2 a {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  display: inline !important;
  text-decoration: none !important;
  color: inherit !important;
}

.card .card-body-section h2 a:hover {
  text-decoration: none !important;
  color: inherit !important;
}

/* Responsive fixes */
@media only screen and (max-width: 768px) {
  #hero-section {
    margin-top: 62px;
    padding-bottom: 50px;
  }
  
  #hero-section h1 {
    color: #fff;
    text-align: center;
    margin-top: 0;
    font-size: 23px;
    clear: both;
    line-height: 34px;
  }
  
  #hero-section h2 {
    font-size: 17px;
    line-height: 23px;
    font-weight: 400 !important;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 2px 2px 8px #4c482f;
  }
  
  ul.hero-search-main li {
    display: block;
    margin-bottom: 15px;
  }
  
  ul.hero-search-main li select {
    width: 100% !important;
  }
  
  .btn-main-hero {
    width: 100%;
    font-size: 16px;
    line-height: 1;
    height: 47px !important;
    color: #fff;
    background-color: #ed1c24;
    border-color: #ed1c24;
    outline: 0;
    border-radius: 0;
  }
  
  .card .brand-image-section {
    height: 100px !important;
  }
  
  .card .brand-main-section {
    padding: 6px !important;
  }
  
  .card .card-body-section h2 {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

@media only screen and (max-width: 480px) {
  .card .brand-image-section {
    height: 80px !important;
  }
  
  .card .brand-main-section {
    padding: 4px !important;
  }
  
  .card .card-body-section h2 {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

/* Form controls */
.form-control {
  border: 0 solid #ccc;
}

.dropdown-toogle-icon {
  -webkit-appearance: none;
  background: url(https://www.franchiseindia.com/images/drop-down-icon.png) 95% center no-repeat #fff !important;
} 