/* Footer Styles */
.footer {
    background-color: #fff;
    color: #333;
    padding: 50px 0 20px;
    font-family: "DM Sans", sans-serif;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 10px;
}

.footer-top-left {
    flex: 1;
}

.footer-title {
    font-size: 35px;
    line-height: 45px;
    font-weight: 600;
    color: #ffffff;
    background-color: #E3001D;
    display: inline-block;
    padding: 16px 24px;
    letter-spacing: -3%;
}

.highlight-bg {
    background-color: #E3001D;
    color: #ffffff;
    display: inline-block;
    padding: 10px;
    font-size: 35px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: -3%;
    width: var(--footer-badge-width, auto);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    white-space: nowrap;
}

.footer-rotating-badge .badge-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    width: 100%;
}

.footer-rotating-badge .badge-char {
    display: inline-block;
    width: max-content;
    will-change: transform, opacity, filter;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-rotating-badge .badge-char--incoming {
    transform: translateY(20px);
    opacity: 0;
    filter: blur(4px);
}

.footer-rotating-badge .badge-char--active {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

.footer-rotating-badge .badge-char--outgoing {
    transform: translateY(-20px);
    opacity: 0;
    filter: blur(4px);
}

.footer-top-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #0F172A;
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline !important;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-links a:hover {
    color: #e31b23;
    text-decoration: none !important;
}

/* Footer Middle Section */
.footer-middle {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    font-weight: 800;
    color: #14151b;
    letter-spacing: -1px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #e31b23;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
}

.copyright {
    color: #0F172A;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e31b23;
}

.footer-social a svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.footer-social a:hover svg {
    transform: scale(1.1);
}

/* .footer-social a:hover svg path {
    stroke: #E3001D;
} */

/* Footer Divider */
.footer-divider {
    border: none;
    height: 2px;
    background-color: #F6B0B9;
    margin: 24px 0 19px;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.footer-red-text {
    color: #E3001D;
    font-weight: 700;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Footer Location Rotator & Tooltip */
.footer-location-wrapper {
    position: relative;
    display: inline-block;
}

.footer-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 1px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #0F172A;
    background-color: #E7E8EA;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.footer-location-btn:hover,
.footer-location-wrapper:hover .footer-location-btn {
    background-color: #0F172A;
    color: #ffffff;
}

.footer-location-btn svg {
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

.location-text-rotator {
    display: inline-block;
    position: relative;
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    vertical-align: middle;
    min-width: 110px;
    text-align: left;
}

.location-item {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.location-item.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.location-item.exit {
    opacity: 0;
    transform: translateY(-100%);
    position: absolute;
}

/* Location Tooltip */
.location-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 0;
    width: 320px;
    background: #E7E8EA;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    color: #0F172A;
    border-radius: 1px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
    pointer-events: none;
}

.footer-location-wrapper:hover .location-tooltip,
.footer-location-wrapper.active-mobile .location-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Invisible Bridge to keep hover active when moving cursor up to tooltip */
.location-tooltip::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Tooltip Arrow */
.location-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: #E7E8EA;
    transform: rotate(45deg);
    border-radius: 1px;
}

/* Tooltip Close Button */
.tooltip-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #0F172A;
    cursor: pointer;
    padding: 2px 6px;
    display: none;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tooltip-close-btn:hover {
    opacity: 1;
}

@media (max-width: 1023px) {
    .tooltip-close-btn {
        display: block;
    }
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.tooltip-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0F172A;
    opacity: 0.9;
}

.tooltip-address-item {
    display: none;
}

.tooltip-address-item.active {
    display: block;
    animation: locFadeIn 0.35s ease;
}

@keyframes locFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loc-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 23px;
    color: #0F172A;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}



.loc-full {
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    color: #0F172A;
    opacity: 0.95;
    margin-bottom: 24px;
}

.loc-phone {
    font-size: 16px;
    line-height: 19px;
    color: #0F172A;
}

.loc-phone a {
    color: #0F172A;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.loc-phone a:hover {
    opacity: 0.8;
}

.tooltip-dots {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #B5B7BD;
    width: 162px;
    margin: 0 auto;
    margin-top: 32px;
    border-radius: 999px;
}

.tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tooltip-dot.active {
    background: #0F172A;
    width: 48px;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .footer-bottom-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .footer-location-wrapper {
        position: relative !important;
        display: inline-block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .location-tooltip {
        position: absolute !important;
        bottom: calc(100% + 14px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) !important;
        width: calc(100vw - 32px) !important;
        max-width: 320px !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
    }

    .footer-location-wrapper:hover .location-tooltip,
    .footer-location-wrapper.active-mobile .location-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
        pointer-events: auto !important;
    }

    .location-tooltip::after {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }

    .loc-name {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .loc-full {
        font-size: 14px !important;
        line-height: 18px !important;
        margin-bottom: 16px !important;
    }

    .loc-phone {
        font-size: 14px !important;
    }

    .tooltip-dots {
        margin-top: 20px !important;
        width: 140px !important;
        gap: 12px !important;
        padding: 8px 12px !important;
    }
}

.footer-legal-links a {
    color: #0F172A;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline !important;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-legal-links a:hover {
    color: #e31b23;
    text-decoration: none !important;
}

.events-coverage-area {

    background-color: #0B101E;
    padding: 135px 0 20px;
    position: relative;
}

.red-bg-heading {
    background-color: #E0011F;
    padding: 30px 20px;
    position: absolute;
    left: 0;
    top: 0;
    height: 190px;
    z-index: 0;
}

.events-card-wrapper {
    position: relative;
    z-index: 1;
}

.red-bg-heading h2 {
    line-height: 30px;
    margin-right: -40px;
}

.card-items {
    padding: 15px;
    margin-bottom: 20px;
}

/* Event & Insight Card Link Hover Animation */
.card-items a,
.events-explore-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.card-items a .capabilities__read-more-text,
.events-explore-link .capabilities__read-more-text {
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    transition: max-width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.3s ease,
        margin-right 0.35s ease !important;
    margin-right: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
}

.card-items a:hover .capabilities__read-more-text,
.events-explore-link:hover .capabilities__read-more-text,
.card-items:hover a .capabilities__read-more-text {
    max-width: 100px !important;
    opacity: 1 !important;
    margin-right: 8px !important;
}

.card-items a svg,
.events-explore-link svg {
    flex-shrink: 0 !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.card-items a:hover svg,
.events-explore-link:hover svg,
.card-items:hover a svg {
    transform: translateX(4px) !important;
}

.card-items.city-img {
    background: url("/home-assets/assets/images/city-img.png") no-repeat center center/cover;
}

.card-items.vibe-coding {
    background: url("/home-assets/assets/images/vibe-coding.png") no-repeat center center/cover;
}

.card-items.pwd-delhi {
    background: url("/home-assets/assets/images/pwd-delhi.png") no-repeat center center/cover;
}

.card-items .events-txt {
    background-color: #E3001D;
    padding: 0 10px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.card-items h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.card-items p {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-items .date {
    font-weight: 400;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.card-items .month-name {
    font-weight: 600;

}

.events-right {
    background-color: #000;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.red-frame {
    background-color: #E3001D;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 150px;
    width: 150px;
    z-index: -1;
    display: flex;
    align-items: flex-end;
}

.red-frame .line-img {
    height: 100px;
    width: 100px;
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("/home-assets/assets/images/line-img.svg") no-repeat center center/cover;

}

.card-items.vibe-coding h3,
.card-items.pwd-delhi h3 {
    font-size: 18px;
    line-height: 27px;
}

/* ==========================================
   EVENTS SECTION - MOBILE RESPONSIVE (max-width)
   ========================================== */

/* Mobile base (< 576px) */
@media (max-width: 575px) {

    .events-coverage-area {
        padding: 80px 0 30px;
    }

    .red-bg-heading {
        height: 120px;
        padding: 20px 16px;
    }

    .red-bg-heading h2 {
        font-size: 20px;
        line-height: 26px;
        margin-right: 0;
    }

    .events-card-wrapper {
        display: block;
    }

    .events-left,
    .events-right {
        width: 100%;
        display: block;
    }

    .card-below {
        display: block;
    }

    .card-items {
        padding: 20px 16px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .card-items.city-img {
        min-height: 220px;
        height: auto;
    }

    .card-items.vibe-coding,
    .card-items.pwd-delhi {
        height: auto;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .events-right {
        height: auto;
        min-height: 260px;
        overflow: visible;
    }

    .events-right .card-items {
        height: auto;
        min-height: 260px;
        padding: 20px 16px 70px;
        position: relative;
    }

    .red-frame {
        height: 90px;
        width: 90px;
        right: 0;
        bottom: 0;
    }

    .red-frame .line-img {
        height: 70px;
        width: 70px;
    }
}

/* Small tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {

    .events-coverage-area {
        padding: 120px 0 20px;
    }

    .red-bg-heading {
        height: 160px;
        padding: 28px 20px;
    }

    .red-bg-heading h2 {
        font-size: 24px;
        line-height: 32px;
        margin-right: 0;
    }

    .events-card-wrapper {
        display: block;
    }

    .events-left,
    .events-right {
        width: 100%;
        display: block;
    }

    .card-items {
        margin-bottom: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .card-items.city-img {
        height: auto;
        min-height: 260px;
    }

    .events-right {
        height: auto;
        min-height: 300px;
        overflow: visible;
    }

    .events-right .card-items {
        height: auto;
        min-height: 300px;
        padding-bottom: 80px;
        position: relative;
    }

    .red-frame {
        height: 120px;
        width: 120px;
        right: 0;
        bottom: 0;
    }

    .red-frame .line-img {
        height: 90px;
        width: 90px;
    }
}

/* Media Queries (Min-Width) */
@media (min-width: 576px) {
    .footer-top-right {
        flex-direction: row;
        justify-content: space-between;
    }

}

@media (min-width: 768px) {
    .red-bg-heading h2 {
        line-height: 48px;
        margin-right: -50px;
    }

    .events-coverage-area {
        padding: 200px 0 20px;
    }

    .card-below {
        display: flex;
        gap: 20px;
    }

    .card-items.city-img {
        height: 322px;
    }

    .card-items.vibe-coding,
    .card-items.pwd-delhi {
        height: 282px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-items {
        padding: 25px;
    }

    .red-bg-heading {
        padding: 48px 20px;
        height: 238px;
    }

    .events-right {
        height: 400px;
    }

    .card-items .date {
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 50px;
        line-height: 60px;
    }

    .highlight-bg {
        font-size: 50px;
        line-height: 50px;
    }

    .footer-top {
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-legal-links {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .events-coverage-area {
        padding: 185px 0 20px;
    }

    .red-bg-heading h2 {
        line-height: 48px;
        margin-right: -56px;
    }

    .events-right {
        height: auto;
    }

    .red-bg-heading {
        height: 280px;
    }

    .card-items.city-img {
        height: auto;
        width: 70%;
    }

    .card-items.vibe-coding,
    .card-items.pwd-delhi {
        height: auto;
        margin-bottom: 0;
    }

    .card-below {
        gap: 12px;
    }

    .card-items {
        margin-bottom: 0;
    }

    .events-coverage-area .card-above {
        display: flex;
        align-items: end;
        justify-content: end;
    }

    .events-card-wrapper {
        display: flex;
        gap: 12px
    }

    .events-left {
        width: 65%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .events-right {
        width: 35%;
    }

    .footer {
        padding: 60px 0 20px;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-top-right {
        gap: 60px;
        justify-content: flex-end;
    }

    .footer-middle {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-top {
        margin-bottom: 80px;
    }

}

@media (min-width: 1024px) {
    .footer-title {
        font-size: 72px;
        line-height: 76px;
        padding: 24px;
    }

    .highlight-bg {
        font-size: 64px;
        line-height: 72px;
    }

    .footer-social {
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .card-items.city-img {
        padding: 40px 32px;
    }

    .events-right .card-items {
        padding: 0;
        height: 564px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-items h3 {
        font-size: 28px;
    }

    .events-right {
        padding: 42px 38px 30px 26px;
    }

    .card-items.vibe-coding,
    .card-items.pwd-delhi {
        padding: 32px;
        height: 282px;
        display: flex;
        justify-content: space-between;
    }

    .footer-logo-section {
        gap: 69px;
    }

    .footer-legal-links {
        gap: 54px;
    }

    .footer-links {
        gap: 22px;
    }

    .footer {
        padding: 100px 0 43px;
    }

    .footer-top-right {
        gap: 100px;
    }


    .events-right p {
        font-size: 16px;
        margin-bottom: 16px;
        line-height: 24px;
    }

    .card-items.vibe-coding h3,
    .card-items.pwd-delhi h3 {
        font-size: 24px;
    }
}

@media (min-width: 1340px) {
    .events-coverage-area {
        padding: 280px 0 77px;
    }

    .card-items h3 {
        font-size: 32px;
        line-height: 35px;
    }

    .red-bg-heading {
        width: 547px;
        height: 547px;
        padding: 144px 0px 0px 152px;
    }

    .red-bg-heading h2 {
        margin-right: -239px;
    }

    .card-items.city-img {
        width: 72%;
    }

    .events-card-wrapper {
        top: 24px;
    }

    .events-right {
        padding: 42px 120px 30px 26px;
    }

    .red-frame {
        height: 268px;
        width: 261px;
        right: 38px;
        bottom: 60px;

    }

    .red-frame .line-img {
        width: 130px;
        height: 130px;
    }

}

@media (min-width: 1400px) {
    .footer-top-right {
        gap: 126px;
    }

    .highlight-bg {
        margin-left: -19px;
    }
}