/* ========================================
   TUSSAKIMU CLUB - MOBILE RESPONSIVE STYLES
   ======================================== */

/* ===================
   BASE RESPONSIVE FIXES
   =================== */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container-fluid,
.container-1790,
.container-1424 {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===================
   MOBILE NAVIGATION
   =================== */

/* Offcanvas Mobile Menu */
.tp-offcanvas {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    padding: 30px;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.tp-offcanvas.active {
    right: 0;
}

.tp-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.tp-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tp-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tp-offcanvas-logo img {
    max-width: 100px;
}

.tp-offcanvas-close-button {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #620035;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.tp-offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-offcanvas-menu ul li {
    margin-bottom: 15px;
}

.tp-offcanvas-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tp-offcanvas-menu ul li a:hover,
.tp-offcanvas-menu ul li a:focus {
    background: #620035;
    color: #fff;
    padding-left: 20px;
}

.tp-offcanvas-title {
    font-size: 18px;
    font-weight: 600;
    color: #620035;
    margin-bottom: 15px;
}

.tp-offcanvas-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.tp-offcanvas-info span {
    display: block;
    margin-bottom: 10px;
}

.tp-offcanvas-info span a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.tp-offcanvas-info span a:hover {
    color: #620035;
}

.tp-offcanvas-social {
    display: flex;
    flex-direction: column;
}

.tp-offcanvas-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #620035;
    transition: all 0.3s ease;
}

.tp-offcanvas-social a:hover {
    background: #620035;
    color: #fff;
    transform: translateY(-3px);
}

/* Mobile menu toggle button */
@media (max-width: 1199px) {
    .tp-header-toogle-wrapper {
        display: block !important;
    }

    .tp-header-toogle {
        background: transparent;
        border: none;
        font-size: 24px;
        color: #620035;
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tp-header-toogle:hover {
        color: #FFD54F;
    }

    .tp-header-toogle.active i:before {
        content: "\f00d";
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.mobile-menu-open #wrapper {
    overflow: hidden;
}

/* Social icons in offcanvas */
.tp-offcanvas-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-offcanvas-social .tp-offcanvas-title {
    width: 100%;
}

/* Scrollbar styling for offcanvas */
.tp-offcanvas::-webkit-scrollbar {
    width: 5px;
}

.tp-offcanvas::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tp-offcanvas::-webkit-scrollbar-thumb {
    background: #620035;
    border-radius: 5px;
}

.tp-offcanvas::-webkit-scrollbar-thumb:hover {
    background: #4a0028;
}

@media (max-width: 575px) {
    .tp-offcanvas {
        width: 280px;
        right: -280px;
        padding: 20px;
    }

    .tp-offcanvas-menu ul li a {
        font-size: 15px;
        padding: 10px 12px;
    }

    .tp-offcanvas-header {
        margin-bottom: 20px;
    }
}

/* Ensure offcanvas is hidden on desktop */
@media (min-width: 1200px) {
    .tp-offcanvas,
    .tp-offcanvas-overlay {
        display: none !important;
    }
}

/* Hide desktop menu on mobile to prevent duplication */
@media (max-width: 1199px) {
    .tp-main-menu {
        display: none !important;
    }

    /* Ensure any mobile menu activation from theme JS doesn't show */
    .tp-mobile-menu-active,
    .tp-desktop-menu,
    .mean-container,
    .mobile-menu,
    .tp-offcanvas-menu nav ul ul {
        display: none !important;
    }

    /* Only show our custom offcanvas menu items */
    .tp-offcanvas-menu > nav > ul {
        display: block !important;
    }
}

/* Prevent theme's JavaScript from adding duplicate menu */
.tp-offcanvas-menu nav {
    overflow: hidden;
}

.tp-offcanvas-menu nav > ul:not(:first-child) {
    display: none !important;
}

/* ===================
   TYPOGRAPHY RESPONSIVE
   =================== */

/* Hero section titles */
@media (max-width: 991px) {
    .tp-hero-2-title {
        font-size: 42px !important;
        line-height: 1.2 !important;
    }

    .tp-hero-2-dec {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    .tp-hero-2-title {
        font-size: 32px !important;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
    }

    .tp-hero-2-dec {
        font-size: 14px !important;
    }
}

@media (max-width: 575px) {
    .tp-hero-2-title {
        font-size: 28px !important;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    h5 {
        font-size: 16px !important;
    }
}

/* Section titles */
@media (max-width: 767px) {
    .tp-section-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .tp-section-subtitle {
        font-size: 14px !important;
    }
}

/* ===================
   HEADER & LOGO
   =================== */

@media (max-width: 991px) {
    .tp-header-logo img {
        max-width: 80px !important;
    }
}

@media (max-width: 575px) {
    .tp-header-logo img {
        max-width: 70px !important;
    }

    .tp-header-2-btn-wrap {
        display: none !important;
    }
}

/* ===================
   BUTTONS & ACTIONS
   =================== */

@media (max-width: 767px) {
    .tp-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .tp-hero-btn a {
        margin-bottom: 10px !important;
    }

    .tp-hero-2-btn {
        margin-bottom: 50px !important;
    }
}

@media (max-width: 575px) {
    .tp-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        width: 100%;
        display: block !important;
        text-align: center;
    }

    .tp-btn.mr-5 {
        margin-right: 0 !important;
    }
}

/* ===================
   CONTACT SECTION
   =================== */

@media (max-width: 991px) {
    .tp-contact-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .tp-contact-item {
        padding: 30px 20px !important;
        margin-bottom: 20px;
    }

    .tp-contact-item h5 {
        font-size: 18px !important;
    }

    .tp-contact-icon {
        margin-bottom: 20px !important;
    }
}

/* Contact form */
@media (max-width: 767px) {
    .tp-contact-form-wrap {
        padding: 30px 20px !important;
    }

    .tp-contact-form input,
    .tp-contact-form textarea {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
}

/* ===================
   CARDS & GRID LAYOUTS
   =================== */

@media (max-width: 991px) {
    .col-lg-4,
    .col-lg-6,
    .col-lg-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .row.gx-0 > [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Event cards */
@media (max-width: 767px) {
    .tp-event-item,
    .tp-causes-item,
    .tp-team-item {
        margin-bottom: 25px;
    }
}

/* ===================
   SPACING ADJUSTMENTS
   =================== */

@media (max-width: 991px) {
    .pt-120, .pb-120 {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .pt-100, .pb-100 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .pt-70, .pb-70 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

@media (max-width: 767px) {
    .pt-120, .pb-120 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .pt-100, .pb-100 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .pt-70, .pb-70 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .mb-45, .mt-45 {
        margin-bottom: 30px !important;
        margin-top: 30px !important;
    }
}

@media (max-width: 575px) {
    .pt-120, .pb-120 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .pt-100, .pb-100 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .pt-70, .pb-70 {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* ===================
   FOOTER
   =================== */

@media (max-width: 767px) {
    .tp-footer-widget {
        margin-bottom: 40px;
    }

    .tp-footer-widget-title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    .tp-footer-copyright {
        text-align: center !important;
        padding: 20px 0 !important;
    }
}

/* ===================
   ABOUT PAGE
   =================== */

@media (max-width: 991px) {
    .tp-about-img-wrap {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .tp-about-content {
        padding: 0 !important;
    }

    .tp-about-list ul li {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }
}

/* ===================
   EVENTS PAGE
   =================== */

@media (max-width: 767px) {
    .tp-event-details-thumb {
        margin-bottom: 30px;
    }

    .tp-event-meta span {
        font-size: 13px !important;
        display: block;
        margin-bottom: 8px;
    }
}

/* ===================
   BREADCRUMB
   =================== */

@media (max-width: 767px) {
    .tp-breadcrumb-title {
        font-size: 32px !important;
    }

    .tp-breadcrumb-list {
        font-size: 14px !important;
    }
}

@media (max-width: 575px) {
    .tp-breadcrumb-title {
        font-size: 28px !important;
    }
}

/* ===================
   TABLES
   =================== */

@media (max-width: 767px) {
    table {
        font-size: 14px !important;
    }

    table th,
    table td {
        padding: 10px 5px !important;
    }
}

@media (max-width: 575px) {
    /* Make tables scrollable on very small screens */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================
   MODAL & POPUP
   =================== */

@media (max-width: 767px) {
    .modal-content {
        padding: 20px !important;
    }

    .mfp-container {
        padding: 15px !important;
    }
}

/* ===================
   SLIDER & CAROUSEL
   =================== */

@media (max-width: 767px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }

    .tp-slider-arrow button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 575px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* ===================
   TEAM MEMBERS GRID
   =================== */

@media (max-width: 991px) {
    .tp-team-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .tp-team-content h4 {
        font-size: 18px !important;
    }

    .tp-team-content span {
        font-size: 13px !important;
    }
}

/* ===================
   FORMS
   =================== */

@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* ===================
   VIDEO & MEDIA
   =================== */

@media (max-width: 767px) {
    .tp-video-play {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }

    iframe,
    video {
        width: 100% !important;
        height: auto !important;
    }
}

/* ===================
   SOCIAL ICONS
   =================== */

@media (max-width: 575px) {
    .tp-footer-social a,
    .tp-team-social a {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        margin: 0 3px !important;
    }
}

/* ===================
   UTILITY CLASSES
   =================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

/* Text alignment responsive */
@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }

    .text-left-mobile {
        text-align: left !important;
    }
}

/* ===================
   FLEX & GRID FIXES
   =================== */

@media (max-width: 767px) {
    .d-flex {
        flex-wrap: wrap !important;
    }

    .justify-content-between {
        justify-content: center !important;
    }
}

/* ===================
   BACK TO TOP BUTTON
   =================== */

@media (max-width: 575px) {
    .back-to-top-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
}

/* ===================
   HOVER EFFECTS ON TOUCH
   =================== */

@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .tp-btn:hover,
    .tp-team-item:hover,
    .tp-event-item:hover {
        transform: none !important;
    }
}

/* ===================
   LANDSCAPE ORIENTATION
   =================== */

@media (max-width: 767px) and (orientation: landscape) {
    .tp-hero-2-title {
        font-size: 28px !important;
    }

    .tp-hero-2-content {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* ===================
   ACCESSIBILITY
   =================== */

/* Ensure touch targets are large enough */
@media (max-width: 767px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #620035;
    outline-offset: 2px;
}

/* ===================
   PRINT STYLES
   =================== */

@media print {
    .tp-header-area,
    .tp-footer-area,
    .back-to-top-wrapper,
    .tp-header-toogle-wrapper {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ===================
   CUSTOM CONTAINER RESPONSIVE
   =================== */

@media (max-width: 1399px) {
    .container-1790 {
        max-width: 1200px;
    }

    .container-1424 {
        max-width: 1140px;
    }
}

@media (max-width: 1199px) {
    .container-1790,
    .container-1424 {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .container-1790,
    .container-1424 {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .container-1790,
    .container-1424 {
        max-width: 540px;
    }
}

@media (max-width: 575px) {
    .container-1790,
    .container-1424 {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===================
   SMOOTH TRANSITIONS
   =================== */

@media (prefers-reduced-motion: no-preference) {
    * {
        transition: all 0.3s ease-in-out;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
