.footer {
    background-color: #660B13;
    position: relative;
    overflow: hidden;
    padding: 60px 20px 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://dmpsmodinagar.com/wp-content/uploads/2025/12/footer-image.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* ✅ DESKTOP — 4 COLUMNS + BORDER RIGHT */
.footer-content {
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.6fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* ✅ Border on 2nd Column */
.footer-content .footer-section:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 15px;
}

.footer-section {
    color: white;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-container {
    padding:5px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    background: white;
}

.logo-container img {
    width: 87%;
    height: 90%;
    object-fit: cover;
}

.unit-text {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.group-name {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.footer-section h3 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-label {
    margin: 0;
    font-weight: 500;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.contact-number {
	text-align: justify!important;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: white;
    text-decoration: none;
    display: block;
}

.contact-number:hover {
    opacity: 0.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}

.social-media {
    margin-top: 30px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon:hover {
    transform: scale(1.1);
}

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

.quick-links li {
    margin-bottom: 5px;
}

.quick-links a {
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.quick-links a:hover {
    opacity: 0.7;
}

.copyright {
    background-color: #660B13;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: white;
    margin: 0;
}

/* TABLET — 2 COLUMNS (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer {
        padding: 50px 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    /* Remove border from 2nd column in tablet */
    .footer-content .footer-section:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .footer-section h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }

    .unit-text {
        font-size: 14px;
    }

    .group-name {
        font-size: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* MOBILE — 1 COLUMN (max-width: 768px) */
@media (max-width: 768px) {
    .footer {
        padding: 40px 15px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 30px;
        text-align: center;
    }

    /* Remove border from 2nd column */
    .footer-content .footer-section:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .footer-logo-section {
        align-items: center;
    }

    .logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .unit-text {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .group-name {
        font-size: 18px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .contact-item {
        margin-bottom: 15px;
    }

    .contact-label {
        font-size: 13px;
    }

    .contact-number {
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-links {
        padding: 0;
    }

    .quick-links li {
        margin-bottom: 8px;
    }

    .quick-links a {
        font-size: 14px;
    }

    .social-media {
        margin-top: 20px;
    }

    .social-icons {
        justify-content: center;
        gap: 12px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .copyright {
        padding: 15px 10px;
    }

    .copyright p {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* EXTRA SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 10px 0;
    }

    .footer-content {
        gap: 0px;
    }

    .logo-container {
        width: 90px;
        height: 90px;
    }

    .unit-text {
        font-size: 16px;
    }

    .group-name {
        font-size: 18px;
    }

    .footer-section h3 {
        margin-bottom:0;
        font-size: 16px;
    }

    .contact-label {
        font-size: 16px;
    }

    .contact-number {
        font-size: 16px;
    }

    .quick-links a {
        font-size: 16px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .copyright p {
        font-size: 16px;
    }
}

/* ============================================
   FOOTER ACCORDION CSS - Add to your existing CSS
   ============================================ */

/* Accordion Toggle Button - Hidden on Desktop */
.accordion-toggle {
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.2);*/
    margin-bottom: 0;
}

.accordion-toggle::after {
    content: '+';
    display: inline-block;
    margin-left: 10px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
}

.accordion-toggle.active::after {
    content: '−';
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Mobile Styles for Accordion */
@media (max-width: 768px) {
    /* Show accordion toggle on mobile for menu sections */
    .footer-section.accordion-section .accordion-toggle {
        margin-left:15px;
        display: block;
    }

    /* Hide h3 when accordion is present */
    .footer-section.accordion-section > h3 {
        display: none;
    }

    /* Content hidden by default on mobile */
    .footer-section.accordion-section .accordion-content {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Content visible when active */
    .footer-section.accordion-section .accordion-content.active {
        max-height: 800px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Add border bottom to accordion sections */
    .footer-section.accordion-section {
        /*border-bottom: 1px solid rgba(255, 255, 255, 0.2);*/
        padding-bottom: 0;
    }

    .footer-section.accordion-section:last-child {
        border-bottom: none;
    }
}

/* ============================================
   FOOTER HTML STRUCTURE
   ============================================ */
