/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #0a1f44 0%, #1a2f64 100%);
  color: #ffffff;
  padding: 2.5rem 0 0.6rem;
  position: relative;
  border-top: 5px solid rgba(255, 51, 102, 0.8);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
}

/* Container adjustments */
.footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Top and Bottom Footer Rows */
.top-footer-row, .bottom-footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer Columns - Equal Width and Spacing */
.footer-column {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  margin: 0;
}

.footer-column .footer-widget,
.footer-column .footer-brand {
  width: 100%;
  height: 100%;
}

/* Wave Design */
.footer-wave {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' class='shape-fill'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' class='shape-fill'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' class='shape-fill'%3E%3C/path%3E%3C/svg%3E") center top no-repeat;
  background-size: cover;
}

/* Logo and Text Layout */
.footer-brand.d-flex {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.footer-logo-container.me-3 {
  margin-right: 1rem;
  flex-shrink: 0;
  padding: 5px;
}

.footer-text-content {
  flex-grow: 1;
  padding: 5px 0;
  width: 100%;
}

.footer-logo {
  display: block;
  max-width: 100%;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  transition: all 0.3s ease;
}

.footer-logo:hover {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  transform: scale(1.05);
}

.footer-description {
  color: #ccd6f6;
  line-height: 1.3;
  font-size: 0.85rem !important;
  font-weight: normal !important;
  margin-top: -5px;
  margin-bottom: 0.7rem;
  opacity: 0.9;
}

/* Newsletter Widget */
.newsletter-widget {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.2rem;
  height: 100%;
  border-left: 3px solid #ff3366;
  margin-top: 0;
  width: 100%;
}

/* Contact Info Horizontal Layout */
.contact-info-horizontal {
  width: 100%;
  padding: 0 5px;
}

.contact-info-horizontal .row {
  margin: 0 -5px;
  display: flex;
  flex-wrap: wrap;
}

.contact-info-horizontal .col-md-6 {
  padding: 0 5px;
  margin-bottom: 10px;
}

.contact-info-horizontal .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  padding: 2px 0;
  word-break: break-word;
}

.contact-info-horizontal .contact-item i {
  margin-right: 0.4rem;
  min-width: 1rem;
  color: #ff3366;
  margin-top: 3px;
}

.contact-info-horizontal .contact-item span {
  flex: 1;
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1.4;
}

.contact-item.mt-2 {
  margin-top: 0.5rem;
}

/* Divider with better spacing */
.footer-divider.mt-2.mb-3 {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  height: 1px;
  background: linear-gradient(90deg, 
                            rgba(255, 255, 255, 0.01), 
                            rgba(255, 255, 255, 0.2), 
                            rgba(255, 255, 255, 0.01));
}

/* Social Icons Container */
.social-icons-container {
  margin-bottom: 0.7rem;
}

.social-icons-container.text-left {
  text-align: left !important;
  padding-left: 0;
  display: flex;
  justify-content: flex-start;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Instagram hover effect */
.social-icon[href*="instagram"]::before {
  background: #ff0000af;
}

/* LinkedIn hover effect */
.social-icon[href*="linkedin"]::before {
  background: #ffd900b1;
}

/* YouTube hover effect */
.social-icon[href*="youtube"]::before {
  background: #00ff00a9;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon i {
  position: relative;
  z-index: 1;
}

/* Section Headings */
.footer-heading {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.6rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3366, #ff6b6b);
  transition: width 0.3s ease;
}

.footer-heading:hover:after {
  width: 60px;
}

.footer-heading.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Link Lists */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 0;
}

.footer-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background-color: #ff3366;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.footer-links li:hover::before {
  width: 6px;
  height: 6px;
  background-color: #ff6b6b;
}

