/* ===== FOOTER FIX FOR POST PAGE ===== */

/* Reset footer positioning */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 0;
}

/* Footer Waves */
.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    line-height: 0;
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Container Fix */
.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Footer Top */
.footer-top {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.footer-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.footer-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 16px;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Social Media */
.footer-social {
    margin-top: 30px;
}

.footer-social h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.email {
    background: #ea4335;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.social-tooltip {
    display: none;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 50px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4 i {
    color: #d4af37;
    font-size: 22px;
}

/* Contact List */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-left: 5px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 18px;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.contact-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links a i {
    color: #d4af37;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 10px;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.map-link:hover {
    background: #d4af37;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.copyright-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copyright i {
    color: #d4af37;
    font-size: 14px;
}

.copyright strong {
    color: #ffffff;
    font-weight: 700;
}

.developer-credit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.developer-credit i {
    color: #d4af37;
    font-size: 14px;
}

.developer-credit strong {
    color: #d4af37;
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 5px 10px;
}

.footer-bottom-links a:hover {
    color: #d4af37;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-size: 12px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

/* Floating Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 60px;
    }

    .footer .container {
        padding: 0 30px;
    }

    .footer-top {
        padding: 60px 0 40px;
    }

    .footer-brand {
        margin-bottom: 40px;
    }

    .footer-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .footer-brand h3 {
        font-size: 24px;
    }

    .footer-tagline {
        font-size: 14px;
    }

    .footer-description {
        font-size: 14px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0;
    }

    .footer-col h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding: 35px 0;
    }

    .footer-bottom-content {
        padding: 0 30px;
        gap: 20px;
    }

    .copyright {
        font-size: 14px;
    }

    .developer-credit {
        font-size: 13px;
    }

    .footer-bottom-links {
        gap: 6px;
    }

    .footer-bottom-links a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .separator {
        font-size: 11px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 20px;
    }

    .footer-top {
        padding: 50px 0 30px;
    }

    .footer-brand {
        margin-bottom: 30px;
    }

    .footer-logo {
        width: 100px;
        height: 100px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-tagline {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .footer-description {
        font-size: 13px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .footer-content {
        gap: 30px;
        padding: 30px 0;
    }

    .footer-col h4 {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 16px;
    }

    .contact-info strong {
        font-size: 13px;
    }

    .contact-info span {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .map-container iframe {
        height: 180px;
    }

    .footer-bottom {
        padding: 30px 0;
    }

    .footer-bottom-content {
        padding: 0 20px;
        gap: 18px;
    }

    .copyright {
        font-size: 13px;
        flex-direction: column;
        gap: 5px;
    }

    .developer-credit {
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }

    .footer-bottom-links {
        gap: 5px;
        flex-direction: column;
    }

    .footer-bottom-links a {
        font-size: 11px;
        padding: 3px 6px;
    }

    .separator {
        display: none;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .footer-waves,
    .footer-particles,
    .back-to-top,
    .social-links {
        display: none !important;
    }

    .footer {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .footer * {
        color: #000000 !important;
    }
}
