/* ================= FOOTER VARIABLES ================= */
:root {
    --footer-bg: #282a65; /* Deep Blue from IVF */
    --footer-accent: #f25c8a; /* Bright Pink from care.in */
    --footer-text: #cbd5e1; /* Light gray for readable text */
    --footer-white: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* ================= FOOTER BASE ================= */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: "Quicksand", sans-serif;    padding-top: 40px;
}

.site-footer a {
    text-decoration: none;
    transition: 0.3s ease;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* ================= FOOTER HEAD ================= */
.footer-head {
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 96px;
    width: auto;
    display: block;
}

.btn-outline-white {
    border: 2px solid var(--footer-white);
    color: var(--footer-white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-white:hover {
    background-color: var(--footer-accent);
    border-color: var(--footer-accent);
    color: var(--footer-white);
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-head-instagram {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    border: 2px solid var(--footer-white);
    color: var(--footer-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-head-instagram:hover {
    background-color: var(--footer-accent);
    border-color: var(--footer-accent);
    color: var(--footer-white);
}

.footer-about-logo {
    display: block;
    line-height: 0;
    margin-bottom: 14px;
}

.footer-about-logo-img {
    height: auto;
    width: 100%;
    max-width: 380px;
    display: block;
    filter: brightness(0) invert(1);
}

/* ================= FOOTER TOP ================= */
.col-newsletter {
    width: 35%;
    padding: 0 15px;
    margin-top: 0;
}

.col-newsletter .widget {
    margin-top: 0;
}
.about-ivf-col .widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-ivf-col .widget-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.about-ivf-col .widget-desc {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: 0;
    max-width: 430px;
}

.col-links-wrapper {
    width: 65%;
    padding: 0 15px;
}

.col-link {
    width: 25%;
    padding: 0 15px;
}

.widget-title {
    color: var(--footer-white);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.widget-desc {
    margin-bottom: 25px;
    font-size: 15px;
}

/* Newsletter Form */
.newsletter-form {
    position: relative;
    max-width: 100%;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--footer-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 23px;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: none;
    background-color: var(--footer-accent);
    color: var(--footer-white);
    cursor: pointer;
    transition: 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--footer-white);
    color: var(--footer-accent);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--footer-text);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    color: var(--footer-accent);
    font-size: 12px;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: var(--footer-accent);
    padding-left: 5px; /* Nice sliding effect on hover */
}

/* ================= FOOTER MIDDLE ================= */
.footer-middle {
    margin-top: 50px;
    margin-bottom: 30px;
}

.contact-box-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--footer-border);
    border-radius: 20px;
    padding: 30px 40px;
}

.align-center {
    align-items: center;
}

.col-info {
    width: 25%;
    padding: 0 15px;
}

.head-info h3 {
    color: var(--footer-white);
    font-size: 20px;
    margin-bottom: 5px;
}

.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.row.align-center {
    align-items: stretch;
}
.icon-box .icon {
    height: 50px;
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    aspect-ratio: 1 / 1;
    background: rgba(242, 92, 138, 0.1); /* Transparent Pink */
    color: var(--footer-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-box .text h5 {
    color: var(--footer-text);
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: 400;
}

.icon-box .text a, 
.icon-box .text p {
    color: var(--footer-white);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.icon-box .text a:hover {
    color: var(--footer-accent);
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 25px 0;
}

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

.copyright p,
.developer-credit p {
    margin: 0;
    font-size: 15px;
}

.copyright a,
.developer-credit a {
    color: var(--footer-accent);
    font-weight: 600;
}

.copyright a:hover,
.developer-credit a:hover {
    color: var(--footer-white);
}

@media (max-width: 768px) {
    .bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 992px) {
    .col-newsletter {
        width: 100%;
        margin-bottom: 40px;
    }
    .col-links-wrapper {
        width: 100%;
    }
    .col-link {
        width: 50%;
        margin-bottom: 30px;
    }
    .col-info {
        width: 50%;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .head-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .col-link {
        width: 100%;
    }
    .col-info {
        width: 100%;
    }
    .contact-box-wrapper {
        padding: 30px 20px;
    }
    .footer-about-logo-img {
        height: auto;
        width: 100%;
        max-width: 300px;
    }
}
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 9999;
}

.social-sidebar a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Individual Colors */
.facebook { background: #1877F2; }
.linkedin { background: #0077B5; }
.instagram { background: #E4405F; }
.email { background: #9E9E9E; }
.whatsapp { background: #25D366; }

/* Hover Effect */
.social-sidebar a:hover {
    transform: translateX(6px);
    opacity: 0.9;
}

/* Rounded Edges */
.social-sidebar a:first-child {
    border-top-right-radius: 12px;
}

.social-sidebar a:last-child {
    border-bottom-right-radius: 12px;
}

/* Mobile: keep sidebar visible with compact sizing */
@media (max-width: 768px) {
    .social-sidebar {
        display: none !important;
    }
}

/* Shared mobile image fallback across pages */
@media (max-width: 768px) {
    main img,
    .page-content img,
    section img {
        max-width: 100%;
    }
}

/* Global responsive fallback used by all page templates */
@media (max-width: 1024px) {
    main .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    main .row,
    main .flex-row {
        flex-direction: column !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    main [class^="col-"],
    main [class*=" col-"],
    main .w-40,
    main .w-60 {
        width: 100% !important;
        max-width: 100% !important;
    }

    main [class^="col-"],
    main [class*=" col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    main .home-team-grid,
    main .stats-grid,
    main .ivf-steps-grid,
    main .news-grid,
    main .blogs-grid,
    main .team-grid,
    main .cards,
    main .cards-grid,
    main .core-services-grid,
    main .steps-grid,
    main .male-treatment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    main .section-pad,
    main .section-space {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }

    main .hero-title,
    main .section-title {
        line-height: 1.2 !important;
        word-break: break-word;
    }

    main .home-team-grid,
    main .stats-grid,
    main .ivf-steps-grid,
    main .news-grid,
    main .blogs-grid,
    main .team-grid,
    main .cards,
    main .cards-grid,
    main .core-services-grid,
    main .steps-grid,
    main .male-treatment-grid {
        grid-template-columns: 1fr !important;
    }

    main iframe,
    main video {
        max-width: 100%;
        height: auto;
    }
}
