/* ==========================================================================
   Responsive Stylesheet for Tathshri (RunEvents)
   Supports: 320px, 360px, 390px, 430px, 576px, 768px, 992px, 1200px+
   Desktop layout is preserved intact.
   ========================================================================== */

/* --- Universal Reset for Mobile Overflow Prevention --- */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base: Hide mobile directory cards on desktop */
.directory-mobile-cards {
    display: none !important;
}

/* ==========================================================================
   DESKTOP / LARGE SCREENS (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .dashboard-columns-grid {
        gap: 15px !important;
    }

    .partner-card {
        flex: 0 0 calc((100% - (2 * 20px)) / 3);
    }

    .runner-testimonial-card {
        flex: 0 0 calc((100% - (2 * 20px)) / 3);
    }

    .community-card {
        flex: 0 0 calc((100% - (3 * 20px)) / 4);
    }
}

/* ==========================================================================
   TABLET LANDSCAPE / MEDIUM SCREENS (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    body {
        padding-top: 78px !important;
    }

    .container {
        max-width: 720px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    section {
        padding: 30px 0;
    }

    /* Header & Navigation */
    .tathshri-header {
        padding: 4px 16px !important;
    }

    .tathshri-container {
        height: 76px !important;
    }

    .tathshri-logo img {
        height: 110px !important;
        max-height: 115px !important;
        width: auto !important;
        transform: translateY(2px) !important;
    }

    .tathshri-nav {
        display: contents !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-nav-toggle span {
        width: 20px;
        height: 2px;
        background-color: #0f172a;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .nav-menu {
        display: flex !important;
        position: fixed !important;
        top: 68px !important;
        left: -100% !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: calc(100vh - 68px) !important;
        background-color: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 24px 20px 40px 20px !important;
        gap: 8px !important;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-item {
        width: 100% !important;
    }

    .nav-link {
        font-size: 14px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        border-radius: 8px !important;
        border-bottom: 1px solid #f8fafc !important;
        color: #334155 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #f1f5f9 !important;
        color: #0b50ed !important;
    }

    .nav-link::after {
        display: none !important;
    }

    .mobile-menu-overlay {
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 68px) !important;
        background-color: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 998 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-menu-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .header-buttons.hide-on-mobile {
        display: none !important;
    }

    .mobile-buttons-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding-top: 16px !important;
        margin-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .mobile-buttons-container .btn-header {
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ecosystem Grid */
    .ecosystem-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .ecosystem-pane {
        order: 1 !important;
    }

    .ecosystem-sidebar {
        display: flex !important;
        order: 2 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 16px !important;
        padding: 16px 14px !important;
        margin-top: 10px !important;
        box-sizing: border-box !important;
    }

    .ecosystem-menu-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .ecosystem-menu-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        text-decoration: none !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .ecosystem-item-title {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        color: #f1f5f9 !important;
    }

    .ecosystem-item-desc {
        font-size: 11px !important;
        color: #94a3b8 !important;
        padding-left: 20px !important;
    }

    .ecosystem-main-title {
        font-size: 32px !important;
    }

    /* Together We Grow */
    .together-we-grow-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    /* Carousels & Cards */
    .partner-card,
    .runner-testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2) !important;
    }

    .community-card {
        flex: 0 0 calc((100% - (2 * 20px)) / 3) !important;
    }

    /* Contact Page - Tablet Landscape */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .contact-form-container {
        padding: 30px 24px !important;
    }
}

