/* Footer Enhancements - KONI Aceh Colors - Predominantly White Theme */
.footer {
    background-color: #ffffff; /* White background to match header */
    color: #323232; /* Darker text to ensure readability on white */
    border-top: 4px solid #e30613;  /* KONI brand color - Red (updated to match header) */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06); /* Subtle shadow to match header */
    position: relative;
    overflow: hidden; /* Prevent any content from overflowing */
    width: 100%; /* Ensure footer takes up exactly 100% width */
}

.footer-widgets {
    padding: 60px 0 30px;
    background: #ffffff; /* Pure white background to match header */
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    border-bottom: 1px solid rgba(227, 6, 19, 0.05); /* Subtle red separator */
}

.footer-widget {
    margin-bottom: 5px;
}

.footer-widget__title {
    color: #323232; /* Dark text to match header */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget__title:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ffd100; /* KONI yellow accent - updated to match header */
}

.footer-widget__content p {
    margin-bottom: 15px;
    color: #666; /* Lighter but still readable on white background */
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 6px rgba(227, 6, 19, 0.2));
}

.footer-widget__list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.footer-widget__list li {
    margin-bottom: 8px;
}

.footer-widget__list a {
    color: #666; /* Readable on white background */
    transition: color 0.2s ease;
    position: relative;
    padding-left: 15px;
}

.footer-widget__list a:before {
    content: "\f105";  /* Font Awesome arrow right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #e30613; /* KONI red */
}

.footer-widget__list a:hover {
    color: #e30613; /* KONI red for hover - matching header */
    text-decoration: none;
}

.footer-address__row {
    margin-bottom: 12px;
}

.footer-address__label {
    color: #323232; /* Dark text to match header theme */
    font-weight: 600;
}

.footer-address__txt a {
    color: #666; /* Readable on white background */
    transition: color 0.2s ease;
}

.footer-address__txt a:hover {
    color: #e30613; /* KONI red - matching header interactive elements */
    text-decoration: none;
}

.social-links--btn {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.social-links--btn .social-links__item {
    margin: 0 5px 10px;
}

.social-links--btn .social-links__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff; /* White background */
    border-radius: 4px;
    color: #323232; /* Dark text */
    transition: all 0.3s ease;
    border: 1px solid rgba(227, 6, 19, 0.1); /* Subtle border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.social-links--btn .social-links__link:hover {
    background-color: #e30613; /* KONI red */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.2);
}

.footer-subscribe {
    margin-top: 20px;
}

.footer-subscribe__title {
    color: #323232; /* Dark text to match header theme */
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-subscribe__form .form-control {
    background-color: #ffffff;
    border: 1px solid rgba(227, 6, 19, 0.2); /* Subtle red border - matching header */
    color: #323232;
}

.footer-subscribe__form .form-control:focus {
    border-color: #e30613; /* KONI red */
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.15); /* Matching header focus style */
}

.footer-subscribe__form .btn-primary {
    background-color: #e30613; /* KONI red */
    border-color: #e30613;
}

.footer-subscribe__form .btn-primary:hover {
    background-color: #c00; /* Slightly darker red */
    border-color: #c00;
}

.footer-secondary {
    background-color: #ffffff; /* Pure white for secondary footer */
    padding: 15px 0;
    border-top: 1px solid rgba(227, 6, 19, 0.1); /* Subtle red border - matching header */
    position: relative;
    z-index: 2;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.02); /* Very subtle shadow */
    overflow: hidden; /* Prevent overflow */
}