.footer-links a {
  color: #ccd6f6;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  font-size: 0.95rem !important;
  font-weight: normal !important;
  padding-left: 0;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Copyright */
.copyright-text {
  color: #ccd6f6;
  font-size: 0.85rem;
  margin: 0;
  text-align: center !important;
  width: 100%;
  display: block;
  padding: 0.5rem 0;
}

/* Footer Bottom Links */
.footer-bottom-links {
  margin: 12px 0;
}

.footer-bottom-links a {
  color: #a2a8bc;
  text-decoration: none;
  margin-left: 15px;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .footer {
    padding: 1.5rem 0 0.6rem;
  }
  
  .footer-heading {
    margin-top: 0.6rem;
  }
  
  .contact-horizontal-container {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-item {
    margin: 0.5rem 0;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  
  .footer-bottom .row {
    text-align: center;
  }
  
  .footer-bottom-links, 
  .copyright-text {
    text-align: center !important;
  }
  
  .footer-bottom-links a {
    margin: 0 8px;
  }
  
  .footer-logo {
    max-width: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .social-icons-container.text-left {
    text-align: center;
    justify-content: center;
    display: flex;
  }
  
  .compact-contact-info .contact-item span {
    font-size: 0.8rem;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .newsletter-form .form-control,
  .newsletter-form .btn-primary {
    border-radius: 4px;
    width: 100%;
  }
  
  .newsletter-form .btn-primary {
    margin-top: 0.5rem;
  }

  .contact-info-horizontal .row {
    margin: 0;
  }
  
  .contact-info-horizontal .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 15px;
  }

  .contact-info-horizontal .contact-item {
    padding: 5px 0;
  }

  .contact-info-horizontal .contact-item span {
    font-size: 0.85rem;
  }

  .contact-item.mt-2 {
    margin-top: 0.8rem;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 1rem 0 0.5rem;
  }
  
  /* Completely reverse the order of all footer elements for mobile */
  .container > .row,
  .container > div {
    display: flex;
    flex-direction: column;
  }

  /* Force correct ordering of main sections */
  .footer .container {
    display: flex;
    flex-direction: column;
  }
  
  /* 1. Logo and Description */
  .footer .container > .row.gy-2 {
    order: 1;
  }
  
  /* 2. Contact Information */
  .footer .container > .row.mt-3 {
    order: 2;
  }
  
  /* 3. Footer Bottom (Copyright) */
  .footer .container > .footer-bottom {
    order: 3;
  }
  
  /* Fix equal height columns in mobile view */
  .footer .row.gy-2 > div {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 0.8rem;
  }
  
  .footer-heading {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 1rem !important;
  }
  
  /* Center the heading underline for mobile */
  .footer-heading:after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }
  
  .footer-heading:hover:after {
    width: 70px;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links li {
    text-align: center;
  }
  
  .footer-widget {
    text-align: center;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.3rem;
  }
  
  .contact-item i {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
  }
  
  .footer-bottom-links {
    margin-top: 1rem;
  }
  
  .footer-bottom-links a {
    display: inline-block;
    margin: 5px 8px;
  }
  
  .footer-logo {
    max-width: 140px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
  
  .footer-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .footer-description {
    text-align: center;
    margin-top: -5px;
  }

  /* Mobile Responsiveness for Equal Spacing */
  .footer-main-row {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-column {
    width: 100%;
    padding: 0;
    margin-bottom: 1.5rem;
  }
  
  .social-icons-container.text-left {
    justify-content: center;
    width: 100%;
  }
  
  .newsletter-desc {
    margin-bottom: 0.4rem;
  }

  .footer-column::after {
    display: none;
  }

  .contact-info-horizontal {
    padding: 0;
  }

  .contact-info-horizontal .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
  }

  .contact-info-horizontal .contact-item i {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
  }

  .contact-info-horizontal .contact-item span {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 1.2rem 0 0.6rem;
  }
  
  /* Keep the same ordering as in tablet view */
  .footer .container {
    display: flex;
    flex-direction: column;
  }
  
  .footer .container > .row.gy-2 {
    order: 1;
  }
  
  .footer .container > .row.mt-3 {
    order: 2;
  }
  
  .footer .container > .footer-bottom {
    order: 3;
  }
  
  /* Additional styling for smaller screens */
  .row.gy-2 .col-md-4 {
    margin-bottom: 1.2rem;
  }
  
  .footer-logo {
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
 .footer-description {
    font-size: 0.9rem;
  }
  
  .footer-heading {
    font-size: 1.1rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .footer-links a, 
  .contact-item span {
    font-size: 0.9rem;
  }
  
  .form-check-label {
    font-size: 0.75rem;
  }
}

/* Add specific styling for mobile L, M and S */
@media (max-width: 425px) {
  .footer-logo {
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 375px) {
  .footer-logo {
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 320px) {
  .footer-logo {
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

/* Dark Theme Adjustments */
.dark-theme .footer {
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
  border-top-color: rgba(156, 39, 176, 0.8);
}

.dark-theme .footer-heading:after {
  background: linear-gradient(90deg, #ff3366, #9c27b0);
}

.dark-theme .social-icon:hover {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.dark-theme .footer-contact-horizontal {
  background: rgba(255, 255, 255, 0.03);
}

.dark-theme .contact-item {
  background: rgba(255, 255, 255, 0.03);
}

.dark-theme .contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.footer-title {
  font-size: var(--font-size-lg);
}

.footer-text {
  font-size: var(--font-size-sm);
}

.footer-link {
  font-size: var(--font-size-sm);
}

.footer-contact-info {
  font-size: var(--font-size-sm);
}

.footer-social-title {
  font-size: var(--font-size-md);
}

.footer-newsletter-title {
  font-size: var(--font-size-md);
}

.footer-newsletter-text {
  font-size: var(--font-size-sm);
}

.footer-newsletter input {
  font-size: var(--font-size-sm);
}

.footer-copyright {
  font-size: var(--font-size-xs);
}

.footer-policy-link {
  font-size: var(--font-size-xs);
}

/* Newsletter Styles */
.newsletter-desc {
  color: #ccd6f6;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.newsletter-form .input-group {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem !important;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px 0 0 4px;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  transition: all 0.3s ease;
  height: 36px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: #ffffff;
}

.newsletter-form .btn-primary {
  background: linear-gradient(90deg, #ff3366, #ff6b6b);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  transition: all 0.3s ease;
  height: 36px;
}

.newsletter-form .btn-primary:hover {
  background: linear-gradient(45deg, #ff6b6b, #ff3366);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 51, 102, 0.3);
}

.form-check {
  margin-top: 0.3rem;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.2rem;
}

.form-check-input:checked {
  background-color: #ff3366;
  border-color: #ff3366;
  box-shadow: 0 0 5px rgba(255, 51, 102, 0.5);
}

.form-check-label {
  color: #ccd6f6;
  font-size: 0.75rem;
  padding-left: 0.2rem;
}

/* Compact Contact Info */
.compact-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.compact-contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  font-size: 0.85rem;
}

.compact-contact-info .contact-item i {
  margin-right: 0.4rem;
  min-width: 1rem;
  color: #ff3366;
}

.compact-contact-info .contact-item span {
  flex: 1;
  display: inline-block;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Footer Column Styling */
.footer-column::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 0;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, rgba(255,255,255,0));
  display: none;
}

.footer-column:not(:last-child)::after {
  display: block;
}

@media (max-width: 767px) {
  .footer-column::after {
    display: none;
  }
}

/* Compact Column Class */
.compact-col .footer-widget {
  padding: 0.2rem 0;
}

.compact-col .footer-heading {
  margin-bottom: 0.5rem;
}

.compact-col .footer-links li {
  margin-bottom: 4px;
}

.compact-col .footer-links a {
  font-size: 0.85rem !important;
}

/* Additional contact item compactness */
.compact-contact-info {
  font-size: 0.8rem;
}

.compact-contact-info .contact-item {
  margin-bottom: 3px;
  padding: 2px 0;
}

.compact-contact-info .contact-item span {
  font-size: 0.75rem;
}

/* Responsive adjustments for more compact mobile view */
@media (max-width: 767px) {
  .footer {
    padding: 1rem 0 0.5rem;
  }
  
  .footer .row.gy-2 > div {
    margin-bottom: 0.8rem;
  }
  
  .footer-heading {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 1rem !important;
  }
  
  .footer-logo {
    max-width: 140px;
  }
  
  .contact-item {
    padding: 0.3rem;
  }
  
  .newsletter-desc {
    margin-bottom: 0.4rem;
  }
  
  .copyright-text {
    margin: 0.5rem 0;
    font-size: 0.8rem;
  }
}

/* Responsive styles for the new layout */
@media (max-width: 767px) {
  .footer-brand.d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo-container.me-3 {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .footer-text-content {
    text-align: center;
  }
  
  .social-icons-container.text-left {
    justify-content: center;
  }
  
  .newsletter-widget {
    margin-top: 1rem;
    text-align: center;
  }
  
  .contact-info-horizontal .row > div {
    margin-bottom: 0.8rem;
  }
}

/* Fix responsiveness for screens between 900px and 767px */
@media (max-width: 900px) and (min-width: 768px) {
  .top-footer-row {
    flex-direction: column;
  }
  
  .top-footer-row .footer-column {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .newsletter-widget {
    margin-top: 1rem;
  }
  
  .footer-logo {
    width: 120px;
  }
  
  .footer-brand.d-flex {
    align-items: flex-start;
  }
} 