* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Footer Styles */
.footer {
    background-color: #071041;
    color: white;
    position: relative;
}

/* Back to top button */
.back-to-top {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0090d0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #007bb8;
    transform: translateX(-50%) scale(1.1);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Container */
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 16px 32px;
}

@media (min-width: 640px) {
    .footer-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Main grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Company info section */
.company-info {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .company-info {
        grid-column: span 1;
    }
}

.company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-direction: row-reverse;
}

.company-logo {
    background-color: #0090d0;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo svg {
    width: 32px;
    height: 32px;
    color: white;
    transform: scaleX(-1);
}

.company-title h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.company-title p {
    font-size: 14px;
    color: #d1d5db;
}

.company-description {
    color: #d1d5db;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.contact-item.address {
    align-items: flex-start;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: #0090d0;
    flex-shrink: 0;
}

.contact-item.address svg {
    margin-top: 4px;
}

.contact-item span {
    color: #d1d5db;
}

/* Footer sections */
.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0090d0;
    text-decoration: underline;
}

/* Newsletter section */
.newsletter-section {
    border-top: 1px solid #374151;
    padding-top: 32px;
    margin-bottom: 32px;
}

.newsletter-content {
    max-width: 512px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.newsletter-content p {
    color: #d1d5db;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 384px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    ring: 2px solid #0090d0;
    border-color: #0090d0;
}

.newsletter-button {
    background-color: #0090d0;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-button:hover {
    background-color: #007bb8;
}

/* Bottom section */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

@media (min-width: 1024px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.social-media {
    display: flex;
    gap: 24px;
    flex-direction: row-reverse;
}

.social-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #0090d0;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.copyright {
    text-align: center;
}

@media (min-width: 1024px) {
    .copyright {
        text-align: right;
    }
}

.copyright p {
    color: #d1d5db;
}

.copyright .small-text {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}