/* =========================================
   MOETB Custom Styles - style.css
   ========================================= */

/* ---- CSS Variables ---- */
:root {
  --primary-color: #1a237e;
  --secondary-color: #ff6f00;
  --accent-color: #c62828;
  --success-color: #2e7d32;
  --warning-color: #f9a825;
  --info-color: #0288d1;
  --dark-color: #0d1421;
  --light-bg: #f5f5f5;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ---- Sidebar Cards ---- */
.sidebar-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.sidebar-header {
  background: linear-gradient(135deg, var(--primary-color), #303f9f);
  color: #fff;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-header.bg-danger {
  background: linear-gradient(135deg, #c62828, #e53935) !important;
}

.sidebar-header.bg-warning {
  background: linear-gradient(135deg, #f9a825, #fbc02d) !important;
}

.sidebar-header.bg-success {
  background: linear-gradient(135deg, #2e7d32, #43a047) !important;
}

.sidebar-header.bg-info {
  background: linear-gradient(135deg, #0288d1, #03a9f4) !important;
}

.sidebar-body {
  padding: 15px;
}

.sidebar-footer {
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

/* ---- Left Sidebar Menu ---- */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid #eee;
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sidebar-menu li a i {
  width: 25px;
  color: var(--primary-color);
  font-size: 16px;
}

.sidebar-menu li a:hover {
  background: linear-gradient(135deg, var(--primary-color), #303f9f);
  color: #fff;
  padding-left: 20px;
}

.sidebar-menu li a:hover i {
  color: var(--secondary-color);
}

/* ---- Dropdown Menu Styles ---- */
.sidebar-menu .dropdown-menu-item {
  position: relative;
}

.sidebar-menu .dropdown-toggle-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  color: #333;
}

.sidebar-menu .dropdown-toggle-custom:hover {
  background: #f8f9fa;
  color: #333;
  padding-left: 20px;
}

.sidebar-menu .dropdown-toggle-custom:hover i:first-of-type {
  color: var(--primary-color);
}

.sidebar-menu .dropdown-toggle-custom .dropdown-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
  width: auto;
}

.sidebar-menu .dropdown-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
}

.sidebar-menu .dropdown-menu-item.active .dropdown-submenu {
  border-top: 1px solid #e0e0e0;
}

.sidebar-menu .dropdown-submenu li {
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu .dropdown-submenu li:last-child {
  border-bottom: none;
}

.sidebar-menu .dropdown-submenu li a {
  padding: 10px 15px 10px 40px;
  font-size: 13px;
  color: #555;
}

.sidebar-menu .dropdown-submenu li a i {
  width: 20px;
  font-size: 14px;
  color: var(--secondary-color);
}

.sidebar-menu .dropdown-submenu li a:hover {
  background: linear-gradient(135deg, var(--primary-color), #303f9f);
  color: #fff;
  padding-left: 45px;
}

.sidebar-menu .dropdown-submenu li a:hover i {
  color: #fff;
}

.sidebar-menu .dropdown-menu-item.active > .dropdown-toggle-custom {
  background: #f8f9fa;
}

/* ---- Enquiry Button ---- */
.btn-enquiry {
  background: linear-gradient(135deg, var(--secondary-color), #ff8f00);
  color: #fff;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.btn-enquiry:hover {
  background: linear-gradient(135deg, #ff8f00, var(--secondary-color));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 111, 0, 0.5);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 111, 0, 0.7);
  }
}

/* ---- Vertical Ticker Styles ---- */
.ticker-body {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.vertical-ticker {
  height: 100%;
  overflow: hidden;
}

.ticker-wrapper {
  animation: tickerScroll 15s linear infinite;
}

.vertical-ticker:hover .ticker-wrapper {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.ticker-item {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  display: block;
  transition: all 0.3s ease;
}

.ticker-item a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* ---- Blink Badge ---- */
.blink-badge {
  animation: blink 1s infinite;
  font-size: 10px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---- Downloads List ---- */
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  border-bottom: 1px solid #eee;
}

.download-list li:last-child {
  border-bottom: none;
}

.download-list li a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.download-list li a:hover {
  background: #f8f9fa;
  color: var(--primary-color);
  padding-left: 20px;
}

/* ---- Main Slider/Carousel ---- */
.main-slider {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.main-slider .carousel-item img {
  height: 350px;
  object-fit: cover;
}

.main-slider .carousel-caption {
  background: rgba(26, 35, 126, 0.85);
  padding: 20px 30px;
  border-radius: 8px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
}

.main-slider .carousel-caption h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.main-slider .carousel-caption p {
  font-size: 14px;
  margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

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

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

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
}

.carousel-indicators button.active {
  background: var(--secondary-color);
  opacity: 1;
}

/* ---- Welcome Section ---- */
.welcome-section {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: var(--card-shadow);
}

.welcome-section h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
}

.welcome-section p {
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

/* ---- Quick Links Section ---- */
.quick-links-section {
  margin-top: 20px;
}

.quick-link-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  border-top: 4px solid var(--primary-color);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.quick-link-card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.quick-link-card h5 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.quick-link-card a {
  font-size: 12px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.quick-link-card a:hover {
  text-decoration: underline;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 991px) {
  .ticker-body {
    height: 200px;
  }

  .main-slider .carousel-item img {
    height: 280px;
  }

  .main-slider .carousel-caption {
    padding: 15px 20px;
    width: 90%;
  }

  .main-slider .carousel-caption h5 {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .sidebar-card {
    margin-bottom: 20px;
  }

  .main-slider .carousel-item img {
    height: 220px;
  }

  .main-slider .carousel-caption {
    display: none;
  }
}

/* ---- Footer Styles ---- */
.main-footer {
  background: var(--dark-color);
  color: #fff;
  padding-top: 40px;
}

.footer-widget h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-widget .contact-info-list li {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 0;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.7);
}