/* ===================================================
   DESKTOP STYLES (Screen size above 768px)
   =================================================== */
.footer-tedx-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 5px auto; 
}

.footer {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.contact-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 5px;
}

.social-media-icons a {
    text-decoration: none;
}

.social-media-icons a i {
    color: #888888;
    font-size: 2.5rem;
    transition: 0.3s;
}

.social-media-icons a i:hover .rednote-inner-character .fa-square{
    color: #ffffff;
    transform: scale(1.1);
}

.license-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 10px;
    width: 70%;
    text-align: center;
}

.rednote-icon-btn {
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}

.rednote-fa-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;  /* Matches your desktop 2.5rem font-size precisely */
    height: 2.5rem;
}

/* Forces the solid square background base layer to align with Font Awesome colors */
.rednote-fa-wrapper .fa-square {
    font-size: 2.5rem;
    color: #888888; /* Matches your exact standard icon grey */
    transition: 0.3s ease;
}

/* Centers the modern geometric R cleanly inside the frame */
.rednote-inner-character {
    position: absolute;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem; /* Balanced proportional layout constraint */
    font-weight: 900;
    color: black; /* Cuts out of the grey background container shape beautifully */
    line-height: 1;
    user-select: none;
}

/* ===================================================
   GLOBAL FOOTER MOBILE SCALING (768px and below)
   =================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 20px 15px; /* FIXED: Shaved down so it stays snug and compact on mobile */
    }

    .footer-tedx-logo {
        max-width: 180px; /* FIXED: Visually downscaled the massive logo box to sit nicely */
    }

    .contact-section h3 {
        font-size: 0.95rem; /* FIXED: Balanced heading size for mobile viewports */
    }

    .social-media-icons {
        gap: 20px; /* FIXED: Adjusted class name match and spacing for finger targets */
    }

    .social-media-icons a i {
        font-size: 1.2rem; /* FIXED: Adjusted class name match to scale icons down elegantly */
    }

    /* 1. Scales down the Rednote flex wrapper box layout */
    .rednote-fa-wrapper {
        width: 1.2rem;
        height: 1.2rem;
    }

    /* 2. Scales down the background solid square element */
    .rednote-fa-wrapper .fa-square {
        font-size: 1.2rem !important;
    }

    /* 3. Scales down the inner text character so it stays centered inside the scaled box */
    .rednote-inner-character {
        font-size: 0.65rem !important;
    }

    .license-text {
        width: 90%;
        font-size: 0.55rem; /* FIXED: Made copyright information more subtle */
        line-height: 1.5;
    }
}