/* Hero Section Styles - Updated */
.cosmyoffice-hero-container {
    margin: 30px auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 15px;
}

.cosmyoffice-slide-section {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.cosmyoffice-slide-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* สไลด์เดอร์ */
.cosmyoffice-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cosmyoffice-slider-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.cosmyoffice-slider-item {
    flex: 0 0 100%;
    height: 100%;
}

.cosmyoffice-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cosmyoffice-slider-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 10;
}

.cosmyoffice-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cosmyoffice-slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.cosmyoffice-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.cosmyoffice-slider-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.cosmyoffice-slider-prev {
    left: 10px;
}

.cosmyoffice-slider-next {
    right: 10px;
}

.cosmyoffice-hero-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.cosmyoffice-hero-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.cosmyoffice-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.cosmyoffice-menu-card {
    display: flex;
    align-items: center;
    background-color: #f2f9ff;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.cosmyoffice-menu-card:hover {
    background-color: #e5f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.cosmyoffice-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    margin-right: 15px;
}

.cosmyoffice-menu-icon i {
    font-size: 22px;
    color: #0091d5;
}

.cosmyoffice-menu-text {
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 992px) {
    .cosmyoffice-hero-container {
        flex-direction: column;
        margin: 20px auto;
    }
    
    .cosmyoffice-slide-section, 
    .cosmyoffice-hero-section {
        width: 100%;
    }
    
    .cosmyoffice-slide-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .cosmyoffice-hero-container {
        margin: 10px auto 25px;
        gap: 15px;
    }
    
    .cosmyoffice-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cosmyoffice-hero-section {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .cosmyoffice-hero-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
        color: #062e4e;
        position: relative;
        padding-bottom: 10px;
    }
    
    .cosmyoffice-hero-section h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #0091d5, #6db9e8);
        border-radius: 3px;
    }
    
    .cosmyoffice-menu-card {
        padding: 18px 15px;
        background: linear-gradient(145deg, #f8fdff 0%, #e8f4fd 100%);
        border: 1px solid rgba(220, 234, 248, 0.8);
        box-shadow: 0 3px 10px rgba(0, 123, 255, 0.08);
        transition: all 0.25s ease;
    }
    
    .cosmyoffice-menu-card:hover {
        transform: translateY(-3px);
        background: linear-gradient(145deg, #f0f9ff 0%, #dcf0fd 100%);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.12);
    }
    
    .cosmyoffice-menu-card:nth-child(n+3) {
        display: none; /* Hide 3rd and 4th menu items on mobile */
    }
    
    .cosmyoffice-menu-icon {
        min-width: 50px;
        height: 50px;
        margin-right: 15px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 145, 213, 0.1);
    }
    
    .cosmyoffice-menu-icon i {
        font-size: 26px;
        color: #0091d5;
    }
    
    .cosmyoffice-menu-text {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        color: #062e4e;
    }
    
    .cosmyoffice-slide-section {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cosmyoffice-menu-grid {
        gap: 12px;
    }
    
    .cosmyoffice-menu-card {
        padding: 12px;
    }
    
    .cosmyoffice-menu-icon {
        min-width: 45px;
    }
    
    .cosmyoffice-hero-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
} 