.footer {
    background-color: #800000;
    color: white;
    margin-top: 50px;
}

.footer-main {
    padding: 60px 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #FFA500;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #fcfafa;
    padding-bottom: 8px;
    display: inline-block;
}

.school-info {
    max-width: 280px;
}

.school-logo {
    width: 80px; 
    height: auto;
    margin-bottom: 15px;
}

.school-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; 
}

.school-name {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #FFA500;
}

.school-motto {
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.school-description {
    line-height: 1.6;
    color: #ddd;
    font-size: 0.9em;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 12px;
}

.nav-list a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-list a:hover {
    color: #FFA500;
    padding-left: 10px;
}

.nav-list a i {
    margin-right: 8px;
    width: 16px;
    font-size: 0.9em;
}

.dropdown-items {
    margin-left: 20px;
    margin-top: 8px;
}

.dropdown-items a {
    font-size: 0.85em;
    color: #bbb;
    margin-bottom: 8px;
}

.dropdown-items a:hover {
    color: #FFA500;
}

.contact-info {
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 8px 0;
}

.contact-item i {
    margin-right: 12px;
    margin-top: 2px;
    color: #FFA500;
    width: 18px;
    font-size: 1.1em;
}

.contact-item-content {
    flex: 1;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
    color: white;
}

.contact-item span {
    color: #ddd;
    font-size: 0.9em;
}

.map-section {
    background: #800000;
    padding: 40px 0;
    border-top: 1px solid #fffdfd;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(45deg, #444, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFA500;
    font-size: 1.2em;
    text-align: center;
}

.footer-bottom {
    background: #1a1a1a;
    padding: 25px 0;
    border-top: 1px solid #333;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #bbb;
    font-size: 0.9em;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.social-links a:hover {
    background: #800000;
    color: white;
    transform: translateY(-2px);
}

.quick-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #FFA500;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #800000;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .quick-links {
        justify-content: center;
    }

    .map-container {
        height: 200px;
    }

    .school-info {
        max-width: 100%;
    }

    .footer-main {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .footer .container {
        padding: 0 15px;
    }

    .footer-main {
        padding: 30px 0;
    }

    .map-section {
        padding: 25px 0;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section h3 {
        font-size: 1.2em;
    }

    .school-name {
        font-size: 1.2em;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}