/* ===========================
   MODERN FOOTER - CSS
   =========================== */

:root {
    --footer-bg: #1a202c;
    --footer-text: #e2e8f0;
    --footer-heading: #ffffff;
    --footer-link-hover: #667eea;
    --footer-border: #2d3748;
    --primary: #667eea;
    --secondary: #764ba2;
    
    --shadow-lg: 0 -4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===========================
   PAGE WRAPPER
   =========================== */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.content {
    flex: 1;
}

/* ===========================
   FOOTER
   =========================== */
.lern-footer {
    background: linear-gradient(135deg, #1a9b7b 0%, #6b257e 100%);
    color: var(--footer-text);
    padding: 60px 0 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.lern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   FOLLOW US SECTION
   =========================== */
.follow-us {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--footer-border);
}

.follow-us h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

.social-icons img {
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
    filter: brightness(1) invert(1);
}

.sub-note {
    font-size: 0.9rem;
    color: var(--footer-text);
    opacity: 0.8;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   FOOTER COLUMNS
   =========================== */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
}

.footer-col h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    transition: var(--transition);
}

.footer-col ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.footer-col ul li:hover {
    padding-left: 24px;
}

.footer-col ul li:hover::before {
    opacity: 1;
}

.footer-col ul li a,
.footer-col ul li {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--footer-link-hover);
    transform: translateX(5px);
}

.footer-col ul li img {
    width: 20px;
    height: 20px;
    filter: brightness(1) invert(1);
}

/* ===========================
   FOOTER BOTTOM
   =========================== */
.footer-bottom {
    padding-top: 30px;
    border-top: 2px solid var(--footer-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--footer-text);
    opacity: 0.9;
    margin-bottom: 12px;
    line-height: 1.8;
}

.footer-bottom a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 2px 0;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--footer-link-hover);
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .lern-footer {
        padding: 40px 0 20px;
    }
    
    .follow-us {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .follow-us h3 {
        font-size: 1.6rem;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-bottom a {
        display: inline-block;
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    .lern-footer {
        padding: 30px 0 15px;
    }
    
    .footer-inner {
        padding: 0 15px;
    }
    
    .follow-us {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .follow-us h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .social-icons {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .social-icons a {
        width: 42px;
        height: 42px;
    }
    
    .social-icons img {
        width: 20px;
        height: 20px;
    }
    
    .sub-note {
        font-size: 0.85rem;
    }
    
    .footer-col h5 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .footer-col ul li {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lern-footer {
    animation: fadeInUp 0.6s ease;
}

/* ===========================
   HOVER EFFECTS
   =========================== */
.footer-col ul li a {
    position: relative;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-col ul li a:hover::before {
    width: 100%;
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .lern-footer {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .lern-footer::before {
        display: none;
    }
    
    .social-icons,
    .footer-bottom {
        display: none;
    }
}