.footer-copyright__txt {
    margin-bottom: 0;
    font-size: 13px;
    color: #666; /* Medium grey text */
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.footer-nav--right {
    justify-content: flex-end;
}

.footer-nav__item {
    margin-left: 15px;
}

.footer-nav__item a {
    color: #666; /* Medium grey text */
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-nav__item a:hover {
    color: #e30613; /* KONI red - matching header hover */
    text-decoration: none;
}

/* Style icons in the footer with KONI colors - consistent with header */
.footer .fas,
.footer .fab {
    color: #e30613; /* KONI red icons */
    margin-right: 5px;
}

/* Add KONI Olympic rings style for certain elements - matching header */
.footer-widget__title {
    position: relative;
}

.footer-widget__title:before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #e30613; /* Red Olympic ring */
    margin-right: 12px;
    box-shadow: 8px 0 0 #ffd100; /* Yellow Olympic ring - matching header */
    position: absolute;
    top: -10px;
    left: 0;
    animation: pulse-koni 2s infinite; /* Adding animation like in header */
}

@keyframes pulse-koni {
    0% {
        box-shadow: 8px 0 0 #ffd100, 0 0 0 0 rgba(227, 6, 19, 0.7);
    }
    70% {
        box-shadow: 8px 0 0 #ffd100, 0 0 0 6px rgba(227, 6, 19, 0);
    }
    100% {
        box-shadow: 8px 0 0 #ffd100, 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

/* Add red highlights to specific elements - matching header */
.footer-widget__content strong,
.footer-subscribe__title strong {
    color: #e30613; /* KONI red for emphasis - matching header */
}

@media (max-width: 767.98px) {
    .footer-nav--right {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .footer-nav__item {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* Additional styling for consistency with header */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    max-width: 200px; /* Limit maximum width to prevent overflow */
    height: 3px;
    background-color: #ffd100; /* KONI yellow accent - matching header */
}

/* Subtle pattern for the footer widgets area */
.footer-widgets {
    position: relative;
    overflow: hidden; /* Prevent any content from overflowing */
}

.footer-widgets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Use width instead of right to prevent overflow */
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e30613' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Add shadow effect to footer widgets */
.footer-widget {
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.6); /* Slight transparency */
}

.footer-widget:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Style address text to match header text */
.footer-address__txt {
    color: #666;
    word-break: break-word; /* Allow long text like email addresses to wrap */
    overflow-wrap: break-word; /* Modern alternative */
}

/* Ensure all text in footer has consistent color */
.footer p,
.footer .footer-address,
.footer .footer-subscribe {
    color: #666;
}

/* Ensure proper box-sizing for all elements in footer */
.footer *,
.footer *::before,
.footer *::after {
    box-sizing: border-box;
}

/* Additional styling for enhanced visual appeal and consistency with header */
.footer-subscribe__form .btn-primary {
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.footer-subscribe__form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.2);
}

/* Add subtle hover effects to all interactive elements */
.footer-widget__list a,
.footer-address__txt a,
.footer-nav__item a {
    position: relative;
    transition: all 0.3s ease;
}

.footer-widget__list a:hover,
.footer-address__txt a:hover,
.footer-nav__item a:hover {
    padding-left: 2px;
}

/* Create a subtle decorative element at the bottom of the page */
.footer::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%; /* Use width instead of right to prevent overflow */
    height: 6px;
    background: linear-gradient(90deg, #e30613 0%, #ffd100 100%);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(4px);
}

/* Mobile Footer Optimizations */
@media (max-width: 768px) {
    /* Reduce footer padding for mobile */
    .footer-widgets {
        padding: 30px 0 15px;
    }
    
    /* Simplify footer widget spacing */
    .footer-widget {
        margin-bottom: 25px;
        padding: 10px;
    }
    
    .footer-widget:last-child {
        margin-bottom: 0;
    }
    
    /* Reduce title font size and spacing */
    .footer-widget__title {
        font-size: 14px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .footer-widget__title:before {
        display: none; /* Hide decorative Olympic rings on mobile */
    }
    
    /* Compact footer logo */
    .footer-logo img {
        max-width: 120px;
        margin-bottom: 10px;
    }
      /* Limit footer description text */
    .footer-logo .footer-widget__content p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Hide less essential quick links on mobile */
    .footer-widget--links .footer-widget__list li:nth-child(n+5) {
        display: none;
    }
    
    /* Compact contact information */
    .footer-address__row {
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .footer-address__label {
        font-size: 12px;
        margin-bottom: 2px;
        display: block;
    }
    
    .footer-address__txt {
        font-size: 13px;
        margin-left: 0;
    }
    
    /* Hide working hours on mobile to save space */
    .footer-address__row:last-child {
        display: none;
    }
    
    /* Simplify social media section */
    .social-links--btn {
        justify-content: center;
        margin: 10px 0;
    }
    
    .social-links--btn .social-links__link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* Hide social media description text on mobile */
    .footer-widget:last-child .footer-widget__content p {
        display: none;
    }
    
    /* Compact footer secondary */
    .footer-secondary {
        padding: 10px 0;
        text-align: center;
    }
    
    .footer-copyright__txt {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    /* Stack footer navigation vertically on mobile */
    .footer-nav--right {
        justify-content: center;
        margin-top: 5px;
    }
    
    .footer-nav__item {
        margin: 0 8px 5px 8px;
    }
    
    .footer-nav__item a {
        font-size: 12px;
    }
    
    /* Reduce decorative elements on mobile */
    .footer::after,
    .footer::before {
        display: none;
    }
    
    .footer-widgets::before {
        opacity: 0.01; /* Barely visible pattern on mobile */
    }
    
    /* Remove hover effects on mobile */
    .footer-widget:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Adjust column layout for mobile - force single column for better readability */
    .footer-widgets .row > div {
        margin-bottom: 20px;
    }
    
    .footer-widgets .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .footer-widgets {
        padding: 20px 0 10px;
    }
    
    .footer-widget {
        margin-bottom: 20px;
        padding: 8px;
    }
    
    .footer-widget__title {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-logo img {
        max-width: 100px;
    }
      .footer-logo .footer-widget__content p {
        font-size: 12px;
        -webkit-line-clamp: 2; /* Further limit text on very small screens */
        line-clamp: 2;
    }
    
    /* Show only essential quick links */
    .footer-widget--links .footer-widget__list li:nth-child(n+4) {
        display: none;
    }
    
    .footer-address__row,
    .footer-address__txt {
        font-size: 12px;
    }
    
    .social-links--btn .social-links__link {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin: 0 3px;
    }
    
    .footer-secondary {
        padding: 8px 0;
    }
    
    .footer-copyright__txt {
        font-size: 11px;
    }
    
    .footer-nav__item a {
        font-size: 11px;
    }
}
