/* Responsive CSS for Baba Kali Kamli Vanprasth Aashram Website */
/* Optimized for all screen sizes */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
}

/* Container and layout improvements */
.e-con-inner,
.elementor-container {
    max-width: 100%;
    padding: 0 15px;
}

/* Header and navigation responsive */
.elementor-widget-ekit-nav-menu {
    position: relative;
}

.elementskit-navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.elementskit-navbar-nav .menu-item {
    margin: 0 10px;
}

/* Logo responsive */
.elementor-widget-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button improvements */
.elementor-button,
.elementskit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.elementor-button-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.elementor-button:hover,
.elementskit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Room cards responsive */
.elementskit-info-image-box {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.elementskit-info-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.elementskit-box-header img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.elementskit-box-body {
    padding: 20px;
}

.elementskit-info-box-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* Icon list improvements */
.elementor-icon-list-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.elementor-icon-list-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.elementor-icon-list-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Contact section */
.elementor-widget-icon-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Footer improvements */
.ekit_page_list_content {
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ekit_badge_left:hover .ekit_page_list_content {
    background-color: rgba(0,0,0,0.05);
}

/* Tablet styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .e-con-inner {
        padding: 0 20px;
    }
    
    .elementskit-navbar-nav .menu-item {
        margin: 0 8px;
    }
    
    .elementskit-navbar-nav .menu-item a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .elementor-icon-list-items {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .elementor-icon-list-items.elementor-inline-items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .elementskit-box-header img {
        height: 220px;
    }
}

/* Mobile styles (max-width: 767px) */
@media screen and (max-width: 767px) {
    .e-con-inner {
        padding: 0 15px;
    }
    
    /* Hide desktop navigation, show mobile menu */
    .elementskit-navbar-nav {
        display: none;
    }
    
    .elementskit-menu-hamburger {
        display: block !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .elementskit-menu-hamburger-icon {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    /* Logo adjustments */
    .elementor-widget-image img {
        max-height: 80px;
        width: auto;
    }
    
    /* Button adjustments */
    .elementor-button,
    .elementskit-btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
        margin: 10px 0;
    }
    
    /* Room cards mobile */
    .elementskit-box-header img {
        height: 200px;
    }
    
    .elementskit-info-box-title {
        font-size: 1.2em;
    }
    
    /* Contact info mobile */
    .elementor-icon-list-items {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .elementor-icon-list-items.elementor-inline-items {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .elementor-icon-list-item {
        width: 100%;
        justify-content: flex-start;
        margin: 10px 0;
    }
    
    .elementor-icon-list-text {
        font-size: 14px;
        word-break: break-word;
    }
    
    /* Heading adjustments */
    .ekit-heading--title {
        font-size: 1.8em !important;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Grid adjustments */
    .e-con.e-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Footer mobile */
    .ekit_page_list_title_title {
        font-size: 14px;
    }
    
    /* Text content mobile */
    p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    h2, h3 {
        font-size: 1.4em;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

/* Small mobile styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .e-con-inner {
        padding: 0 10px;
    }
    
    .elementor-widget-image img {
        max-height: 60px;
    }
    
    .elementskit-box-header img {
        height: 180px;
    }
    
    .elementskit-info-box-title {
        font-size: 1.1em;
    }
    
    .elementor-button,
    .elementskit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ekit-heading--title {
        font-size: 1.5em !important;
    }
    
    .elementor-icon-list-text {
        font-size: 13px;
    }
    
    p {
        font-size: 13px;
    }
}

/* Large desktop styles (min-width: 1200px) */
@media screen and (min-width: 1200px) {
    .e-con-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .elementskit-box-header img {
        height: 280px;
    }
    
    .elementskit-info-box-title {
        font-size: 1.5em;
    }
}

/* Print styles */
@media print {
    .elementskit-menu-hamburger,
    .elementor-widget-elementskit-header-search {
        display: none;
    }
    
    .elementor-button,
    .elementskit-btn {
        border: 1px solid #333;
        background: white !important;
        color: #333 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .elementor-button,
    .elementskit-btn {
        border: 2px solid currentColor;
    }
    
    .elementskit-info-image-box {
        border: 1px solid #333;
    }
}

/* Focus styles for better accessibility */
.elementor-button:focus,
.elementskit-btn:focus,
a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading optimization */
img {
    loading: lazy;
}

/* Text selection */
::selection {
    background-color: rgba(0, 115, 170, 0.2);
}