/* Main footer styling */
footer {
    background-color: var(--background-200);
    color: var(--text-700);
    padding-top: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

footer .container {
    padding-bottom: var(--spacing-lg);
}

/* Responsive grid for footer sections */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* Content within footer columns */
.footer-column h3 {
    font-size: var(--text-lg);
    color: var(--text-800);
    margin-bottom: var(--spacing-md);
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul a {
    font-size: var(--text-sm);
}

.footer-column p {
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-md);
}

/* Newsletter subscription form */
.newsletter-form {
    display: flex;
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background-color: var(--background-100);
    color: var(--color-text-primary);
    font-size: var(--text-sm);
    min-width: 100px;
}

.newsletter-form input[type="email"]:focus {
    outline: 2px solid var(--color-accent-default);
    outline-offset: -1px;
}


.newsletter-form button .material-symbols-outlined {
    font-size: 20px;
    background-color: var(--secondary-800);
    color: var(--background-100);
    padding: var(--spacing-sm);
    flex-shrink: 0;
}

.newsletter-form button img {
    height: 20px;
    width: 20px;
    display: block;
}

.newsletter-form button:hover,
.newsletter-form button:focus {
    background-color: var(--text-800);
}

/* Bottom footer bar with copyright and social links */
.footer-bottom {
    border-top: 1px solid var(--background-300);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: var(--text-xs);
    color: var(--text-600);
}

/* Social media icons using Font Awesome */
.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.social-icons a i {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-size: 20px;
    opacity: 0.9;
    display: inline-block;
    color: var(--secondary-800);
}

.social-icons a i::before {
    content: var(--fa);
    display: block;
}

.social-icons a:hover i {
    opacity: 1;
}

/* Right-aligned copyright text */
.copyright {
    text-align: right;
}