/* ==========================================================================
   TABLET PORTRAIT / SMALL SCREENS (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 78px !important;
    }

    .container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    section {
        padding: 24px 0 !important;
    }

    /* Contact Page - Mobile & Small Tablets */
    .contact-section {
        padding: 35px 0 !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .contact-title {
        font-size: 28px !important;
    }
    .contact-intro {
        font-size: 14.5px !important;
        margin-bottom: 25px !important;
    }
    .contact-form-container {
        padding: 24px 18px !important;
    }
    .help-improve-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 24px 18px !important;
        gap: 18px !important;
        margin-top: 35px !important;
    }
    .banner-illustration-wrap {
        width: 100% !important;
        max-width: 180px !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }
    .features-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 30px !important;
        padding-top: 25px !important;
    }

    /* Header */
    .tathshri-container {
        height: 76px !important;
    }

    .tathshri-logo img {
        height: 110px !important;
        max-height: 115px !important;
        width: auto !important;
        transform: translateY(2px) !important;
    }

    .nav-menu {
        top: 78px !important;
        height: calc(100vh - 78px) !important;
    }

    .mobile-menu-overlay {
        top: 78px !important;
        height: calc(100vh - 78px) !important;
    }

    /* Hero & Taglines */
    .ecosystem-hero {
        padding: 24px 0 28px 0 !important;
    }

    .ecosystem-header {
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .ecosystem-main-title {
        font-size: 26px !important;
        letter-spacing: -0.3px !important;
        margin-bottom: 8px !important;
    }

    .ecosystem-subtitle {
        font-size: 15px !important;
        margin-bottom: 14px !important;
    }

    .ecosystem-desc,
    .capsule-glow-tagline {
        font-size: 12px !important;
        padding: 8px 18px !important;
        line-height: 1.4 !important;
        max-width: 90% !important;
        margin: 0 auto !important;
        display: inline-block !important;
    }

    .ecosystem-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px 8px !important;
        max-width: 350px !important;
        margin: 20px auto 30px auto !important;
        padding: 0 4px !important;
        border-bottom: none !important;
        overflow: visible !important;
    }

    .ecosystem-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .ecosystem-tab {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        padding: 8px 16px !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 9999px !important;
        color: #94a3b8 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .ecosystem-tab.active {
        background: #0b50ed !important;
        color: #ffffff !important;
        border-color: #0b50ed !important;
        box-shadow: 0 2px 12px rgba(11, 80, 237, 0.4) !important;
    }

    .ecosystem-tab.active::after {
        display: none !important;
    }

    /* Moments Section */
    .moment-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .moment-card-body {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .moment-image-wrapper {
        aspect-ratio: 16/9 !important;
        width: 100% !important;
        max-height: 220px !important;
    }

    .moment-details {
        padding-right: 0 !important;
    }

    .moment-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .moment-description {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .moment-quote-box {
        padding: 8px 12px !important;
        margin: 6px 0 !important;
    }

    .moment-quote-box .quote-icon {
        font-size: 32px !important;
    }

    .moment-quote-text {
        font-size: 12px !important;
    }

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

    /* Spotlight Pane on Mobile */
    .spotlight-badge-overlay {
        font-size: 9.5px !important;
        padding: 4px 10px !important;
        bottom: 10px !important;
        left: 10px !important;
    }

    .prev-spotlights-section {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .prev-spotlights-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* Running Pulse on Mobile */
    .pulse-header-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .pulse-header-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }

    .pulse-header-title {
        font-size: 22px !important;
    }

    .pulse-header-subtitle {
        font-size: 12px !important;
    }

    .pulse-news-card {
        flex-direction: column !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .pulse-news-img-wrapper {
        width: 100% !important;
        height: 160px !important;
    }

    .pulse-news-content {
        padding: 14px !important;
        gap: 8px !important;
    }

    .pulse-news-title {
        font-size: 15px !important;
        white-space: normal !important;
    }

    .pulse-news-desc {
        font-size: 12.5px !important;
        -webkit-line-clamp: 3 !important;
    }

    /* Record Book on Mobile */
    .records-card {
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .records-card-header {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .records-card-title {
        font-size: 16px !important;
    }

    .records-info-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .records-featured-article {
        flex-direction: column !important;
        padding: 14px !important;
        gap: 12px !important;
    }

    .records-featured-article img {
        width: 100% !important;
        height: 160px !important;
        max-width: 100% !important;
    }

    .records-table-header {
        grid-template-columns: 0.95fr 1.05fr 1.05fr !important;
        padding: 10px 10px !important;
        font-size: 9.5px !important;
        letter-spacing: 0.2px !important;
    }

    .record-row {
        grid-template-columns: 0.95fr 1.05fr 1.05fr !important;
        padding: 10px 10px !important;
        gap: 6px !important;
    }

    .col-distance {
        gap: 6px !important;
    }

    .distance-icon-box {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    .distance-name {
        font-size: 12.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .col-record {
        padding-left: 4px !important;
    }

    .record-time {
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    .record-holder {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
        word-break: break-word !important;
    }

    /* Behind The Scenes on Mobile */
    .bts-card {
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .bts-media-split {
        grid-template-columns: 1fr 1fr !important;
        height: 210px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .bts-badge-label {
        bottom: 8px !important;
        left: 8px !important;
        padding: 3px 8px 3px 4px !important;
        gap: 6px !important;
        border-radius: 16px !important;
    }

    .bts-badge-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    .bts-badge-title {
        font-size: 8.5px !important;
        letter-spacing: 0.2px !important;
    }

    .bts-badge-subtitle {
        font-size: 7.5px !important;
    }

    .bts-play-button {
        width: 46px !important;
        height: 46px !important;
        font-size: 16px !important;
    }

    .bts-info-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 16px 14px !important;
        gap: 16px !important;
    }

    .bts-story-left {
        width: 100% !important;
        flex: none !important;
        gap: 10px !important;
    }

    .bts-yellow-bar {
        width: 3px !important;
    }

    .bts-story-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .bts-story-desc {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
        margin-top: 6px !important;
    }

    .bts-bullets {
        width: 100% !important;
        gap: 10px !important;
    }

    .bts-bullet-item {
        gap: 10px !important;
    }

    .bts-bullet-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }

    .bts-bullet-title {
        font-size: 12.5px !important;
    }

    .bts-bullet-subtitle {
        font-size: 11px !important;
    }

    .bts-story-middle {
        width: 100% !important;
        padding: 0 !important;
        flex: none !important;
        font-size: 13px !important;
    }

    .bts-action-col {
        width: 100% !important;
        justify-content: stretch !important;
        flex: none !important;
    }

    .bts-youtube-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
    }

    .bts-action-col a {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Ecosystem Promo Cards */
    .ecosystem-promo-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }

    .ecosystem-promo-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .ecosystem-promo-title {
        font-size: 13px !important;
    }

    .ecosystem-promo-desc {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .ecosystem-promo-btn {
        padding: 7px 12px !important;
        font-size: 11px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .ecosystem-share-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 14px !important;
        text-align: center !important;
    }

    .ecosystem-share-left {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .ecosystem-share-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Event Directory Heading */
    .section-header p,
    .dir-heading {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .community-badge {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    /* Event Directory Filters */
    .directory-filter-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .directory-filter-bar .search-input-wrapper {
        grid-column: span 2 !important;
    }

    .directory-filter-bar input,
    .directory-filter-bar select {
        padding: 10px 12px !important;
        font-size: 12px !important;
        height: 40px !important;
    }

    .directory-filter-bar .search-input-wrapper input {
        padding-left: 36px !important;
    }

    /* EVENT TABLE REPLACEMENT FOR MOBILE */
    .directory-table-container {
        display: none !important;
    }

    .directory-mobile-cards {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .dir-mobile-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: left;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .dir-mobile-top {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .dir-mobile-calendar-badge {
        width: 48px;
        height: 56px;
        border-radius: 10px;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .dir-mobile-calendar-badge.green {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .dir-mobile-calendar-badge.orange {
        background: linear-gradient(135deg, #ff561b 0%, #d84315 100%);
    }

    .dir-mobile-calendar-badge.blue {
        background: linear-gradient(135deg, #0b50ed 0%, #1e40af 100%);
    }

    .dir-mobile-cal-month {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: 0.5px;
    }

    .dir-mobile-cal-day {
        font-size: 18px;
        font-weight: 800;
        line-height: 1.1;
    }

    .dir-mobile-cal-year {
        font-size: 9px;
        font-weight: 500;
        opacity: 0.85;
        line-height: 1;
    }

    .dir-mobile-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .dir-mobile-location {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10.5px;
        font-weight: 600;
        padding: 2px 7px;
        border-radius: 5px;
        width: fit-content;
    }

    .dir-mobile-location.green {
        background: #ecfdf5;
        color: #059669;
    }

    .dir-mobile-location.orange {
        background: #fff7ed;
        color: #e64a19;
    }

    .dir-mobile-location.blue {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .dir-mobile-title {
        font-size: 14px;
        font-weight: 800;
        color: #0f172a;
        margin: 2px 0 0 0;
        line-height: 1.3;
        font-family: 'Outfit', sans-serif;
    }

    .dir-mobile-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding-top: 2px;
    }

    .dir-mobile-category-pill {
        font-size: 9.5px;
        font-weight: 700;
        padding: 3px 7px;
        border-radius: 4px;
        background: #f1f5f9;
        color: #475569;
    }

    .dir-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
        margin-top: 2px;
    }

    .dir-mobile-status {
        font-size: 10.5px;
        font-weight: 600;
        color: #059669;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .dir-mobile-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #10b981;
    }

    .dir-mobile-btn {
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 700;
        border-radius: 7px;
        color: #ffffff !important;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: all 0.2s ease;
    }

    .dir-mobile-btn.green {
        background: #059669;
    }

    .dir-mobile-btn.orange {
        background: #ff561b;
    }

    .dir-mobile-btn.blue {
        background: #0b50ed;
    }

    /* Upcoming Events Carousel */
    .events-carousel-container {
        padding: 10px 0 20px 0 !important;
        gap: 16px !important;
    }

    .events-carousel-container .ticket-card {
        flex: 0 0 300px !important;
        min-width: 0 !important;
    }

    /* Together We Grow Section */
    .together-we-grow-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    .diagram-middle-side {
        padding: 0 4px !important;
    }

    .diagram-middle-side .contact-row {
        margin-top: 20px !important;
        padding-top: 18px !important;
        margin-bottom: 10px !important;
    }

    .diagram-right-side {
        padding: 24px 0 10px 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
    }

    .movement-cards-list {
        gap: 10px !important;
    }

    .movement-card {
        padding: 14px 16px !important;
        border-radius: 14px !important;
    }

    .movement-card h4 {
        font-size: 14px !important;
    }

    .movement-card p {
        font-size: 11.5px !important;
    }

    .movement-icon-box {
        width: 42px !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
    }

    .movement-arrow-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    .circular-flow-container {
        width: 100% !important;
        max-width: 350px !important;
        margin: 20px auto 16px auto !important;
        transform: none !important;
        aspect-ratio: 1 !important;
    }

    .together-we-grow-grid .slot-center {
        width: 125px !important;
        height: 125px !important;
    }

    .together-we-grow-grid .slot-center .node-label {
        font-size: 11.5px !important;
        margin-top: 4px !important;
    }

    .together-we-grow-grid .slot-center .icon-circle {
        font-size: 24px !important;
        width: 34px !important;
        height: 34px !important;
        margin-bottom: 2px !important;
    }

    .together-we-grow-grid .flow-node:not(.slot-center) {
        width: 76px !important;
        height: 76px !important;
    }

    .together-we-grow-grid .flow-node .node-label {
        font-size: 7.5px !important;
        line-height: 1.15 !important;
    }

    .together-we-grow-grid .flow-node .icon-circle {
        font-size: 16px !important;
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 2px !important;
    }

    /* Built On Experience - 2x2 Grid on Mobile */
    .stats-experience-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card-premium {
        padding: 14px 10px !important;
        border-radius: 14px !important;
        gap: 8px !important;
    }

    .stat-card-premium .stat-counter-number {
        font-size: 22px !important;
    }

    .stat-card-premium h4 {
        font-size: 12.5px !important;
        margin-bottom: 2px !important;
    }

    .stat-card-premium p {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    /* Powering Our Mission & Voices Carousels (1 Card Visible) */
    .carousel-viewport-wrapper {
        padding: 10px 0 !important;
        overflow: hidden !important;
    }

    .partner-carousel-container,
    .testimonial-carousel-container {
        padding: 20px 0 20px 0 !important;
        gap: 16px !important;
        scroll-snap-type: x mandatory !important;
    }

    .partner-card,
    .runner-testimonial-card,
    .community-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center !important;
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .carousel-control-btn {
        display: none !important;
    }

    .partner-bottom-row {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 16px !important;
        min-height: auto !important;
    }

    .partner-bottom-row .partner-cta-wrapper {
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .partner-bottom-row .magnetic-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Footer Responsive */
    .tathshri-premium-footer {
        padding: 24px 16px 20px 16px !important;
    }

    .tathshri-premium-footer .footer-container {
        padding: 0 !important;
    }

    .tathshri-premium-footer .footer-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .tathshri-premium-footer .footer-brand-column {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-right: 0 !important;
        padding-bottom: 20px !important;
    }

    .tathshri-premium-footer .running-hub-grid,
    .tathshri-premium-footer .policies-hub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tathshri-premium-footer .connect-links-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .tathshri-premium-footer .connect-item {
        min-width: 0 !important;
        padding: 8px 12px !important;
    }

    .tathshri-premium-footer .footer-bottom-strip {
        padding: 20px 0 !important;
    }

    .tathshri-premium-footer .copyright-text {
        font-size: 11.5px !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================================
   MOBILE PHONES (max-width: 430px - iPhone Pro Max / Plus)
   ========================================================================== */
@media (max-width: 430px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ecosystem-main-title {
        font-size: 24px !important;
    }

    .events-carousel-container .ticket-card {
        flex: 0 0 280px !important;
    }

    .ticket-title {
        font-size: 15px !important;
    }

    .ticket-location {
        font-size: 10px !important;
    }

    .ticket-register-btn,
    .ticket-btn {
        font-size: 9.5px !important;
        padding: 5px 10px !important;
    }

    .records-table-header {
        font-size: 8.5px !important;
        padding: 8px 8px !important;
    }

    .record-row {
        padding: 10px 8px !important;
    }

    .distance-name {
        font-size: 12px !important;
    }

    .record-time {
        font-size: 12px !important;
    }

    .record-holder {
        font-size: 9.5px !important;
    }

    .bts-media-split {
        height: 180px !important;
    }
}

/* ==========================================================================
   MOBILE PHONES (max-width: 390px - iPhone 12/13/14/15 Reference)
   ========================================================================== */
@media (max-width: 390px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .tathshri-logo img {
        height: 105px !important;
        max-height: 110px !important;
        width: auto !important;
        transform: translateY(2px) !important;
    }

    .ecosystem-main-title {
        font-size: 22px !important;
    }

    .events-carousel-container .ticket-card {
        flex: 0 0 270px !important;
    }

    .dir-mobile-card {
        padding: 12px !important;
    }

    .dir-mobile-title {
        font-size: 13.5px !important;
    }

    .stat-card-premium .stat-counter-number {
        font-size: 20px !important;
    }

    .stat-card-premium h4 {
        font-size: 11.5px !important;
    }

    .stat-card-premium p {
        font-size: 9.5px !important;
    }

    .records-table-header {
        font-size: 8px !important;
        padding: 8px 6px !important;
    }

    .record-row {
        padding: 8px 6px !important;
        gap: 4px !important;
    }

    .distance-icon-box {
        width: 24px !important;
        height: 24px !important;
        font-size: 9.5px !important;
    }

    .distance-name {
        font-size: 11px !important;
    }

    .record-time {
        font-size: 11.5px !important;
    }

    .record-holder {
        font-size: 9px !important;
    }

    .bts-media-split {
        height: 170px !important;
    }

    .bts-badge-label {
        padding: 2px 6px 2px 3px !important;
        gap: 4px !important;
    }

    .bts-badge-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 8px !important;
    }

    .bts-badge-title {
        font-size: 7.5px !important;
    }

    .bts-badge-subtitle {
        font-size: 6.5px !important;
    }

    .circular-flow-container {
        max-width: 320px !important;
        margin: 20px auto 16px auto !important;
    }

    .together-we-grow-grid .slot-center {
        width: 110px !important;
        height: 110px !important;
    }

    .together-we-grow-grid .slot-center .node-label {
        font-size: 10px !important;
    }

    .together-we-grow-grid .slot-center .icon-circle {
        font-size: 20px !important;
        width: 28px !important;
        height: 28px !important;
    }

    .together-we-grow-grid .flow-node:not(.slot-center) {
        width: 68px !important;
        height: 68px !important;
    }

    .together-we-grow-grid .flow-node .node-label {
        font-size: 6.8px !important;
    }

    .together-we-grow-grid .flow-node .icon-circle {
        font-size: 14px !important;
        width: 18px !important;
        height: 18px !important;
    }
}

/* ==========================================================================
   SMALL MOBILE PHONES (max-width: 360px - Galaxy S8 / Android Compact)
   ========================================================================== */
@media (max-width: 360px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .directory-filter-bar {
        grid-template-columns: 1fr !important;
    }

    .directory-filter-bar .search-input-wrapper {
        grid-column: 1 !important;
    }

    .ecosystem-promo-grid {
        grid-template-columns: 1fr !important;
    }

    .tathshri-premium-footer .running-hub-grid,
    .tathshri-premium-footer .policies-hub-grid {
        grid-template-columns: 1fr !important;
    }

    .tathshri-premium-footer .connect-links-row {
        grid-template-columns: 1fr !important;
    }

    .events-carousel-container .ticket-card {
        flex: 0 0 250px !important;
    }

    .prev-spotlights-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .records-table-header {
        font-size: 7.5px !important;
        padding: 6px 4px !important;
    }

    .record-row {
        padding: 8px 4px !important;
    }

    .distance-name {
        font-size: 10.5px !important;
    }

    .record-time {
        font-size: 10.5px !important;
    }

    .record-holder {
        font-size: 8.5px !important;
    }

    .bts-media-split {
        height: 150px !important;
    }
}

/* ==========================================================================
   EXTRA SMALL MOBILE (max-width: 320px - iPhone SE 1st Gen)
   ========================================================================== */
@media (max-width: 320px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .tathshri-logo img {
        height: 90px !important;
        max-height: 95px !important;
        width: auto !important;
        transform: translateY(2px) !important;
    }

    .ecosystem-main-title {
        font-size: 20px !important;
    }

    .btn-view-more-events {
        padding: 8px 16px !important;
        font-size: 11px !important;
    }

    .dir-mobile-calendar-badge {
        width: 42px !important;
        height: 50px !important;
    }

    .dir-mobile-cal-day {
        font-size: 16px !important;
    }

    .dir-mobile-cal-month {
        font-size: 9px !important;
    }
}