/* Modern Footer Styles */
.main-footer {
  background-color: var(--color-footer-bg, #0d6a40);
  color: var(--color-footer-color, #fff);
  padding: 0rem 0 1rem;
  margin-top: auto;
}

/* Top Band Section */
.footer-top-band {
    background-color: #C7D89C;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-band-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-item i {
    font-size: 1.5rem;
    color: #0D6A40;
}

.support-content {
    display: flex;
    flex-direction: column;
}

.support-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.support-content a {
    color: #0D6A40;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.support-content a:hover {
    color: #094d2e;
}

.newsletter-subscription {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    min-width: 250px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: #0D6A40;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #0D6A40;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #094d2e;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 4fr 1fr;
  gap: 2rem;
}

/* Left Section */
.footer-left {
    max-width: 400px;
}

.footer-left .company-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-footer-color, #fff);
}

.footer-left .company-desc {
    color: var(--color-footer-text, rgba(255, 255, 255, 0.8));
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    width: auto;
    height: auto;
    display: block;
}

.footer-left .company-address {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.footer-left .company-address p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 0;
    margin-left: 0;
}

.footer-left .company-address i {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* Social Links - Old Style (when top band is disabled) */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-footer-color, #fff);
  transition: transform 0.3s ease;
  position: relative;
  text-decoration: none;
}

.social-links a i {
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Social Links in Footer Right - Horizontal Layout (when top band is enabled) */
.social-links-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-footer a i {
    font-size: 1.2rem;
}

.social-links-footer a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer section headings with underline */
.footer-middle h4,
.footer-right h4 {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.footer-middle h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-right h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Quick Links - Fixed hover behavior */
.quick-links {
  display: flex;
  gap: 2rem;
}

.links-column {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 120px;
}

.links-column li {
  margin-bottom: 0.5rem;
  position: relative;
}

.links-column a {
  color: var(--color-footer-text, rgba(255, 255, 255, 0.8));
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.links-column a:hover {
  color: var(--color-footer-color, #fff);
}

.links-column a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--color-footer-color, #fff);
  transition: width 0.3s ease;
}

.links-column a:hover::before {
  width: 100%;
}

/* Contact Info */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-footer-text, rgba(255, 255, 255, 0.8));
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-info i {
  width: 20px;
  color: var(--color-footer-text-secondary, rgba(255, 255, 255, 0.6));
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--color-footer-text-secondary, rgba(255, 255, 255, 0.6));
  font-size: 0.9rem;
}

/* Responsive Design */
/* Tablet and Medium Screens */
@media (max-width: 992px) {
    .top-band-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1.5rem;
        align-items: flex-start;
        padding: 0 1.25rem;
    }

    .support-item {
        align-items: flex-start;
    }

    /* Newsletter subscription spans both columns on second row */
    .newsletter-subscription {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .newsletter-input {
        flex: 1;
        min-width: 200px;
    }

    .newsletter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        min-width: 120px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .footer-left {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-left .company-address p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links-footer {
        justify-content: center;
    }

    .footer-middle h4::after {
        left: 0;
        transform: none;
    }

    .footer-right h4::after {
        left: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    /* Top Band Mobile Styles */
    .footer-top-band {
        padding: 1.5rem 0;
    }

    .top-band-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        padding: 0 1rem;
    }

    .support-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .support-item i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .support-content {
        flex: 1;
    }

    .support-label {
        font-size: 0.9rem;
    }

    .support-content a {
        font-size: 0.85rem;
    }

    .newsletter-subscription {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .newsletter-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    /* Footer Content */
    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.5rem 1rem 1rem;
        gap: 2rem;
    }

    .footer-left {
        padding: 0 1rem;
    }

    .footer-left .company-address p {
        justify-content: center;
        font-size: 0.9rem;
    }

    .quick-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-info p {
        justify-content: center;
        font-size: 0.9rem;
    }

    .footer-right, .footer-middle {
        margin-top: 0;
    }

    .footer-middle h4::after,
    .footer-right h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1.25rem 1rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Top Band Extra Small Screens */
    .footer-top-band {
        padding: 1.25rem 0;
    }

    .top-band-wrapper {
        gap: 1rem;
        padding: 0 0.75rem;
    }

    .support-item {
        gap: 0.6rem;
    }

    .support-item i {
        font-size: 1.15rem;
    }

    .support-label {
        font-size: 0.85rem;
    }

    .support-content a {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .newsletter-input,
    .newsletter-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Footer Content */
    .footer-wrapper {
        padding: 2rem 0.75rem 1rem;
        gap: 1.5rem;
    }

    .quick-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .links-column {
        text-align: center;
        min-width: auto;
    }

    .links-column a {
        font-size: 0.9rem;
    }

    .footer-left .company-address p {
        font-size: 0.85rem;
    }

    .footer-middle h4,
    .footer-right h4 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Extra responsive adjustments for very small screens */
@media (max-width: 360px) {
    .top-band-wrapper {
        padding: 0 0.5rem;
    }

    .support-content a {
        font-size: 0.75rem;
        word-break: break-word;
    }

    .newsletter-input,
    .newsletter-btn {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .footer-wrapper {
        padding: 1.5rem 0.5rem 0.75rem;
    }

    .footer-left .company-address p {
        font-size: 0.8rem;
    }
}
